[wp-trac] [WordPress Trac] #2929: get_admin_page_title() = unknown function during form nonce fail

WordPress Trac wp-trac at lists.automattic.com
Sat Jul 8 00:54:19 GMT 2006


#2929: get_admin_page_title() = unknown function during form nonce fail
----------------------------+-----------------------------------------------
 Reporter:  Viper007Bond    |       Owner:  anonymous
     Type:  defect          |      Status:  new      
 Priority:  normal          |   Milestone:  2.1      
Component:  Administration  |     Version:  2.1      
 Severity:  blocker         |    Keywords:           
----------------------------+-----------------------------------------------
 I have a top level menu for a personal plugin that has a form on one of
 it's submenu pages ({{{/wp-admin/admin.php?page=mypagename}}}).

 I have {{{wp_nonce_field('foo');}}} in my form and then
 {{{check_admin_referer('bar');}}} in my {{{$_POST}}} checker. Since they
 don't match (on purpose for testing purposes), the "Are you sure you want
 to do this?" form should show up (and it does just fine in WP v2.0.3).

 However in the lastest copy of WP v2.1, I get this error message:

 {{{
 Fatal error: Call to undefined function get_admin_page_title() in
 [...]\wordpress-latest\wp-admin\admin-header.php on line 12
 }}}

 The URL in my address bar is {{{[...]/wp-
 admin/admin.php?page=mypagename}}} if that helps.

 I suspect this is because it's a top level menu, but it should still be
 fixed. ;)

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


More information about the wp-trac mailing list