Plugin Directory

Changeset 3207747


Ignore:
Timestamp:
12/13/2024 04:39:14 PM (15 months ago)
Author:
kylephillips
Message:

ADds 2.0.4 updates

Location:
simple-locator/trunk
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • simple-locator/trunk/app/API/AllLocationsShortcode.php

    r2805998 r3207747  
    8181        }
    8282       
    83         if ( $this->options['orderby'] !== '' ) $output .= ' data-orderby="' . $this->options['orderby'] . '"';
     83        if ( $this->options['orderby'] !== '' ) $output .= ' data-orderby="' . esc_attr($this->options['orderby']) . '"';
    8484        $output .= ( $this->options['order'] == 'asc' ) ? ' data-order="asc"' : ' data-order="desc"';
    85         if ( $this->options['ids'] !== '' ) $output .= ' data-post-ids="' . $this->options['ids'] . '"';
     85        if ( $this->options['ids'] !== '' ) $output .= ' data-post-ids="' . esc_attr($this->options['ids']) . '"';
    8686        if ( $this->options['mapheight'] !== '' ) $output .= ' style="height:' . intval($this->options['mapheight']) . 'px;"';
    87         if ( $this->options['noresultstext'] !== '' ) $output .= ' data-no-results-text="' . $this->options['noresultstext'] . '"';
     87        if ( $this->options['noresultstext'] !== '' ) $output .= ' data-no-results-text="' . esc_attr($this->options['noresultstext']) . '"';
    8888        if ( $this->options['includelist'] == 'true' ) $output .= ' data-include-listing="true"';
    8989        if ( $this->options['perpage'] !== '' ) $output .= ' data-per-page="' . intval($this->options['perpage']) . '"';
  • simple-locator/trunk/app/API/FormShortcode.php

    r2805998 r3207747  
    4242        $taxonomies = [];
    4343        foreach ( $tax_array as $key => $tax ){
    44             $taxonomy = get_taxonomy($tax);
     44            $taxonomy = get_taxonomy(esc_attr($tax));
    4545            if ( !$taxonomy ) continue;
    4646            $tax_label = $taxonomy->labels->name; // Get the label
  • simple-locator/trunk/app/Dependencies/PublicDependencies.php

    r2808145 r3207747  
    102102            $localized_objects .= 'wpsl_locator.map_options = ' . apply_filters('simple_locator_js_map_options', $this->settings_repo->mapOptions()) . ';';
    103103        if ( $this->settings_repo->customAutocompleteOptions() )
    104             $localized_objects .= 'wpsl_locator.autocomplete_options = ' . apply_filters('simple_locator_autocomplete_js_options', $this->settings_repo->autocompleteOptions());
     104            $localized_objects .= "\n" . 'wpsl_locator.autocomplete_options = ' . apply_filters('simple_locator_autocomplete_js_options', $this->settings_repo->autocompleteOptions());
    105105        if ( $this->settings_repo->useClusterRenderer() ){
    106106            $cluster_renderer = $this->settings_repo->clusterRenderer();
    107             if ( $cluster_renderer ) $localized_objects .= 'wpsl_locator.cluster_renderer = ' . apply_filters('simple_locator_cluster_renderer', $cluster_renderer);
     107            if ( $cluster_renderer ) $localized_objects .= "\n" . 'wpsl_locator.cluster_renderer = ' . apply_filters('simple_locator_cluster_renderer', $cluster_renderer);
    108108        }
    109109        $localized_data['l10n_print_after'] = $localized_objects;
  • simple-locator/trunk/app/Form/SearchForm.php

    r2805998 r3207747  
    1515        $out = '<form method="' . strtoupper($options['formmethod']) . '" action="' . get_the_permalink($options['resultspage']) . '" data-simple-locator-form ';
    1616        if ( !$options['mapcontrols'] ) $out .= ' data-simple-locator-hide-map-controls="true"';
    17         if ( $options['mapcontainer'] ) $out .= ' data-simple-locator-map-container="' . $options['mapcontainer'] . '"';
    18         if ( $options['resultscontainer'] ) $out .= ' data-simple-locator-results-container="' . $options['resultscontainer'] . '"';
     17        if ( $options['mapcontainer'] ) $out .= ' data-simple-locator-map-container="' . esc_attr($options['mapcontainer']) . '"';
     18        if ( $options['resultscontainer'] ) $out .= ' data-simple-locator-results-container="' . esc_attr($options['resultscontainer']) . '"';
    1919        if ( $options['ajax'] ) $out .= ' data-simple-locator-ajax-form="true"';
    20         $out .= ' data-simple-locator-map-control-position="' . $options['mapcontrolsposition'] . '"';
     20        $out .= ' data-simple-locator-map-control-position="' . esc_attr($options['mapcontrolsposition']) . '"';
    2121        if ( $options['allowemptyaddress'] ) $out .= ' class="allow-empty" data-simple-locator-form-allow-empty="true"';
    2222        $out .= '>';
  • simple-locator/trunk/app/SimpleLocator.php

    r2808145 r3207747  
    1313
    1414        global $simple_locator_version;
    15         $simple_locator_version = '2.0.3';
     15        $simple_locator_version = '2.0.4';
    1616
    1717        $app = new SimpleLocator\Bootstrap;
  • simple-locator/trunk/readme.txt

    r2808148 r3207747  
    55Requires at least: 5.0
    66Requires PHP: 7.0
    7 Tested up to: 6.1
     7Tested up to: 6.7
    88Stable tag: 2.0.3
    99
     
    105105
    106106== Changelog ==
     107
     108= 2.0.4 =
     109* Security update addressing stored XSS. (Thanks to Yudha)
     110* Fixes JS bugs when multiple maps Javascript options are specified
    107111
    108112= 2.0.3 =
  • simple-locator/trunk/simplelocator.php

    r2808145 r3207747  
    44Plugin URI: http://locatewp.com/
    55Description: Location search in WordPress, made simple. Can be used for store or any other type of location. Simply add the shortcode [simple_locator] to add the locator.
    6 Version: 2.0.3
     6Version: 2.0.4
    77Author: Kyle Phillips
    88Author URI: https://github.com/kylephillips
     
    1212*/
    1313
    14 /*  Copyright 2022 Kyle Phillips
     14/*  Copyright 2024 Kyle Phillips
    1515
    1616    This program is free software; you can redistribute it and/or modify
Note: See TracChangeset for help on using the changeset viewer.