[wp-trac] Re: [WordPress Trac] #10008: var pagenow in js not supporting plugins !

WordPress Trac wp-trac at lists.automattic.com
Tue Jun 2 21:51:07 GMT 2009


#10008: var pagenow in js not supporting plugins !
----------------------------+-----------------------------------------------
 Reporter:  arena           |       Owner:                  
     Type:  defect (bug)    |      Status:  new             
 Priority:  high            |   Milestone:  2.8             
Component:  Administration  |     Version:  2.8             
 Severity:  normal          |    Keywords:  has-patch tested
----------------------------+-----------------------------------------------

Comment(by arena):

 Replying to [comment:2 arena]:
 > Replying to [comment:1 Denis-de-Bernardy]:
 > > shouldn't this be substr($page_hook, 0, -4), rather?
 >
 > No, in wp,  pagenow is deducted from the php file name (admin.php,
 post.php etc ...)
 >
 > in plugins, plugin pages have no relation with any php file
 (admin.php?page=toto ...)


 btw, plugin_page is more stable than page_hook, page_hook value changes
 whether the option is at the top of a plugin menu or not !

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/10008#comment:3>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list