Invalid PHPDOC for get_sites
|Reported by:||MaximeCulea||Owned by:||DrewAPicture|
|Component:||Networks and Sites||Keywords:||has-patch|
It seems that the PHPDOC for get_sites is invalid.
While it is written that the $network_id arg allows to Limit results to those affiliated with a given network ID. Default current network ID..
In fact if we look closely to WP_Site_Query and his $network_idarg, it is specified that Limit results to those affiliated with a given network ID. If 0, include all networks. Default 0..
So when using get_sites with no network_id given, it will not return sites from the current network but from all networks.
Change History (5)
- Keywords has-patch added
- Owner set to DrewAPicture
- Status changed from new to reviewing