-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Plugin init: Ensure files relying on translations are called after `p…
…lugins_loaded`. Translation data may not be immediately available until WordPress has finished initializing. Moving all calls that happen before this that contain translation functions within an action hook to ensure correct load orders will let both WordPress core, and any translation plugins used, get ready before the plugin needs them. Props @swisspidy, @Zodiac1978, @ipajen. Fixes #448.
- Loading branch information
Showing
1 changed file
with
22 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7027a10
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is one "s" missing for Pascals' GitHub handle @swissspidy - just to be sure he gets the props :)
7027a10
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah yes the curse of my username :-)