Plugin Directory

Changeset 3289552


Ignore:
Timestamp:
05/08/2025 06:08:03 AM (7 months ago)
Author:
flippercode
Message:

Validation error fixed for latitude and longitude

Location:
wp-google-map-plugin
Files:
859 added
3 edited

Legend:

Unmodified
Added
Removed
  • wp-google-map-plugin/trunk/modules/map/model.map.php

    r3270159 r3289552  
    166166            $map_center_latitude = isset( $_POST['map_all_control']['map_center_latitude'] ) ? $_POST['map_all_control']['map_center_latitude'] : '';
    167167            $map_center_longitude = isset( $_POST['map_all_control']['map_center_longitude'] ) ? $_POST['map_all_control']['map_center_longitude'] : '';
    168             if(!$this->validate_float_with_decimal( $map_center_latitude )){
     168            if( $map_center_latitude != '' && !$this->validate_float_with_decimal( $map_center_latitude ) ){
    169169                $this->errors[] = esc_html__( 'Please enter a valid decimal value for latitude.','wp-google-map-plugin' );
    170170            }
    171             if(!$this->validate_float_with_decimal( $map_center_longitude )){
     171            if($map_center_longitude != '' && !$this->validate_float_with_decimal( $map_center_longitude )){
    172172                $this->errors[] = esc_html__( 'Please enter a valid decimal value for longitude.','wp-google-map-plugin' );
    173173            }
  • wp-google-map-plugin/trunk/readme.txt

    r3282341 r3289552  
    77Requires at least: 3.4
    88Tested up to: 6.7.2
    9 Stable tag: 4.7.3
     9Stable tag: 4.7.4
    1010Requires PHP: 5.3
    1111License: GPLv2 or later
     
    170170== Changelog ==
    171171
     172= 4.7.4 =
     173* Add : Fixed the empty latitude and longitude vaildation error message.
     174
    172175= 4.7.3 =
    173176* Add : Fixed the _load_textdomain_just_in_time issue.
  • wp-google-map-plugin/trunk/wp-google-map-plugin.php

    r3282341 r3289552  
    66Author: flippercode
    77Author URI: https://weplugins.com/
    8 Version: 4.7.3
     8Version: 4.7.4
    99Text Domain: wp-google-map-plugin
    1010Domain Path: /lang
     
    859859           
    860860            if ( ! defined( 'WPGMP_VERSION' ) )
    861             define( 'WPGMP_VERSION', '4.7.3' );
     861            define( 'WPGMP_VERSION', '4.7.4' );
    862862           
    863863            if ( ! defined( 'WPGMP_FOLDER' ) )
Note: See TracChangeset for help on using the changeset viewer.