[wp-trac] [WordPress Trac] #62244: Just-in-time translation loading for plugins/themes not in the directory
WordPress Trac
noreply at wordpress.org
Thu Dec 5 12:11:42 UTC 2024
#62244: Just-in-time translation loading for plugins/themes not in the directory
--------------------------------------+-------------------------
Reporter: swissspidy | Owner: swissspidy
Type: enhancement | Status: closed
Priority: normal | Milestone: 6.8
Component: I18N | Version:
Severity: normal | Resolution: fixed
Keywords: has-patch needs-dev-note | Focuses:
--------------------------------------+-------------------------
Changes (by swissspidy):
* status: reopened => closed
* resolution: => fixed
Comment:
In [changeset:"59488" 59488]:
{{{
#!CommitTicketReference repository="" revision="59488"
Plugins: Load `wp-admin/includes/plugin.php` earlier.
Partially reverts [59479] and [59461], which previously tried to move some
functions from `wp-admin/includes/plugin.php` to `wp-
includes/functions.php` so they are available early, so that
`get_plugin_data()` can be used.
However, other functions from that file are often used by plugins without
necessarily checking whether they are available, easily causing fatal
errors. Requiring this file directly is a safer approach to avoid such
errors.
Props peterwilsoncc, dd32, swissspidy, johnbillion.
Fixes #62244.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/62244#comment:32>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list