[wp-trac] [WordPress Trac] #50767: Coding Standards fixes for WP 5.6
WordPress Trac
noreply at wordpress.org
Sun Oct 18 15:26:31 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: | Focuses: coding-standards
----------------------------+-------------------------------
Changes (by jrf):
* Attachment "50767-remove-assumption-in-code.patch" added.
QA: remove assumption in code Use a more stable condition. 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".
--
Ticket URL: <https://core.trac.wordpress.org/ticket/50767>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list