[wp-trac] [WordPress Trac] #5379: Add admin_menu_permission hook to menu.php

WordPress Trac wp-trac at lists.automattic.com
Thu Nov 22 15:46:16 GMT 2007


#5379: Add admin_menu_permission hook to menu.php
-------------------------+--------------------------------------------------
 Reporter:  donncha      |       Owner:  anonymous
     Type:  enhancement  |      Status:  new      
 Priority:  normal       |   Milestone:  2.3.2    
Component:  General      |     Version:  2.3.1    
 Severity:  normal       |    Keywords:           
-------------------------+--------------------------------------------------
 WordPress MU has a modified wp-admin/menu.php but with the addition of a
 new hook just above the user_can_access_admin_page() check, those custom
 mods can go into a new file.

 I called the action admin_menu_permission as there are hooks above for
 modifying the admin menu, this hook wouldn't have any other function
 AFAICT.

 I did try hooking on to admin_menu but it didn't work and the user
 received the standard WP "cannot access page" error instead of being
 redirected as WordPress MU usually does.

 Please take a look at the attached file.

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


More information about the wp-trac mailing list