Make WordPress Core

Opened 15 years ago

Closed 15 years ago

Last modified 15 years ago

#10246 closed defect (bug) (fixed)

New Security check for plugins pages breaks backwards-compatible redirects

Reported by: filosofo's profile filosofo Owned by: ryan's profile ryan
Milestone: 2.8.1 Priority: high
Severity: major Version: 2.8
Component: Menus Keywords: has-patch user_can_access_admin_page
Focuses: Cc:

Description

[11595] and [11596] introduced checks to make sure that one can load only plugin pages that have been registered.

The problem is that it fails before the backwards-compatible redirect has a chance to do its thing. That backwards-compat redirect, in wp-admin/admin.php, makes sure that plugins pointing at edit.php?* get redirected to the 2.7+ tools.php pages.

Patch adds an entry in $_registered_pages for 'edit.php'-based hooknames for each 'tools.php'-based hookname.

Attachments (1)

tools_and_edit_as_synonyms.diff (569 bytes) - added by filosofo 15 years ago.

Download all attachments as: .zip

Change History (4)

#1 @ryan
15 years ago

  • Resolution set to fixed
  • Status changed from new to closed

(In [11628]) Fix back-compat plugins page redirects. Props filosofo. fixes #10246 for trunk

#2 @ryan
15 years ago

(In [11629]) Fix back-compat plugins page redirects. Props filosofo. fixes #10246 for 2.8.1

#3 @ryan
15 years ago

Nice catch.

Note: See TracTickets for help on using tickets.