Changeset 3207747
- Timestamp:
- 12/13/2024 04:39:14 PM (15 months ago)
- Location:
- simple-locator/trunk
- Files:
-
- 7 edited
-
app/API/AllLocationsShortcode.php (modified) (1 diff)
-
app/API/FormShortcode.php (modified) (1 diff)
-
app/Dependencies/PublicDependencies.php (modified) (1 diff)
-
app/Form/SearchForm.php (modified) (1 diff)
-
app/SimpleLocator.php (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
-
simplelocator.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
simple-locator/trunk/app/API/AllLocationsShortcode.php
r2805998 r3207747 81 81 } 82 82 83 if ( $this->options['orderby'] !== '' ) $output .= ' data-orderby="' . $this->options['orderby']. '"';83 if ( $this->options['orderby'] !== '' ) $output .= ' data-orderby="' . esc_attr($this->options['orderby']) . '"'; 84 84 $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']) . '"'; 86 86 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']) . '"'; 88 88 if ( $this->options['includelist'] == 'true' ) $output .= ' data-include-listing="true"'; 89 89 if ( $this->options['perpage'] !== '' ) $output .= ' data-per-page="' . intval($this->options['perpage']) . '"'; -
simple-locator/trunk/app/API/FormShortcode.php
r2805998 r3207747 42 42 $taxonomies = []; 43 43 foreach ( $tax_array as $key => $tax ){ 44 $taxonomy = get_taxonomy( $tax);44 $taxonomy = get_taxonomy(esc_attr($tax)); 45 45 if ( !$taxonomy ) continue; 46 46 $tax_label = $taxonomy->labels->name; // Get the label -
simple-locator/trunk/app/Dependencies/PublicDependencies.php
r2808145 r3207747 102 102 $localized_objects .= 'wpsl_locator.map_options = ' . apply_filters('simple_locator_js_map_options', $this->settings_repo->mapOptions()) . ';'; 103 103 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()); 105 105 if ( $this->settings_repo->useClusterRenderer() ){ 106 106 $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); 108 108 } 109 109 $localized_data['l10n_print_after'] = $localized_objects; -
simple-locator/trunk/app/Form/SearchForm.php
r2805998 r3207747 15 15 $out = '<form method="' . strtoupper($options['formmethod']) . '" action="' . get_the_permalink($options['resultspage']) . '" data-simple-locator-form '; 16 16 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']) . '"'; 19 19 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']) . '"'; 21 21 if ( $options['allowemptyaddress'] ) $out .= ' class="allow-empty" data-simple-locator-form-allow-empty="true"'; 22 22 $out .= '>'; -
simple-locator/trunk/app/SimpleLocator.php
r2808145 r3207747 13 13 14 14 global $simple_locator_version; 15 $simple_locator_version = '2.0. 3';15 $simple_locator_version = '2.0.4'; 16 16 17 17 $app = new SimpleLocator\Bootstrap; -
simple-locator/trunk/readme.txt
r2808148 r3207747 5 5 Requires at least: 5.0 6 6 Requires PHP: 7.0 7 Tested up to: 6. 17 Tested up to: 6.7 8 8 Stable tag: 2.0.3 9 9 … … 105 105 106 106 == 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 107 111 108 112 = 2.0.3 = -
simple-locator/trunk/simplelocator.php
r2808145 r3207747 4 4 Plugin URI: http://locatewp.com/ 5 5 Description: 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. 36 Version: 2.0.4 7 7 Author: Kyle Phillips 8 8 Author URI: https://github.com/kylephillips … … 12 12 */ 13 13 14 /* Copyright 202 2Kyle Phillips14 /* Copyright 2024 Kyle Phillips 15 15 16 16 This program is free software; you can redistribute it and/or modify
Note: See TracChangeset
for help on using the changeset viewer.