Plugin Directory

Changeset 3035581


Ignore:
Timestamp:
02/14/2024 11:00:32 AM (2 years ago)
Author:
clicksports
Message:

Update 1.3.8

Location:
clicksports-maps/trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • clicksports-maps/trunk/README.txt

    r3035064 r3035581  
    55Requires at least: 4.8
    66Tested up to: 6.4
    7 Stable tag: 1.3.7
     7Stable tag: 1.3.8
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    9090== Changelog ==
    9191
     92= 1.3.8 =
     93* Fixed: Added fallback for unrecognized map theme with shortcode usage.
     94* Fixed: Miscellaneous minor fixes.
     95
    9296= 1.3.7 =
    9397* Changed: Minor additions to descriptions and translations.
  • clicksports-maps/trunk/admin/class-clicksports-maps-admin.php

    r2815180 r3035581  
    248248        $output .= '</select>';
    249249
    250         $existingThemes = json_decode( file_get_contents('https://maps.clicksports.de/styles.json' ) );
    251         foreach( $existingThemes as $existingTheme ) {
    252             $themes[] = $existingTheme;
    253         }
    254 
    255250        $output .= '<h3>' . esc_html__( 'Map Theme', 'clicksports-maps' ) . '</h3>';
    256251        $output .= '<select name="clicksports-maps[maptheme]" class="clicksports-maps-admin-select">';
    257252
    258253        /**
    259          * Removed server-side collection of themes:
    260          *
    261          *  foreach( $themes as $theme ) {
    262          *      $output .= '<option value="' . esc_attr( $theme->id ) . '" ' . selected( $theme->id, $settings['maptheme'], false ) . '>' . esc_html__( $theme->name ) . '</option>';
    263          *  }
    264          *
    265          * @since   1.1.1
     254         * @update  1.1.1
     255         * Removed server-side collection of themes.
     256         * ---
     257         *
     258         * foreach( $themes as $theme ) {
     259         *     $output .= '<option value="' . esc_attr( $theme->id ) . '" ' . selected( $theme->id, $settings['maptheme'], false ) . '>' . esc_html__( $theme->name ) . '</option>';
     260         * }
     261         *
     262         * @update  1.3.8
     263         * Removed leftover code.
     264         * ---
     265         *
     266         * $existingThemes = json_decode( file_get_contents('https://maps.clicksports.de/styles.json' ) );
     267         * foreach( $existingThemes as $existingTheme ) {
     268         *     $themes[] = $existingTheme;
     269         * }
    266270         */
    267271
  • clicksports-maps/trunk/clicksports-maps.php

    r3035044 r3035581  
    1616 * Plugin Name:       CLICKSPORTS Maps
    1717 * Description:       This plugin is a simple alternative to Google Maps and displays a customizable map on your website.
    18  * Version:           1.3.7
     18 * Version:           1.3.8
    1919 * Author:            CLICKSPORTS
    2020 * Author URI:        https://www.clicksports.de
     
    3838 * Rename this for your plugin and update it as you release new versions.
    3939 */
    40 define( 'CLICKSPORTS_MAPS_VERSION', '1.3.7' );
     40define( 'CLICKSPORTS_MAPS_VERSION', '1.3.8' );
    4141
    4242/**
  • clicksports-maps/trunk/includes/class-clicksports-maps.php

    r3035044 r3035581  
    5757            $this->version = CLICKSPORTS_MAPS_VERSION;
    5858        } else {
    59             $this->version = '1.3.7';
     59            $this->version = '1.3.8';
    6060        }
    6161        $this->plugin_name = 'clicksports-maps';
  • clicksports-maps/trunk/public/class-clicksports-maps-public.php

    r2815180 r3035581  
    316316        }
    317317
     318        /**
     319         * @update 1.3.8
     320         *
     321         * If the map theme given in the shortcode is not one of the existing themes,
     322         * we fall back to the map theme set in the global settings.
     323         */
    318324        if( isset( $atts['maptheme'] ) ) {
    319             $settings['maptheme'] = $atts['maptheme'];
     325            if( preg_match('/\b(basic|klokantech-basic|positron)\b/', $atts['maptheme']) ) {
     326                $settings['maptheme'] = $atts['maptheme'];
     327            }
    320328        }
    321329
     
    370378         *
    371379         * @update  1.3.4
     380         *
    372381         * Use of htmlspecialchars() to prevent broken strings when using link attributes with double quotes in markers.
    373382         */
Note: See TracChangeset for help on using the changeset viewer.