Plugin Directory

Changeset 1987642


Ignore:
Timestamp:
12/07/2018 09:29:33 AM (7 years ago)
Author:
wp-buddy
Message:

Update to 2.2.4: fix translation on WordPress 5.0

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

Legend:

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

    r1965588 r1987642  
    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.3
     6Version: 2.2.4
    77Author: WP-Buddy
    88Author URI: https://wp-buddy.com
  • google-analytics-opt-out/trunk/inc/admin.php

    r1965588 r1987642  
    136136
    137137    if ( function_exists( 'gutenberg_get_jed_locale_data' ) ) {
    138         $data = gutenberg_get_jed_locale_data( 'gaoop' );
    139     } else {
    140         $data = wp_get_jed_locale_data( 'gaoop' );
     138        wp_add_inline_script(
     139            'gaoop-block',
     140            'wp.i18n.setLocaleData( ' . wp_json_encode( gutenberg_get_jed_locale_data( 'gaoop' ) ) . ', "gaoop" );',
     141            'before'
     142        );
     143    } elseif ( function_exists( 'wp_get_jed_locale_data' ) ) {
     144        wp_add_inline_script(
     145            'gaoop-block',
     146            'wp.i18n.setLocaleData( ' . wp_json_encode( wp_get_jed_locale_data( 'gaoop' ) ) . ', "gaoop" );',
     147            'before'
     148        );
     149    } elseif ( function_exists( 'wp_set_script_translations' ) ) {
     150        wp_set_script_translations( 'gaoop-block', 'gaoop' );
    141151    }
    142 
    143     wp_add_inline_script(
    144         'gaoop-block',
    145         'wp.i18n.setLocaleData( ' . wp_json_encode( $data ) . ', "gaoop" );',
    146         'before'
    147     );
    148152}
  • google-analytics-opt-out/trunk/readme.txt

    r1965588 r1987642  
    33Donate link: https://wp-buddy.com/products/plugins/google-analytics-opt-out/
    44Tags: google analytics opt-out, monster insights, gdpr
    5 Version: 2.2.3
    6 Stable tag: 2.2.3
     5Version: 2.2.4
     6Stable tag: 2.2.4
    77Requires at least: 4.8.0
    88Requires PHP: 5.6.0
     
    4242
    4343== Changelog ==
     44
     45= 2.2.4 =
     46* Gutenberg block content was not translated correctly in WordPress 5.0
    4447
    4548= 2.2.3 =
Note: See TracChangeset for help on using the changeset viewer.