Skip to content

Commit

Permalink
Hooks: Ensure translation loading is not triggered too early. (#39841)
Browse files Browse the repository at this point in the history
  • Loading branch information
coder-karen authored and matticbot committed Oct 24, 2024
1 parent c63cfb7 commit afebc54
Show file tree
Hide file tree
Showing 5 changed files with 89 additions and 86 deletions.
58 changes: 29 additions & 29 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions vendor/automattic/jetpack-sync/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

This is an alpha version! The changes listed here are not final.

### Fixed
- Hooks: Hook init_sync_cron_jobs into init to ensure translation loading within the function is not triggered too early.

## [3.14.2] - 2024-10-15
### Changed
- Jetpack Sync: Update default Post Type Blacklist [#39770]
Expand Down
2 changes: 1 addition & 1 deletion vendor/automattic/jetpack-sync/src/class-actions.php
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ public static function init() {
}

if ( self::sync_via_cron_allowed() ) {
self::init_sync_cron_jobs();
add_action( 'init', array( __CLASS__, 'init_sync_cron_jobs' ), 1 );
} elseif ( wp_next_scheduled( 'jetpack_sync_cron' ) ) {
self::clear_sync_cron_jobs();
}
Expand Down
Loading

0 comments on commit afebc54

Please sign in to comment.