[wp-trac] [WordPress Trac] #58185: Lazy load site meta
WordPress Trac
noreply at wordpress.org
Wed May 17 09:42:18 UTC 2023
#58185: Lazy load site meta
-------------------------------------------------+-------------------------
Reporter: spacedmonkey | Owner:
| spacedmonkey
Type: enhancement | Status: reopened
Priority: normal | Milestone: 6.3
Component: Networks and Sites | Version: 5.1
Severity: normal | Resolution:
Keywords: has-patch has-unit-tests commit | Focuses: multisite,
needs-dev-note | performance
-------------------------------------------------+-------------------------
Comment (by spacedmonkey):
In [changeset:"55818" 55818]:
{{{
#!CommitTicketReference repository="" revision="55818"
Networks and Sites: Load `WP_Metadata_Lazyloader` class file if class does
not exist.
Follow on from [55747].
As `get_sites` can be called very early in the bootstrap process, like in
the sunrise.php file, it means that the `WP_Metadata_Lazyloader` may not
have been loaded yet in the wp-settings.php file. Add a simple check to
see if the class exists and if it does not exist then load the class file
in.
Props spacedmonkey, peterwilsoncc, dd32.
See #58185.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/58185#comment:16>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list