mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-12 04:40:26 +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:
@@ -245,7 +245,7 @@ class WP_Site_Query {
|
||||
* @since 4.6.0
|
||||
*
|
||||
* @param string|array $query Array or URL query string of parameters.
|
||||
* @return array|int List of WP_Site objects, a list of site ids when 'fields' is set to 'ids',
|
||||
* @return array|int List of WP_Site objects, a list of site IDs when 'fields' is set to 'ids',
|
||||
* or the number of sites when 'count' is passed as a query var.
|
||||
*/
|
||||
public function query( $query ) {
|
||||
@@ -261,7 +261,7 @@ class WP_Site_Query {
|
||||
*
|
||||
* @global wpdb $wpdb WordPress database abstraction object.
|
||||
*
|
||||
* @return array|int List of WP_Site objects, a list of site ids when 'fields' is set to 'ids',
|
||||
* @return array|int List of WP_Site objects, a list of site IDs when 'fields' is set to 'ids',
|
||||
* or the number of sites when 'count' is passed as a query var.
|
||||
*/
|
||||
public function get_sites() {
|
||||
@@ -297,7 +297,7 @@ class WP_Site_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 site count as an int.
|
||||
* When `'ids' === $this->query_vars['fields']`, the filter should return an array of site ids.
|
||||
* When `'ids' === $this->query_vars['fields']`, the filter should return an array of site IDs.
|
||||
* Otherwise the filter should return an array of WP_Site objects.
|
||||
*
|
||||
* @since 5.2.0
|
||||
|
||||
Reference in New Issue
Block a user