I notice a lot of themes passing the ‘edit_themes’ capability when registering their options pages with add_theme_page(). On multisite installs edit_themes is reserved for super admins (and if a site defines DISALLOW_FILE_MODS then not even super admins will have it). If you want regular admins to be able to see the options page, which you probably do, you need to use ‘switch_themes’ instead of ‘edit_themes’. Perhaps we need an ‘edit_theme_options’ type cap if we want to be discreet from switch_themes.
Andrew Nacin 2:50 pm on April 16, 2010 Permalink
I’ve never been a fan of checking for switch_themes either. Some sites have a theme that shouldn’t be changed, but that doesn’t preclude modifications to it via options panels. I’m all for something like edit_theme_options.
Ryan Boren 3:37 pm on April 16, 2010 Permalink
I went ahead and added edit_theme_options capability. We might want to use this instead of switch_themes for custom header and background and other things.
Peter Westwood 8:58 am on April 17, 2010 Permalink
I’m a big fan of this sort of finer grained control.
Sounds like an excellent idea to move the custom header and background to this cap to.
Andrew Nacin 2:16 pm on April 17, 2010 Permalink
I agree. If someone else doesn’t beat me to it, I’ll switch over header, background, and nav menus to the new cap. Widgets too, I’d say.
Andrew Nacin 5:21 am on May 7, 2010 Permalink
Started this in http://core.trac.wordpress.org/ticket/13290. Could use a review.
Version 1.1.2 | Thirty Ten 3:17 am on April 17, 2010 Permalink
[...] 1.1.2 which makes use of the new edit_theme_options capability introduced in 14111. You can see Ryan Boren’s post on wpdevel for information about the new capability. The download link in the [...]
Lee Doel 10:44 am on April 20, 2010 Permalink
I like the idea of edit_theme_options then there is no grey area.
mark 11:01 am on July 8, 2010 Permalink
What is the status of this? It looks like it would be the solution for this idea.
Andrew Nacin 9:13 pm on July 8, 2010 Permalink
Implemented in #13290.