[wp-trac] [WordPress Trac] #58041: Fix non-strict checking issue on /wp-admin/includes/upgrade.php file
WordPress Trac
noreply at wordpress.org
Thu Sep 5 14:55:59 UTC 2024
#58041: Fix non-strict checking issue on /wp-admin/includes/upgrade.php file
---------------------------+-------------------------------
Reporter: faisalahammad | Owner: SergeyBiryukov
Type: defect (bug) | Status: reviewing
Priority: normal | Milestone: 6.7
Component: General | Version: 6.3
Severity: normal | Resolution:
Keywords: has-patch | Focuses: coding-standards
---------------------------+-------------------------------
Changes (by SergeyBiryukov):
* owner: (none) => SergeyBiryukov
* status: new => reviewing
* milestone: Awaiting Review => 6.7
Comment:
Hi there, welcome back to WordPress Trac! Thanks for the ticket.
Please note that `$link->link_category` is a string here, so the strict
comparison would not work as is, it would require casting to an integer:
`0 === (int) $link->link_category`.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/58041#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list