[wp-trac] [WordPress Trac] #58318: Remove `load_theme_textdomain()` calls from default themes
WordPress Trac
noreply at wordpress.org
Fri Jun 16 13:03:16 UTC 2023
#58318: Remove `load_theme_textdomain()` calls from default themes
---------------------------+-------------------------
Reporter: swissspidy | Owner: swissspidy
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 6.3
Component: Bundled Theme | Version:
Severity: normal | Resolution: fixed
Keywords: has-patch | Focuses:
---------------------------+-------------------------
Changes (by swissspidy):
* owner: (none) => swissspidy
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"55929" 55929]:
{{{
#!CommitTicketReference repository="" revision="55929"
Bundled Themes: Remove `load_theme_textdomain()` calls from default
themes.
Since WordPress 4.6 introduced just-in-time translation loading, themes
and plugins no longer need to manually call
`load_theme_textdomain`/`load_plugin_textdomain`, unless they are on a
version prior to 4.6.
This change removes the `load_theme_textdomain()` call from Twenty
Seventeen and up, since these themes all require at least WordPress 4.7.
On older default themes, `load_theme_textdomain()` is called conditionally
depending on the WordPress version.
Props piyushtekwani.
Fixes #58318.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/58318#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list