Skip to content

Commit

Permalink
Change parameter names
Browse files Browse the repository at this point in the history
  • Loading branch information
edwh committed Feb 26, 2021
1 parent 6e7ada3 commit 92d503e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions repair-directory.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ function repair_directory_plugin_add_shortcode_cb($atts)
// Set defaults.
$defaults = [
'src' => 'https://map.restarters.net/',
'domain' => 'https://map.restarters.net',
'region' => 'London',
'rd_parenturl' => 'https://map.restarters.net',
'rd_region' => 'London',
'width' => '100%',
'height' => '600',
'scrolling' => 'no',
Expand All @@ -38,9 +38,9 @@ function repair_directory_plugin_add_shortcode_cb($atts)
}

// Construct source, which needs to include the region.
$atts['src'] = esc_url($atts['src']) . '?rd_region=' . esc_attr($atts['region']) . '&rd_domain=' . esc_attr($atts['domain']);
unset($atts['region']);
unset($atts['domain']);
$atts['src'] = esc_url($atts['src']) . '?rd_region=' . esc_attr($atts['rd_region']) . '&rd_parenturl=' . esc_attr($atts['rd_parenturl']);
unset($atts['rd_region']);
unset($atts['rd_parenturl']);

// Construct HTML to return
$html = "\n<!-- Repair Directory plugin v" . REPAIR_DIRECTORY_PLUGIN_VERSION . ' -->' . "\n";
Expand Down

0 comments on commit 92d503e

Please sign in to comment.