[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 14:16:09 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 scribu):
Replying to [comment:4 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?
No, because WP_User calls get_userdata() internally.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/14602#comment:5>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list