[wp-trac] [WordPress Trac] #42558: Reduce the number of capability checks performed by the Customizer
WordPress Trac
noreply at wordpress.org
Sun Nov 19 16:29:34 UTC 2017
#42558: Reduce the number of capability checks performed by the Customizer
-------------------------------------+--------------------------
Reporter: johnbillion | Owner: johnbillion
Type: enhancement | Status: accepted
Priority: normal | Milestone: 5.0
Component: Customize | Version:
Severity: normal | Resolution:
Keywords: has-patch needs-testing | Focuses: performance
-------------------------------------+--------------------------
Comment (by westonruter):
What if there was a new `$wp_customize->current_user_can()` method that
all of the customizer classes could then call as part of their manager?
Then they wouldn't need to store their own caches of the cap checks, as
the manager could have common set shared by all for that instance.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/42558#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list