Thread Starter
doug
(@doug)
Further investigation reveals that adding the “Manage options” capability gives the user the ability to change Page Attributes. The Attributes panel on Add New Page contains Page Parent, Order, and Template.
It doesn’t make sense to me that a user must have Manage Options capability in order to create a child page.
Disable this two capabilities on all roles and them will disapear from your system.
The plugin just adds or removes the capabilities to a role. It does not change the way WordPress uses the capabilities. Adding new capabilities is only intended for developers that will use them on a plugin.
I’m sorry, but I don’t know enough how WordPress manages child pages. Probably Editors can create child pages. I would suggest to test with an editor. If works, look the capabilities an Editor has, and find out the ones you need.
But I think to create a child page you need rights to edit the parent one, as you are creating a child of it.
You have more info at http://codex.wordpress.org/Roles_and_Capabilities
Thread Starter
doug
(@doug)
Thanks, that did the trick for removing unused capabilities.
FYI, by default administrators can create child pages. No other users can, not even Editors.
The Page Attributes (which includes creating child pages) are only available to users with “Manage Options”, so I have added that capability where needed and filed a bug with wordpress.org to make the page attributes a separate capability from manage options. But that is an issue with WordPress, not your plugin. Thanks for you help.