[wp-trac] [WordPress Trac] #62012: Remove obsolete conditional in wp-admin/user-new.php

WordPress Trac noreply at wordpress.org
Mon Sep 9 10:15:40 UTC 2024


#62012: Remove obsolete conditional in wp-admin/user-new.php
---------------------------------------------+-----------------------------
 Reporter:  SergeyBiryukov                   |       Owner:  SergeyBiryukov
     Type:  defect (bug)                     |      Status:  closed
 Priority:  normal                           |   Milestone:  6.7
Component:  Users                            |     Version:  3.0
 Severity:  normal                           |  Resolution:  fixed
 Keywords:  good-first-bug has-patch commit  |     Focuses:  administration
---------------------------------------------+-----------------------------
Changes (by SergeyBiryukov):

 * owner:  (none) => SergeyBiryukov
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"58999" 58999]:
 {{{
 #!CommitTicketReference repository="" revision="58999"
 Users: Remove obsolete conditional in `wp-admin/user-new.php`.

 Since `$username` is set to `$user_details->user_login`, it will never be
 `null` in this specific line.

 Follow-up to [https://mu.trac.wordpress.org/changeset/641 mu:641],
 [https://mu.trac.wordpress.org/changeset/1529 mu:1529], [12722], [16294].

 Props akshat2802, mukesh27, aristath, SergeyBiryukov.
 Fixes #62012.
 }}}

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


More information about the wp-trac mailing list