[wp-trac] [WordPress Trac] #32739: Allow Non-administrators to Access the Customizer
WordPress Trac
noreply at wordpress.org
Sun Jul 5 23:00:20 UTC 2015
#32739: Allow Non-administrators to Access the Customizer
--------------------------+-----------------------
Reporter: y2kand13 | Owner:
Type: defect (bug) | Status: reopened
Priority: normal | Milestone:
Component: Customize | Version: 4.2
Severity: normal | Resolution:
Keywords: close | Focuses:
--------------------------+-----------------------
Changes (by westonruter):
* keywords: => close
Comment:
@y2kand13: Are you adding this filter inside of a theme or a plugin? It
works for me when included in a plugin. Note that it has to be added
before `setup_theme` fires, which happens before a theme's `functions.php`
loads. So the code has to be executed by the `plugins_loaded` action. So
this means that if this functionality is loaded by a theme (e.g. on
WordPress.com VIP) it will happen too late. In this case, a different
approach is needed where the `customize` capability gets written
persistently to the user role in the database, e.g. via a one-time call to
`WP_Role::add_cap()`. I haven't tried this yet, but I know my colleague
@shadyvb is working on it.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/32739#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list