From 92d503e58aba6a6ada15518bca78eac58a71927f Mon Sep 17 00:00:00 2001 From: Edward Hibbert Date: Fri, 26 Feb 2021 09:30:59 +0000 Subject: [PATCH] Change parameter names --- repair-directory.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/repair-directory.php b/repair-directory.php index e422cb4..a40492a 100644 --- a/repair-directory.php +++ b/repair-directory.php @@ -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', @@ -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' . "\n";