[wp-trac] [WordPress Trac] #7932: add_management_page changes plugin admin URL

WordPress Trac wp-trac at lists.automattic.com
Mon Oct 20 20:17:30 GMT 2008


#7932: add_management_page changes plugin admin URL
----------------------------+-----------------------------------------------
 Reporter:  filosofo        |       Owner:  anonymous                    
     Type:  defect          |      Status:  new                          
 Priority:  normal          |   Milestone:  2.7                          
Component:  Administration  |     Version:  2.7                          
 Severity:  normal          |    Keywords:  add_management_page has-patch
----------------------------+-----------------------------------------------
 [9050] changed {{{add_management_page}}}'s parent page from edit.php to
 import.php, which means that plugins using {{{add_management_page}}} now
 have different admin page URLs.  So for example, if your plugin
 description tries to link to its management page using {{{edit.php?page
 =my-plugin}}}, which has worked at least since WP 1.5, it now has a fatal
 error.

 My patch checks for a failed admin page request of the form
 {{{edit.php?page=[something]}}} and if {{{import.php?page=[something]}}}
 works, it redirects to that page.

-- 
Ticket URL: <http://trac.wordpress.org/ticket/7932>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list