Plugin Directory

Changeset 1993730


Ignore:
Timestamp:
12/13/2018 01:21:12 PM (7 years ago)
Author:
lcloss
Message:

Fix GTM- validation + brazilian language

Location:
lcmd-tracking-codes/trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • lcmd-tracking-codes/trunk/CHANGELOG.md

    r1993474 r1993730  
    11# Changelog #
    221.0.0 - Initial version
    3 1.0.1 - Fix UA-XXX validation
     31.0.1 - Fix UA- validation
    441.0.2 - Update version
     51.0.3 - Fix GTM- validation + Brazilian language
  • lcmd-tracking-codes/trunk/README.md

    r1993474 r1993730  
    55* Tested up to: 4.9
    66* Requires PHP: 7.0
    7 * Stable tag: 1.0.2
     7* Stable tag: 1.0.3
    88* License: AGPL-3.0
    99* License URI: https://www.gnu.org/licenses/agpl-3.0.en.html
     
    5757[see CHANGELOG](CHANGELOG.md)
    5858* 1.0.0 - Initial version
     59* 1.0.1 - Fix UA- validation
     60* 1.0.2 - Update version
     61* 1.0.3 - Fix GTM- validation + Brazilian language
     62
    5963
    6064## Upgrade Notice ##
  • lcmd-tracking-codes/trunk/README.txt

    r1993474 r1993730  
    55Tested up to: 4.9
    66Requires PHP: 7.0
    7 Stable tag: 1.0.2
    8 License: AGPL-3.0
    9 License URI: https://www.gnu.org/licenses/agpl-3.0.en.html
    10 
    11 === LC Tracking Codes ===
    12 Contributors: lcloss
    13 Tags: tracking codes, Google Search, Google Analytics, Google Ads, Google Webmasters, Google Search Console, Bing
    14 Requires at least: 4.8
    15 Tested up to: 4.9
    16 Requires PHP: 7.0
    17 Stable tag: 1.0.2
     7Stable tag: 1.0.3
    188License: AGPL-3.0
    199License URI: https://www.gnu.org/licenses/agpl-3.0.en.html
     
    67571.0.1 - Fix UA validation code
    68581.0.2 - Update version
     591.0.3 - Fix GTM- validation + Brazilian language
    6960
    7061== Upgrade Notice ==
  • lcmd-tracking-codes/trunk/includes/functions.php

    r1993253 r1993730  
    4545            return true;
    4646        }
    47         if ( preg_match('/^GTM-\d{1,9}$/i', $gtm_id) ) {
     47        if ( preg_match('/^GTM-\w{1,9}$/i', $gtm_id) ) {
    4848            return true;
    4949        } else {
     
    5757            return true;
    5858        }
    59         if ( preg_match('/^[\w]{5,30}$/i', $ms_bc) ) {
     59        if ( preg_match('/^\w{5,30}$/i', $ms_bc) ) {
    6060            return true;
    6161        } else {
  • lcmd-tracking-codes/trunk/lcmd-tracking-codes.php

    r1993474 r1993730  
    33 * Plugin Name:       LC Tracking Codes
    44 * Description:       LC Tracking Codes make easier put tracking codes in your site.
    5  * Version:           1.0.2
     5 * Version:           1.0.3
    66 * Author:            Luciano Closs
    77 * Author URI:        https://lucianocloss.com
     
    249249            'help'   => __('Enter your Google Site Verification Code. Please, refer to <a href="https://search.google.com/search-console/about" target="_blank">Google Search Console</a> for more information.</a>', self::get_text_domain() ),
    250250            'validate'  => 'is_google_verification_code',
    251             'error_msg' => __( 'Invalid format for Google Verification Code. Please, enter only letters, numbers and/or underscode.', self::get_text_domain() )
     251            'error_msg' => __( 'Invalid format for Google Verification Code. Please, enter only letters, numbers and/or underscore.', self::get_text_domain() )
    252252         ),
    253253         array(
Note: See TracChangeset for help on using the changeset viewer.