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

WordPress Trac noreply at wordpress.org
Sun Aug 20 23:03:50 UTC 2023


#59057: Critical error after update to 6.3 due to WP_Metadata_Lazyloader
--------------------------+------------------------
 Reporter:  alexpaterson  |       Owner:  joemcgill
     Type:  defect (bug)  |      Status:  assigned
 Priority:  normal        |   Milestone:  6.3.1
Component:  General       |     Version:  6.3
 Severity:  critical      |  Resolution:
 Keywords:  has-patch     |     Focuses:
--------------------------+------------------------

Comment (by spacedmonkey):

 @joemcgill how about something like this.

 {{{#!php

 function wp_metadata_lazyloader() {
   static $wp_metadata_lazyloader;

   if ( null === $wp_metadata_lazyloader ) {
     if( ! class_exists( ‘ WP_Metadata_Lazyloader’ ) {
          require ABSPATH . WPINC . '/class-wp-metadata-lazyloader.php';
      }
     $wp_metadata_lazyloader = new WP_Metadata_Lazyloader();
   }

   return $wp_metadata_lazyloader;
 }

 }}}

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


More information about the wp-trac mailing list