[wp-trac] [WordPress Trac] #37937: Support boolean strings for the 'public', 'archived', 'mature', 'spam' and 'deleted' attributes in WP_Site_Query
WordPress Trac
noreply at wordpress.org
Tue Jun 27 20:24:43 UTC 2017
#37937: Support boolean strings for the 'public', 'archived', 'mature', 'spam' and
'deleted' attributes in WP_Site_Query
-------------------------------------+------------------------------
Reporter: birgire | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Networks and Sites | Version: 4.6
Severity: normal | Resolution:
Keywords: has-patch needs-refresh | Focuses: multisite
-------------------------------------+------------------------------
Changes (by birgire):
* keywords: has-patch needs-refresh needs-unit-tests => has-patch needs-
refresh
Comment:
I updated the patch with a {{{! is_null()}}} checks because the defaults
are {{{null}}}.
Added tests as well, for the {{{'public'}}} input argument with the values
{{{true, 'true', false}}} and {{{'false'}}} based on the existing
{{{siteQueyry.php}}} tests.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/37937#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list