[wp-trac] [WordPress Trac] #62736: Internationalization improvements in 6.7 possible bug

WordPress Trac noreply at wordpress.org
Mon Dec 23 22:52:44 UTC 2024


#62736: Internationalization improvements in 6.7 possible bug
--------------------------+-----------------------------
 Reporter:  fullermetric  |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:  6.7.1
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 In our functions.php we have this going on:

 if (function_exists('add_theme_support')) {
   load_theme_textdomain('html5blank', get_template_directory() .
 '/languages');
 }

 which used to work, but now generates a message in our debug.log

 [23-Dec-2024 22:40:13 UTC] PHP Notice:  Function
 _load_textdomain_just_in_time was called <strong>incorrectly</strong>.
 Translation loading for the <code>html5blank</code> domain was triggered
 too early. This is usually an indicator for some code in the plugin or
 theme running too early. Translations should be loaded at the
 <code>init</code> action or later. Please see <a
 href="https://developer.wordpress.org/advanced-administration/debug/debug-
 wordpress/">Debugging in WordPress</a> for more information. (This message
 was added in version 6.7.0.) in
 /chroot/home/ab2bb14c/fullerfasteners.com/html/wp-includes/functions.php
 on line 6114

 Have a look at this thread
 [https://core.trac.wordpress.org/changeset/59127]
 and tell us if we are doing this correctly?

 Thanks,
 Fuller

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/62736>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list