[wp-trac] [WordPress Trac] #56400: Rename is_admin() and related functions for clarity
WordPress Trac
noreply at wordpress.org
Tue Sep 27 16:30:15 UTC 2022
#56400: Rename is_admin() and related functions for clarity
--------------------------------+-----------------------------
Reporter: SergeyBiryukov | Owner: SergeyBiryukov
Type: enhancement | Status: accepted
Priority: normal | Milestone: 6.1
Component: Bootstrap/Load | Version:
Severity: normal | Resolution:
Keywords: 2nd-opinion revert | Focuses:
--------------------------------+-----------------------------
Comment (by SergeyBiryukov):
In [changeset:"54332" 54332]:
{{{
#!CommitTicketReference repository="" revision="54332"
Bootstrap/Load: Revert the `is_*_admin_screen()` aliases for
`is_*_admin()` function family.
After some further discussion, it is apparent that the added clarity was
subjective, and the `_screen` suffix may not always be appropriate, e.g.
in Ajax context. To address any confusion with the existing names, the
documentation for these functions can be updated instead.
Additionally, the `is_super_admin_user()` alias for `is_super_admin()` is
reverted as well, which may be reconsidered in the future.
Follow-up to [54259].
Props azaozz, jrf, johnbillion, manfcarlo, Clorith.
See #56400.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/56400#comment:23>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list