[wp-trac] [WordPress Trac] #62244: Just-in-time translation loading for plugins/themes not in the directory
WordPress Trac
noreply at wordpress.org
Wed Nov 27 08:34:11 UTC 2024
#62244: Just-in-time translation loading for plugins/themes not in the directory
--------------------------------------+-------------------------
Reporter: swissspidy | Owner: swissspidy
Type: enhancement | Status: reopened
Priority: normal | Milestone: 6.8
Component: I18N | Version:
Severity: normal | Resolution:
Keywords: has-patch needs-dev-note | Focuses:
--------------------------------------+-------------------------
Comment (by swissspidy):
[https://github.com/search?q=function_exists%28+%27get_plugin_data%27+%29+is_plugin_active%28&type=code
Here's basic GitHub search] that I manually skimmed through. I found a few
more plugins potentially affected by this:
https://github.com/varunsridharan/wp-
dependencies/blob/69cb89d618b0c30f4a1b7ee4abc2796eabe064a6/src/dependencies.php#L27-L63
https://github.com/pantheon-
systems/WordPress/blob/e2366cd0ea334ac11db8ecbd87af64023ff80ba0/wp-content
/mu-plugins/pantheon-mu-plugin/inc/compatibility/base.php#L76-L92
https://github.com/tomastm07/supermarket-sku110-dense-object-
detection/blob/258d4fab8d99edae61eed823ee78484ab99b39ba/wp-content/plugins
/sg-security/core/Plugins_Service/Plugins_Service.php#L61-L90
https://github.com/kanbanwp/kanban/blob/848722bccef253a13839a60a9f6122d6939eceb5/v3/kanban.php#L63-L74
They sometimes use `is_plugin_active` or `is_plugin_active_for_network`,
potentially even others. So at least those two would need to be moved.
An alternative is to not move any functions but just load `wp-
admin/includes/plugin.php` early on, but that exposes too much IMO.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/62244#comment:10>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list