From d1b76ecaa3321f6805c783c1afe073dd9f7a8a44 Mon Sep 17 00:00:00 2001 From: coder-karen Date: Thu, 7 Nov 2024 14:43:30 +0000 Subject: [PATCH] Deprecation notices: Ensure the Deprecate class is loaded after translations (#40085) Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/11725010274 Upstream-Ref: Automattic/jetpack@7a123bb140d1a12c4b3e7446e411166d94ae4874 --- CHANGELOG.md | 1 + class.jetpack.php | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 41cf5777cb..a0d3e32564 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -18,6 +18,7 @@ This is an alpha version! The changes listed here are not final. - Fixed bug with scheduled resharing when sharing another admin's posts. ### Other changes +- Actions: Ensure Deprecations class loads after translations to prevent errors - Admin: Updating deprecation notices. - Fix Slideshow block width when used inside a Row block - Remove old widget migration code. diff --git a/class.jetpack.php b/class.jetpack.php index 9183a5b345..b7209115e3 100644 --- a/class.jetpack.php +++ b/class.jetpack.php @@ -750,8 +750,7 @@ function () { // Add 5-star add_filter( 'plugin_row_meta', array( $this, 'add_5_star_review_link' ), 10, 2 ); - - Deprecate::instance(); + add_action( 'init', array( Deprecate::class, 'instance' ) ); } /**