[wp-trac] Re: [WordPress Trac] #8574: admin_init not fired on admin-ajax.php

WordPress Trac wp-trac at lists.automattic.com
Thu Dec 11 22:17:47 GMT 2008


#8574: admin_init not fired on admin-ajax.php
----------------------------+-----------------------------------------------
 Reporter:  DD32            |        Owner:  anonymous
     Type:  defect          |       Status:  new      
 Priority:  normal          |    Milestone:  2.8      
Component:  Administration  |      Version:  2.7      
 Severity:  normal          |   Resolution:           
 Keywords:  has-patch       |  
----------------------------+-----------------------------------------------
Comment (by DD32):

 > Should it not be after the is_user_logged_in() check.

 I considered that, But since that block is logic case, i thought it was
 best to get the admin hooks run beforehand.

 (Might i also say that that file could do with a client cleanup, $action
 being defined beforehand, everything moved into one switch(), the switch
 break/case/exit lines being the same throughout, etc.)

-- 
Ticket URL: <http://trac.wordpress.org/ticket/8574#comment:2>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list