Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/wp-content/plugins/store-locator-le/include/slp-adminui_managelocations_class.php b/wp-content/plugins/store-locator-le/include/slp-adminui_managelocations_class.php
- index 17f91af..075b258 100644
- --- a/wp-content/plugins/store-locator-le/include/slp-adminui_managelocations_class.php
- +++ b/wp-content/plugins/store-locator-le/include/slp-adminui_managelocations_class.php
- @@ -142,6 +142,7 @@ if (! class_exists('SLPlus_AdminUI_ManageLocations')) {
- $field_value_str=substr($field_value_str, 0, strlen($field_value_str)-2);
- $field_value_str = apply_filters('slp_update_location_data',$field_value_str,$_GET['edit']);
- $wpdb->query("UPDATE ".$wpdb->prefix."store_locator SET $field_value_str WHERE sl_id=$_GET[edit]");
- + do_action('slp_managelocations_location_edited',$_GET['edit']);
- // Check our address
- //
- diff --git a/wp-content/plugins/store-locator-le/include/storelocatorplus-adminui_class.php b/wp-content/plugins/store-locator-le/include/storelocatorplus-adminui_class.php
- index 7c76bbf..6ac5bed 100644
- --- a/wp-content/plugins/store-locator-le/include/storelocatorplus-adminui_class.php
- +++ b/wp-content/plugins/store-locator-le/include/storelocatorplus-adminui_class.php
- @@ -83,6 +83,7 @@ if (! class_exists('SLPlus_AdminUI')) {
- }
- $wpdb->query("INSERT into ". $wpdb->prefix . "store_locator ($fields) VALUES ($sl_values);");
- + do_action('slp_managelocations_location_inserted',$wpdb->insert_id());
- $this->do_geocoding($theaddress);
- return 'added';
- }
- @@ -846,7 +847,7 @@ if (! class_exists('SLPlus_AdminUI')) {
- * @return string - value of the field
- */
- function getFieldValue($fldname=null) {
- - if (($fldname === null) || ($this->addingLocation)) { return ''; }
- + if ($fldname === null) { return ''; }
- else { return $this->currentLocation[$fldname]; }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement