[wp-trac] [WordPress Trac] #62557: Language still messed up

WordPress Trac noreply at wordpress.org
Sun Nov 24 12:15:24 UTC 2024


#62557: Language still messed up
--------------------------+-------------------------
 Reporter:  Stefan M.     |       Owner:  (none)
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:
Component:  I18N          |     Version:  6.7.1
 Severity:  normal        |  Resolution:  worksforme
 Keywords:                |     Focuses:
--------------------------+-------------------------
Changes (by swissspidy):

 * status:  new => closed
 * resolution:   => worksforme
 * component:  General => I18N
 * severity:  critical => normal
 * milestone:  Awaiting Review =>


Comment:

 > Still a lot of following error messages:

 That means those plugins are still doing and wrong and the devs need to
 follow https://make.wordpress.org/core/2024/10/21/i18n-improvements-6-7/
 to make their code more robust.

 Most plugins and themes have already released updates by now, so make sure
 your site is up-to-date.

 > How is that wrong?

 That code alone is not wrong.

 If you encounter the warning for your own code, that means something else
 is triggering translation loading even before `init`.

 The above blog post has some guidance on how to debug the issue, for
 example using Query Monitor or a snippet like this to find the root cause:

 {{{
 add_action(
         'doing_it_wrong_run',
         static function ( $function_name ) {
                 if ( '_load_textdomain_just_in_time' === $function_name )
 {
                         debug_print_backtrace();
                 }
         }
 );
 }}}

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


More information about the wp-trac mailing list