Opened 7 years ago
Closed 7 years ago
#48001 closed defect (bug) (invalid)
get_sites() generates a PHP warning
| Reported by: | henry.wright | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Networks and Sites | Version: | 5.2.3 |
| Severity: | normal | Keywords: | close |
| Cc: | Focuses: | multisite |
Description
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
Change History (2)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
I just noticed
search_columns_must_ be an array.Please close