[wp-trac] [WordPress Trac] #30049: wp_load_translations_early does not work without WPLANG defined

WordPress Trac noreply at wordpress.org
Mon Jun 17 13:57:28 UTC 2024


#30049: wp_load_translations_early does not work without WPLANG defined
--------------------------------------+-------------------------
 Reporter:  szepe.viktor              |       Owner:  swissspidy
     Type:  defect (bug)              |      Status:  assigned
 Priority:  normal                    |   Milestone:  6.7
Component:  I18N                      |     Version:  4.0
 Severity:  normal                    |  Resolution:
 Keywords:  has-patch has-unit-tests  |     Focuses:
--------------------------------------+-------------------------

Comment (by ramon fincken):

 I have read ISO documentation and simplified and somewhat improved the
 regex a bit ( which was pretty good to be honest ).

 Also I allowed for commandline WP-CLI / PHP where this header is not even
 present ( PHP Warning:  Undefined array key "HTTP_ACCEPT_LANGUAGE" )

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


More information about the wp-trac mailing list