[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 14:09:55 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 neo2k23):

 Replying to [comment:18 swissspidy]:
 > Ah! That explains it! Thanks for sharing.
 >
 > The theme defines `$theme` in its `functions.php` file, which overrides
 the `$theme` variable from the `foreach` loop.
 >
 > Here's a PR that fixes this: https://github.com/WordPress/wordpress-
 develop/pull/7901

 Thank you for the fix. Myy issue is resolved. Although i had already
 altered $theme to $theme_init. :-)

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


More information about the wp-trac mailing list