[wp-trac] [WordPress Trac] #16490: Rename is_x_admin() functions to in_x_admin()

WordPress Trac wp-trac at lists.automattic.com
Tue Feb 8 17:11:14 UTC 2011


#16490: Rename is_x_admin() functions to in_x_admin()
----------------------------+------------------------------
 Reporter:  apeatling       |       Owner:
     Type:  enhancement     |      Status:  new
 Priority:  normal          |   Milestone:  Awaiting Review
Component:  Administration  |     Version:  3.1
 Severity:  normal          |  Resolution:
 Keywords:  has-patch       |
----------------------------+------------------------------

Comment (by nacin):

 The other option, too, is we had discussed `is_admin( $where = true )`
 with the option to specify 'user' or 'network'. Not that we plan on adding
 more admins beyond these, just throwing it out there.

 I agree with scribu, also. Is it confusing? Yeah. But it's been building
 up to this for a while, so let's just sit on it.

 is_admin() is actually in_admin()

 is_blog_admin() is actually in_blog_admin()

 is_site_admin() is actually is_super_admin()

 is_network_admin() is actually in_network_admin()

 is_super_admin() is the new name for is_site_admin()

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


More information about the wp-trac mailing list