[wp-trac] [WordPress Trac] #7811: Wordpress 2.7 causes 404s for
some plugin admin pages
WordPress Trac
wp-trac at lists.automattic.com
Tue Sep 30 10:32:51 GMT 2008
#7811: Wordpress 2.7 causes 404s for some plugin admin pages
----------------------------+-----------------------------------------------
Reporter: mark8barnes | Owner: anonymous
Type: defect | Status: new
Priority: normal | Milestone: 2.7
Component: Administration | Version: 2.7
Severity: normal | Keywords:
----------------------------+-----------------------------------------------
I have a plugin which has worked fine in all previous recent versions of
WP. The plugin creates a top-level menu with several sub-menus. In WP2.7,
sub-menus have the wrong URL on certain menus.
That is, if I am on (e.g.) the "write" page, the URL for my submenu
is[[BR]]
http://preview.4-14.org.uk/wp-admin/admin.php?page=sermon-
browser/sermon.php [[BR]]
This works.
But if I am on the dashboard, the URL for my submenu is[[BR]]
http://preview.4-14.org.uk/wp-admin/sermon-browser/sermon.php?page=sermon-
browser/sermon.php [[BR]]
This gives a 404. The comments page does the same. Neither dashboard or
comments have a submenu of their own - perhaps that makes the difference.
The code my plugin uses to create the submenus can
[http://plugins.trac.wordpress.org/browser/sermon-browser/trunk/sermon.php
be seen here]: (lines 61f).
I understand how to fix this in my plugin, but wanted to create the ticket
to (1) Prompt documentation for other developers or (2) Fix the core to
prevent this happening.
--
Ticket URL: <http://trac.wordpress.org/ticket/7811>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list