[wp-trac] [WordPress Trac] #28700: remove_submenu_page() Prevents Access
WordPress Trac
noreply at wordpress.org
Tue Jul 1 00:40:00 UTC 2014
#28700: remove_submenu_page() Prevents Access
--------------------------------+-----------------------------
Reporter: WebTechGlobal | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Administration | Version: 3.9.1
Severity: normal | Keywords:
Focuses: ui, administration |
--------------------------------+-----------------------------
[http://codex.wordpress.org/remove_submenu_page remove_submenu_page codex]
page seems to suggest that this function will not prevent access to the
page...
"this would not prevent a user from accessing these screens directly".
However it does and "You do not have sufficient permissions to access this
page." is displayed.
Has the functions purpose changed or has an update possibly neglected this
function and it's need? There are various posts on forums suggesting the
function does actually hide items rather than remove pages so it seems
it's behavior has changed.
I'm thinking being security related this function should be left alone and
a new hide_submenu_page() function created.
I'm trying to register around 30 pages, show 5 in the plugin menu and the
other 25 in tabbed menus on each of the 5 pages. It cannot be done while
remove_submenu_page() does not hide and actually removes the page from
array.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/28700>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list