[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 07:10:44 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 dd32):
This has also caused some fatals on wp-themes.com, although I was
struggling to understand how, it's the same type of code as in [comment:7
comment 7], `get_plugin_data()` is checked for and if not present
`plugin.php` is loaded, and elsewhere in the theme `is_plugin_active()` is
called.
Example: https://themes.trac.wordpress.org/ticket/182411#comment:2
Here's some affected themes:
- https://wordpress.org/themes/ajima/
- https://wordpress.org/themes/avenews/
- https://wordpress.org/themes/ecoscape/
- https://wordpress.org/themes/photographymax/
''Sidenote: Making `is_plugin_active()` always available would be a
benefit to a bunch of various plugins/themes.''
--
Ticket URL: <https://core.trac.wordpress.org/ticket/62244#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list