[wp-trac] [WordPress Trac] #28605: Introduce customize capability for accessing Customizer

WordPress Trac noreply at wordpress.org
Fri Jun 20 22:38:14 UTC 2014


#28605: Introduce customize capability for accessing Customizer
-----------------------------+-----------------------------
 Reporter:  westonruter      |      Owner:
     Type:  feature request  |     Status:  new
 Priority:  normal           |  Milestone:  Awaiting Review
Component:  Customize        |    Version:  3.4
 Severity:  normal           |   Keywords:
  Focuses:                   |
-----------------------------+-----------------------------
 Currently, access to the Customizer is restricted to users who can
 `edit_theme_options`. Settings also get registered with a default
 capability of `edit_theme_options`. However, settings do allow plugins to
 supply a different capability. Nevertheless, `edit_theme_options` is
 usually synonymous with users who are Administrators, and so if a plugin
 wanted to register a setting (with an `edit_posts` capability) for a user
 with a lesser role (e.g. Editors) to be able able to edit in the
 Customizer, the plugin would be prevented from doing so unless it granted
 `edit_theme_options` to Editors as well. This is undesirable.

 Therefore, it is suggested that a new `customize` capability be split out
 from `edit_theme_options`. By default it can be added only to the
 Administrator role, but if a plugin wants to register a setting for
 another role to be able to edit, they may then have the option of giving
 the `customize` capability to users with that role as well.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/28605>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list