Changeset 2747289
- Timestamp:
- 06/23/2022 08:17:02 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
ldd-directory-lite/trunk/includes/shortcodes/_manage.php
r2731126 r2747289 71 71 72 72 // The data is valid, decide where it goes 73 switch( $_GET['edit']) {73 switch(sanitize_text_field($_GET['edit'])) { 74 74 case 'details': 75 75 ldl_edit_update_post($post_id, $data['title'], $data['description'], $data['summary'], $data['category']); … … 137 137 138 138 if (!$lddlite_submit_processor->is_processing()) { 139 switch( $_GET['edit']) {139 switch(sanitize_text_field($_GET['edit'])) { 140 140 case 'details': 141 141 $cat_id = wp_get_post_terms($listing->ID, LDDLITE_TAX_CAT, array('fields' => 'ids')); … … 186 186 // @TODO Repetitious code alert, here and _submit.php 187 187 wp_enqueue_script('jquery-ui-autocomplete'); 188 wp_enqueue_script('maps-autocomplete', $google_api_src);188 // wp_enqueue_script('maps-autocomplete', $google_api_src); 189 189 wp_enqueue_script('lddlite-submit', LDDLITE_URL . '/public/js/submit.js', 'maps-autocomplete', LDDLITE_VERSION); 190 190 $data = array(
Note: See TracChangeset
for help on using the changeset viewer.