[wp-trac] [WordPress Trac] #59057: Critical error after update to 6.3 due to WP_Metadata_Lazyloader

WordPress Trac noreply at wordpress.org
Wed Aug 30 20:50:09 UTC 2023


#59057: Critical error after update to 6.3 due to WP_Metadata_Lazyloader
--------------------------+------------------------
 Reporter:  alexpaterson  |       Owner:  joemcgill
     Type:  defect (bug)  |      Status:  reopened
 Priority:  normal        |   Milestone:  6.3.2
Component:  General       |     Version:  6.3
 Severity:  critical      |  Resolution:
 Keywords:  2nd-opinion   |     Focuses:
--------------------------+------------------------
Changes (by joemcgill):

 * keywords:  has-patch => 2nd-opinion


Comment:

 Replying to [comment:29 SergeyBiryukov]:
 > Please keep the ticket open until a fix is committed to WordPress core.
 Thanks!

 I'm not sure if this is something we can fix with a change to core at this
 point. If I'm correctly understanding most of the issues that have been
 reported, we've moved the inclusion of the file that declares the
 `WP_Metadata_Lazyloader` class to a different file, `/wp-
 includes/meta.php`, which is loaded earlier in the bootstrap process than
 the previous`wp-settings.php` file.

 However, if the old file doesn't get updated then the only fix I can think
 of would be to add a check inside the `class-wp-metadata-lazyloader.php`
 file that returns early if the class has already been loaded. While this
 would work, it would essentially make the whole class pluggable, where it
 could be replaced by any third party code that is loaded earlier, which is
 less than ideal.

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


More information about the wp-trac mailing list