WordPress.org

Make WordPress Core

Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#14763 closed defect (bug) (fixed)

Introduce is_blog_admin()

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

Description

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

Change History (5)

comment:1 ryan4 years ago

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

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

comment:2 TobiasBg4 years ago

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

comment:3 nacin4 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.

comment:4 TobiasBg4 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.

comment:5 johnjamesjacoby4 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.