[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 Aug 13 11:45:06 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 simonwheatley):
Replying to [comment:2 scribu]:
> Looking good. +1
Should the {{{user_can}}} function be using {{{get_userdata}}} rather than
instantiating a new WP_User object every time, so it takes advantage of
the cache?
--
Ticket URL: <http://core.trac.wordpress.org/ticket/14602#comment:4>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list