[wp-trac] [WordPress Trac] #48001: get_sites() generates a PHP warning
WordPress Trac
noreply at wordpress.org
Sun Sep 8 18:48:39 UTC 2019
#48001: get_sites() generates a PHP warning
--------------------------------+-----------------------------
Reporter: henry.wright | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Networks and Sites | Version: 5.2.3
Severity: normal | Keywords:
Focuses: multisite |
--------------------------------+-----------------------------
The following usage of `get_sites()` generates a PHP warning.
{{{
$sites = get_sites(
[
'search' => 'foo',
'search_columns' => 'domain'
]
);
}}}
> Warning: array_intersect(): Argument #1 is not an array in wp-includes
/class-wp-site-query.php on line 563
--
Ticket URL: <https://core.trac.wordpress.org/ticket/48001>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list