mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-02 01:20:03 +00:00
Docs: Capitalize "ID", when referring to a post ID, term ID, etc. in a more consistent way.
See #49572. git-svn-id: https://develop.svn.wordpress.org/trunk@48104 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -169,7 +169,7 @@ class WP_Network_Query {
|
||||
* @since 4.6.0
|
||||
*
|
||||
* @param string|array $query Array or URL query string of parameters.
|
||||
* @return array|int List of WP_Network objects, a list of network ids when 'fields' is set to 'ids',
|
||||
* @return array|int List of WP_Network objects, a list of network IDs when 'fields' is set to 'ids',
|
||||
* or the number of networks when 'count' is passed as a query var.
|
||||
*/
|
||||
public function query( $query ) {
|
||||
@@ -182,7 +182,7 @@ class WP_Network_Query {
|
||||
*
|
||||
* @since 4.6.0
|
||||
*
|
||||
* @return array|int List of WP_Network objects, a list of network ids when 'fields' is set to 'ids',
|
||||
* @return array|int List of WP_Network objects, a list of network IDs when 'fields' is set to 'ids',
|
||||
* or the number of networks when 'count' is passed as a query var.
|
||||
*/
|
||||
public function get_networks() {
|
||||
@@ -206,7 +206,7 @@ class WP_Network_Query {
|
||||
*
|
||||
* The expected return type from this filter depends on the value passed in the request query_vars.
|
||||
* When `$this->query_vars['count']` is set, the filter should return the network count as an int.
|
||||
* When `'ids' === $this->query_vars['fields']`, the filter should return an array of network ids.
|
||||
* When `'ids' === $this->query_vars['fields']`, the filter should return an array of network IDs.
|
||||
* Otherwise the filter should return an array of WP_Network objects.
|
||||
*
|
||||
* @since 5.2.0
|
||||
|
||||
Reference in New Issue
Block a user