Make WordPress Core

Opened 14 years ago

Closed 14 years ago

Last modified 14 years ago

#14763 closed defect (bug) (fixed)

Introduce is_blog_admin()

Reported by: ryan's profile ryan Owned by:
Milestone: 3.1 Priority: normal
Severity: normal Version:
Component: Administration Keywords:
Focuses: Cc:


To compliment is_network_admin(). Have is_admin() return true for any admin page, network or blog.

Change History (5)

#1 @ryan
14 years ago

  • Resolution set to fixed
  • Status changed from new to closed

(In [15558]) is_blog_admin(). fixes #14763

#2 @TobiasBg
14 years ago

Should all of that be "site" instead of "blog"?

#3 @nacin
14 years ago

In the code, we're quite consistent with "blog" meaning site, and "site" meaning network. Also, is_site_admin() already exists, it was MU's is_super_admin(). Using "site" here would be very confusing when working with the rest of the MU code that includes things like site_id and such.

#4 @TobiasBg
14 years ago

Oh yeah, right! :-) Forgot about that part of the mix-up. I had remember the switch from "blog" to "site", but apparently in the wrong place. Sorry.

#5 @johnjamesjacoby
14 years ago

Maybe because I'm an MU kinda guy, does in_blog_admin() and in_network_admin() make more sense for these? Particularly because of the is_site_admin/is_super_admin type functions from mu/ms being user focused template-tag style functions?

Note: See TracTickets for help on using tickets.