Plugin Directory

Changeset 3359197


Ignore:
Timestamp:
09/10/2025 12:50:31 PM (5 months ago)
Author:
wpwoodo
Message:

Undefined variable $address fixed.
Trying to access array offset on value of type bool fixed.

Location:
category-maps
Files:
59 added
4 edited

Legend:

Unmodified
Added
Removed
  • category-maps/trunk/category-maps.php

    r3334145 r3359197  
    1717 *  Plugin URI: https://categorymaps.wpwoodo.com/
    1818 *  Description: Creates nice filterable maps based on (custom) post types storing location data.
    19  *  Version: 1.4.2
     19 *  Version: 1.4.3
    2020 *  Requires at least: 5.6
    2121 *  Requires PHP: 7.0
     
    2929
    3030define( 'CATMAPS_PREFIX', 'catmaps' );
    31 define( 'CATMAPS_VERSION', '1.4.2' );
     31define( 'CATMAPS_VERSION', '1.4.3' );
    3232define( 'CATMAPS_SLUG', 'category-maps' );
    3333define( 'CATMAPS_DIR', plugin_dir_url( __FILE__ ) );
  • category-maps/trunk/includes/class-catmaps-shortcodes.php

    r3333818 r3359197  
    341341        } else if ( $lat && $lon && ! $address ) {
    342342            $location = CatMaps_Utils::get_address_from_location( $lat, $lon );
    343             $address = $location['formatted_address'];
     343            $address = isset( $location['formatted_address'] ) ? $location['formatted_address'] : '';
    344344        } else {
    345345            $lat = '52.520007';
    346346            $lon = '13.404954';
    347347            $location = CatMaps_Utils::get_address_from_location( $lat, $lon );
    348             $address = $location['formatted_address'];
     348            $address = isset( $location['formatted_address'] ) ? $location['formatted_address'] : '';
    349349        }
    350350
  • category-maps/trunk/includes/class-catmaps-utils.php

    r3333818 r3359197  
    157157
    158158            } else {
    159                 self::log( "Error getting geo loc data for {$address}", 'error' );
     159                self::log( "Error getting geo loc data for {$query}", 'error' );
    160160            }
    161161        }
  • category-maps/trunk/readme.txt

    r3335316 r3359197  
    55Requires at least: 5.6
    66Tested up to: 6.8
    7 Stable tag: 1.4.2
     7Stable tag: 1.4.3
    88Requires PHP: 7.0
    99License: GPLv3
     
    8181== Changelog ==
    8282
     83= 1.4.3 =
     84* Undefined variable $address fixed
     85* Trying to access array offset on value of type bool fixed
     86
    8387= 1.4.2 =
    8488* Variables and options escaped when echo'd
     
    9094
    9195= 1.4.0 =
    92 * Libraries updated.
    93 * Minor enhancements.
     96* Libraries updated
     97* Minor enhancements
Note: See TracChangeset for help on using the changeset viewer.