Plugin Directory

Changeset 2747289


Ignore:
Timestamp:
06/23/2022 08:17:02 PM (4 years ago)
Author:
lddwebdesign
Message:

3.1 release

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ldd-directory-lite/trunk/includes/shortcodes/_manage.php

    r2731126 r2747289  
    7171
    7272        // The data is valid, decide where it goes
    73         switch($_GET['edit']) {
     73        switch(sanitize_text_field($_GET['edit'])) {
    7474            case 'details':
    7575                ldl_edit_update_post($post_id, $data['title'], $data['description'], $data['summary'], $data['category']);
     
    137137
    138138        if (!$lddlite_submit_processor->is_processing()) {
    139             switch($_GET['edit']) {
     139            switch(sanitize_text_field($_GET['edit'])) {
    140140                case 'details':
    141141                    $cat_id = wp_get_post_terms($listing->ID, LDDLITE_TAX_CAT, array('fields' => 'ids'));
     
    186186                    // @TODO Repetitious code alert, here and _submit.php
    187187                    wp_enqueue_script('jquery-ui-autocomplete');
    188                     wp_enqueue_script('maps-autocomplete', $google_api_src);
     188                   // wp_enqueue_script('maps-autocomplete', $google_api_src);
    189189                    wp_enqueue_script('lddlite-submit', LDDLITE_URL . '/public/js/submit.js', 'maps-autocomplete', LDDLITE_VERSION);
    190190                    $data = array(
Note: See TracChangeset for help on using the changeset viewer.