[wp-trac] [WordPress Trac] #14602: Create user_can, refactor current_user_can, author_can, current_user_can_for_blog

WordPress Trac wp-trac at lists.automattic.com
Fri Nov 5 16:42:36 UTC 2010


#14602: Create user_can, refactor current_user_can, author_can,
current_user_can_for_blog
-----------------------------+----------------------------------------------
 Reporter:  simonwheatley    |       Owner:                         
     Type:  enhancement      |      Status:  new                    
 Priority:  normal           |   Milestone:  3.1                    
Component:  Role/Capability  |     Version:  3.0.1                  
 Severity:  normal           |    Keywords:  has-patch needs-testing
-----------------------------+----------------------------------------------

Comment(by ryan):

 I think each of these functions still need to get the args, slice, merge,
 and call_user_func_array() so that the extra args aren't dropped.  After
 doing all that has_cap should be called directly rather than going through
 user_can() and doing the same thing again.

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


More information about the wp-trac mailing list