[wp-trac] [WordPress Trac] #62337: i18n: Translation is not applied in load_theme_textdomain() function

WordPress Trac noreply at wordpress.org
Mon Nov 4 11:31:33 UTC 2024


#62337: i18n: Translation is not applied in load_theme_textdomain() function
--------------------------+-------------------------
 Reporter:  wildworks     |       Owner:  swissspidy
     Type:  defect (bug)  |      Status:  reviewing
 Priority:  normal        |   Milestone:  6.7.1
Component:  I18N          |     Version:  trunk
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:
--------------------------+-------------------------
Changes (by swissspidy):

 * milestone:  Awaiting Review => 6.7.1


Comment:

 This is a consequence of [59157]. If calling `load_*_textdomain()` _after_
 WordPress has already attempted just-in-time loading, nothing happens. For
 themes, just-in-time loading is triggered by
 `_register_theme_block_patterns` (which is hooked to `init` at prio 10).

 While a look into this, a quick fix is to change `init` to
 `after_setup_theme` in your code snippet above.

 Tentatively moving to 6.7.1 milestone instead of 6.7, given the release
 schedule and minor severity of the issue.

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


More information about the wp-trac mailing list