[wp-trac] [WordPress Trac] #56400: Rename is_admin() and related functions for clarity
WordPress Trac
noreply at wordpress.org
Thu Aug 18 16:18:26 UTC 2022
#56400: Rename is_admin() and related functions for clarity
----------------------------+------------------------------
Reporter: SergeyBiryukov | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Administration | Version:
Severity: normal | Resolution:
Keywords: | Focuses:
----------------------------+------------------------------
Comment (by jrf):
Just wondering: as there are four "screen" functions and one "user"
function and the impact of renaming these functions on userland code is
large, what is the reason to favour renaming the (four) "screen" functions
instead of renaming the (one and much less used) "user" function ?
`is_super_admin()` could become `is_super_admin_user()`
Note: I'm in favour of adding the aliases either way as it allows for more
descriptive code, but I'm not sure the original "screen" functions should
be deprecated.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/56400#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list