[wp-trac] [WordPress Trac] #56400: Rename is_admin() and related functions for clarity

WordPress Trac noreply at wordpress.org
Tue Sep 20 15:09:34 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:  Administration  |     Version:
 Severity:  normal          |  Resolution:
 Keywords:                  |     Focuses:
----------------------------+-----------------------------
Changes (by SergeyBiryukov):

 * owner:  (none) => SergeyBiryukov
 * status:  new => accepted
 * milestone:  Awaiting Review => 6.1


Comment:

 Replying to [comment:2 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()`

 Thanks! It did not occur to me, but I think it makes perfect sense to add
 that alias too. Commit incoming :)

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/56400#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list