Skip to content

Commit

Permalink
Deprecation notices: Ensure the Deprecate class is loaded after trans…
Browse files Browse the repository at this point in the history
…lations (#40085)

Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/11725010274

Upstream-Ref: Automattic/jetpack@7a123bb
  • Loading branch information
coder-karen authored and matticbot committed Nov 7, 2024
1 parent 72fa9a6 commit d1b76ec
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 <!-- Non-user-facing changes go here. This section will not be copied to readme.txt. -->
- 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.
Expand Down
3 changes: 1 addition & 2 deletions class.jetpack.php
Original file line number Diff line number Diff line change
Expand Up @@ -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' ) );
}

/**
Expand Down

0 comments on commit d1b76ec

Please sign in to comment.