[wp-trac] [WordPress Trac] #50767: Coding Standards fixes for WP 5.6

WordPress Trac noreply at wordpress.org
Mon Oct 19 20:18:59 UTC 2020


#50767: Coding Standards fixes for WP 5.6
--------------------------------------+-------------------------------
 Reporter:  SergeyBiryukov            |       Owner:  (none)
     Type:  task (blessed)            |      Status:  new
 Priority:  normal                    |   Milestone:  5.6
Component:  General                   |     Version:
 Severity:  normal                    |  Resolution:
 Keywords:  has-patch has-unit-tests  |     Focuses:  coding-standards
--------------------------------------+-------------------------------

Comment (by SergeyBiryukov):

 In [changeset:"49206" 49206]:
 {{{
 #!CommitTicketReference repository="" revision="49206"
 Coding Standards: Use more specific checks for `$wpdb->get_row()` results.

 If `$wpdb->get_row()` is successful and the `$output` parameter has not
 been set, the output will be an instance of `stdClass`, so test to confirm
 that instead of testing against "not null".

 This affects:
 * `wpmu_validate_user_signup()`
 * `wpmu_validate_blog_signup()`

 Props jrf.
 See #50767.
 }}}

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


More information about the wp-trac mailing list