[wp-trac] [WordPress Trac] #57427: WP_Locale doesn't initialize property arrays before using them

WordPress Trac noreply at wordpress.org
Mon Feb 13 23:25:24 UTC 2023


#57427: WP_Locale doesn't initialize property arrays before using them
-------------------------------------------------+-------------------------
 Reporter:  tyxla                                |       Owner:
                                                 |  hellofromTonya
     Type:  defect (bug)                         |      Status:  accepted
 Priority:  normal                               |   Milestone:  6.2
Component:  I18N                                 |     Version:  6.1
 Severity:  normal                               |  Resolution:
 Keywords:  needs-testing-info reporter-         |     Focuses:
  feedback                                       |
-------------------------------------------------+-------------------------

Comment (by hellofromTonya):

 [comment:9 From the next steps]:
 >A deeper investigative dive is needed into any impacted sites to better
 understand what's different on these sites.
 >* Is the object in GLOBALS['wp_locale'] an instance of WP_Locale?
 >* If yes, then search for where the properties are being reset.
 >* If no, look at the object's class code to determine how it presets the
 properties.

 >In some setups this has caused warnings from PHP 7.4 on:

 I did a deeper dive and still haven't been successful at replicating the
 issue or identifying if there's a deeper issue within Core itself. More
 information is needed to further investigate what's different in "some
 setups" that are causing the warnings.

 To confirm, @tyxla did [55047] solve the problem?

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


More information about the wp-trac mailing list