[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:26:40 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):
@johnbillion yes I know, but use it here? None (almost) of the other
member vars are static. Using static makes it harder to unit test. Maybe
too there also there could be a case where you want to instantiate
`WP_Customize_Manager` and other classes later with another current user
active, but the the caps in the static var could leak to other such
Customizer sessions.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/42558#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list