[wp-trac] [WordPress Trac] #58001: Lazy load user capabilities in WP_User object
WordPress Trac
noreply at wordpress.org
Wed Oct 15 18:50:50 UTC 2025
#58001: Lazy load user capabilities in WP_User object
----------------------------------+-------------------------------------
Reporter: spacedmonkey | Owner: flixos90
Type: enhancement | Status: reopened
Priority: normal | Milestone: 6.9
Component: Users | Version:
Severity: normal | Resolution:
Keywords: early needs-dev-note | Focuses: multisite, performance
----------------------------------+-------------------------------------
Comment (by bradshawtm):
The bigger concern is the use of `get_object_vars()`, `json_encode()`, and
`wp_json_encode()`.
Those are a bit more difficult to search, but under the assumption of
`$user*` representing `WP_User` (which in many cases appears to be the
case), this is pretty common, particularly among security/login/backup
plugins:
* https://www.wpdirectory.net/search/01K7MJWY97ZXVCK1X9XC10MX9P
* https://www.wpdirectory.net/search/01K7MK8GQZRT6H0E6Q8XC0R1NQ
--
Ticket URL: <https://core.trac.wordpress.org/ticket/58001#comment:46>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list