[wp-trac] [WordPress Trac] #62244: Just-in-time translation loading for plugins/themes not in the directory

WordPress Trac noreply at wordpress.org
Wed Dec 4 09:51:29 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):

 Thanks!

 While I don't like it, I feel like at this point it would be safer to just
 always include `require_once ABSPATH . 'wp-admin/includes/plugin.php';` in
 `wp-settings.php`. Otherwise we play whac-a-mole trying to move functions
 every time we encounter a plugin at this. Loading the whole file (with a
 few unrelated functions) early is not great, but better than causing fatal
 errors.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/62244#comment:29>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list