Twenty Twenty One: Prevent loading translation file twice.

This changes wraps the registration of patterns and pattern categories in a function hooked to `init`, to avoid loading the Twenty Twenty One translation file twice.

Props zodiac1978, sabernhardt, audrasjb.
Fixes #53589.

Built from https://develop.svn.wordpress.org/trunk@53121


git-svn-id: http://core.svn.wordpress.org/trunk@52710 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
audrasjb 2022-04-10 22:29:03 +00:00
parent 439bf1296f
commit 5c07bc0b59
2 changed files with 110 additions and 93 deletions

File diff suppressed because one or more lines are too long

View File

@ -16,7 +16,7 @@
*
* @global string $wp_version
*/
$wp_version = '6.0-alpha-53120';
$wp_version = '6.0-alpha-53121';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.