Plugin Directory

Changeset 1963304


Ignore:
Timestamp:
10/26/2018 07:44:23 AM (7 years ago)
Author:
wp-buddy
Message:

Fixed a PHP fatal error when Gutenberg plugin is active and WordPress < 5.0 is installed.

Location:
google-analytics-opt-out/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • google-analytics-opt-out/trunk/google-analytics-opt-out.php

    r1963299 r1963304  
    44Plugin URI: https://wp-buddy.com/products/plugins/google-analytics-opt-out
    55Description: Provides an Opt-Out functionality for Google Analytics
    6 Version: 2.2.0
     6Version: 2.2.1
    77Author: WP-Buddy
    88Author URI: https://wp-buddy.com
  • google-analytics-opt-out/trunk/inc/admin.php

    r1963299 r1963304  
    131131        true
    132132    );
    133    
     133
     134    if ( function_exists( 'gutenberg_get_jed_locale_data' ) ) {
     135        $data = gutenberg_get_jed_locale_data( 'gaoop' );
     136    } else {
     137        $data = wp_get_jed_locale_data( 'gaoop' );
     138    }
     139
    134140    wp_add_inline_script(
    135141        'gaoop-block',
    136         'wp.i18n.setLocaleData( ' . wp_json_encode( wp_get_jed_locale_data( 'gaoop' ) ) . ', "gaoop" );',
     142        'wp.i18n.setLocaleData( ' . wp_json_encode( $data ) . ', "gaoop" );',
    137143        'before'
    138144    );
  • google-analytics-opt-out/trunk/readme.txt

    r1963299 r1963304  
    33Donate link: https://wp-buddy.com/products/plugins/google-analytics-opt-out/
    44Tags: google analytics opt-out, monster insights, gdpr
    5 Version: 2.2.0
    6 Stable tag: 2.2.0
     5Version: 2.2.1
     6Stable tag: 2.2.1
    77Requires at least: 4.8.0
    88Requires PHP: 5.6.0
     
    4242
    4343== Changelog ==
     44
     45= 2.2.1 =
     46* Fixed a PHP fatal error when Gutenberg plugin is active and WordPress < 5.0 is installed.
    4447
    4548= 2.2.0 =
Note: See TracChangeset for help on using the changeset viewer.