[wp-trac] [WordPress Trac] #43043: WP Customizer checks current_user_can() too early
WordPress Trac
noreply at wordpress.org
Mon Jan 8 19:11:22 UTC 2018
#43043: WP Customizer checks current_user_can() too early
---------------------------+------------------------------
Reporter: jamesmehorter | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Customize | Version: 4.9.1
Severity: normal | Resolution:
Keywords: | Focuses:
---------------------------+------------------------------
Comment (by mauteri):
@westonruter This would effect anyone trying to do the same thing in a
theme. Shouldn't the current_user_can( 'customize' ) checks fall in the
after_theme_setup hook rather than the theme_setup to give the theme code
a chance to set role/capabilities for this?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/43043#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list