Plugin Directory

Changeset 3770193


Ignore:
Timestamp:
10/28/2026 08:24:58 AM (3 days ago)
Author:
yotuwp
Message:

1.4.3: fix WordPress 6.7+ translation-loading-too-early notice

Location:
yotuwp-easy-youtube-embed/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • yotuwp-easy-youtube-embed/trunk/readme.txt

    r3743370 r3770193  
    44Requires at least: 4.5
    55Tested up to: 7.1
    6 Stable tag: 1.4.2
     6Stable tag: 1.4.3
    77Donate link: https://www.paypal.me/tuongpg
    88License: GPLv2 or later
    … …  
    114114
    115115== Changelog ==
     116= 1.4.3 - Oct 28th, 2026 =
     117* [Fix] "Translation loading for the yotuwp-easy-youtube-embed domain was triggered too early" notice (WordPress 6.7+): translation setup was running in the plugin constructor and on the `plugins_loaded` hook, both before WordPress is ready for it. Moved to the `init` hook, as WordPress now requires.
     118
    116119= 1.4.2 - Oct 13th, 2026 =
    117120* [Fix] "Enable Tracking" now uses double opt-in — a confirmation email (sent via your own site's mail, never through our marketing system) must be clicked before this address is added to anything, from both the admin notice and the General Settings > API toggle (the toggle used to subscribe the address immediately on save, with no confirmation at all)
  • yotuwp-easy-youtube-embed/trunk/yotuwp.php

    r3743370 r3770193  
    44* Plugin URI: https://www.yotuwp.com/
    55* Description: Easy embed YouTube playlist, channel, videos and user videos to posts/pages/widgets
    6 * Version: 1.4.2
     6* Version: 1.4.3
    77* Text Domain: yotuwp-easy-youtube-embed
    88* Domain Path: /languages
    … …  
    1818
    1919if( !defined( 'YOTUWP_VERSION' ) )
    20         define( 'YOTUWP_VERSION', '1.4.2' );
     20        define( 'YOTUWP_VERSION', '1.4.3' );
    2121
    2222global $yotuwp, $yotuwp_inline_script;
    … …  
    208208                }, 10, 3);
    209209
    210                 add_action( 'plugins_loaded', array( $this, 'textdomain' ) );
     210                // WP 6.7+: translations must load on init or later. Priority 1/2 keeps
     211                // these ahead of this constructor's other init-hooked methods (default
     212                // priority 10) that rely on translations/$this->lang being ready.
     213                add_action( 'init', array( $this, 'textdomain' ), 1 );
     214                add_action( 'init', array( $this, 'lang_cfg' ), 2 );
    211215                add_action( 'yotuwp_cache_event', array( $this, 'clear_cache' ), 10);
    212216
    213217                register_activation_hook(__FILE__,array( $this, 'activation' ) );
    214218                register_deactivation_hook(__FILE__, array( $this, 'deactivation' ) );
    215 
    216                 $this->lang_cfg();
    217219
    218220                do_action( 'yotu_init' );
Note: See TracChangeset for help on using the changeset viewer.