[wp-trac] [WordPress Trac] #58139: Strict type comparison
WordPress Trac
noreply at wordpress.org
Tue Apr 18 08:34:24 UTC 2023
#58139: Strict type comparison
--------------------------------+------------------------------
Reporter: mujuonly | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Networks and Sites | Version:
Severity: normal | Resolution:
Keywords: has-patch | Focuses: multisite
--------------------------------+------------------------------
Comment (by SergeyBiryukov):
Thanks for the PR! I have confirmed that these values are indeed strings
as returned from `get_sites()` via
`WP_MS_Sites_List_Table::prepare_items()`.
They match the `WP_Site` class properties of the same name, which are also
defined as numeric strings, `'1'` or `'0'`, for compatibility reasons.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/58139#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list