[wp-trac] [WordPress Trac] #58001: Lazy load user capabilities in WP_User object
WordPress Trac
noreply at wordpress.org
Thu Feb 5 17:27:54 UTC 2026
#58001: Lazy load user capabilities in WP_User object
-------------------------------------------------+-------------------------
Reporter: spacedmonkey | Owner:
| spacedmonkey
Type: enhancement | Status: assigned
Priority: normal | Milestone: 7.0
Component: Users | Version:
Severity: normal | Resolution:
Keywords: early needs-dev-note has-patch | Focuses: multisite,
changes-requested | performance
-------------------------------------------------+-------------------------
Changes (by sachinrajcp123):
* Attachment "58001-short-init-lazy-user-capabilities.patch" added.
Adds short_init support to WP_User and lazy loads roles and capabilities
only when accessed, reducing frontend usermeta queries. Includes
serialization handling for compatibility. See #58001.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/58001>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list