#14763 closed defect (bug) (fixed)
Introduce is_blog_admin()
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | 3.1 |
| Component: | Administration | Version: | |
| Severity: | normal | Keywords: | |
| Cc: |
Description
To compliment is_network_admin(). Have is_admin() return true for any admin page, network or blog.
Change History (5)
comment:3
nacin
— 3 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
TobiasBg
— 3 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
johnjamesjacoby
— 3 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?
(In [15558]) is_blog_admin(). fixes #14763