infinum / decoupled-json-content

GNU General Public License v2.0
30 stars 5 forks source link

WordPress 5.2: l10n.php now required when using SHORTINIT #29

Open curtisbelt opened 5 years ago

curtisbelt commented 5 years ago

They added a new class ABOVE the SHORTINIT conditional in wp-settings.php.

https://github.com/WordPress/WordPress/blob/4e4e8fa110212083d2d831db0ce511a9ffd9f51f/wp-settings.php#L21

Which calls load_default_textdomain()

https://github.com/WordPress/WordPress/blob/d48b70907171773b3eba9b670589a3f4effa4ba1/wp-includes/class-wp-fatal-error-handler.php#L41

But that function is declared in l10n.php, and that is not included until after the SHORTINIT cut off.

https://github.com/WordPress/WordPress/blob/4e4e8fa110212083d2d831db0ce511a9ffd9f51f/wp-settings.php#L150