Advertisement
Guest User

Patch Request

a guest
Feb 11th, 2013
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. 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
  2. index 17f91af..075b258 100644
  3. --- a/wp-content/plugins/store-locator-le/include/slp-adminui_managelocations_class.php
  4. +++ b/wp-content/plugins/store-locator-le/include/slp-adminui_managelocations_class.php
  5. @@ -142,6 +142,7 @@ if (! class_exists('SLPlus_AdminUI_ManageLocations')) {
  6.                  $field_value_str=substr($field_value_str, 0, strlen($field_value_str)-2);
  7.                  $field_value_str = apply_filters('slp_update_location_data',$field_value_str,$_GET['edit']);
  8.                  $wpdb->query("UPDATE ".$wpdb->prefix."store_locator SET $field_value_str WHERE sl_id=$_GET[edit]");
  9. +                do_action('slp_managelocations_location_edited',$_GET['edit']);
  10.  
  11.                  // Check our address
  12.                  //
  13. 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
  14. index 7c76bbf..6ac5bed 100644
  15. --- a/wp-content/plugins/store-locator-le/include/storelocatorplus-adminui_class.php
  16. +++ b/wp-content/plugins/store-locator-le/include/storelocatorplus-adminui_class.php
  17. @@ -83,6 +83,7 @@ if (! class_exists('SLPlus_AdminUI')) {
  18.              }
  19.  
  20.              $wpdb->query("INSERT into ". $wpdb->prefix . "store_locator ($fields) VALUES ($sl_values);");
  21. +            do_action('slp_managelocations_location_inserted',$wpdb->insert_id());
  22.              $this->do_geocoding($theaddress);
  23.              return 'added';
  24.          }
  25. @@ -846,7 +847,7 @@ if (! class_exists('SLPlus_AdminUI')) {
  26.            * @return string - value of the field
  27.            */
  28.           function getFieldValue($fldname=null) {
  29. -             if (($fldname === null) || ($this->addingLocation)) { return ''; }
  30. +             if ($fldname === null) { return ''; }
  31.               else { return $this->currentLocation[$fldname]; }
  32.           }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement