WordPress.org

Make WordPress Core

Opened 21 months ago

Last modified 8 months ago

#35309 new enhancement

remove_menu_page and remove_submenu_page

Reported by: omarhadidy Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 4.4
Component: Administration Keywords: close
Focuses: Cc:

Description

When remove top level menu - remove_menu_page =>
1- page content for top level can access if i know url
2- page content for second level can access if i know url
When remove second level menu - remove_submenu_page =>
1- page content for second level appear white page message

  • You do not have sufficient permissions to access this page.

It is better when you delete top level menu => delete top menu page and sub-menus page Like sub-menu remove

Change History (4)

#1 follow-up: @swissspidy
21 months ago

  • Focuses accessibility removed

#2 in reply to: ↑ 1 ; follow-up: @omarhadidy
21 months ago

Replying to swissspidy:Please clarify more

#3 in reply to: ↑ 2 @swissspidy
21 months ago

Replying to omarhadidy:

Replying to swissspidy:Please clarify more

I just did some housekeeping as this ticket isn't accessibility-centric. Nothing to clarify :-)

As to your question, I'm not sure it's possible to do it in a backwards-compatible manner. Hidden admin pages have been possible for a long time and I'm sure some people depend on removed menu pages still being accessible.

#4 @swissspidy
8 months ago

  • Keywords close added

Inclined to close this because of BC concerns.

Note: See TracTickets for help on using tickets.