Steven
Member
Posted 11 months ago #
When installing the plugin the plugin adds a new option to the "Settings" section in the admin sidebar. So far so good, however this option is also visible to editors and that's of course something we don't want as administrators :)
Here is the fix:
function setupAdmin() {
add_options_page(P2P_DISPLAY_NAME, P2P_DISPLAY_NAME, 6,
should become:
function setupAdmin() {
add_options_page(P2P_DISPLAY_NAME, P2P_DISPLAY_NAME, 8,
Note that the 6 has changed into an 8.
http://codex.wordpress.org/Roles_and_Capabilities#User_Levels
http://wordpress.org/extend/plugins/post-to-post-links-ii/
Mike Toppa
Member
Posted 11 months ago #
Hi Steven - the purpose of the plugin is to provide a standardized way for post authors to make links to other posts. So it's intended for editors... or am I missing your point?
Steven
Member
Posted 11 months ago #
Well yes that's true however the editors don't have to see the option to uninstall the plugin ;)
Mike Toppa
Member
Posted 11 months ago #
Good point! In the next version I will set it to use the standard uninstall option that WordPress now provides directly from the plugin menu