[wp-trac] [WordPress Trac] #58001: Lazy load user capabilities in WP_User object

WordPress Trac noreply at wordpress.org
Tue Oct 21 15:43:08 UTC 2025


#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,
                                            |  performance
--------------------------------------------+------------------------------

Comment (by spacedmonkey):

 I am away from keyboard at the moment. Thanks for the revert. I didn’t
 have time to do it myself. Sadly, this ticket is heavily linked to another
 one #63021, as this was also committed, core tests will fail.

 Either that ticket needs to be reverted or tests updated.
 Lazy loading capabilities goes hand in hand with lazy loading user meta.
 Capabilities are stored in user meta, if we don’t load them lazily, then
 user meta need to eagerly loaded.

 Cc @jorbin @TimothyBlynJacobs

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


More information about the wp-trac mailing list