Make WordPress Core


Ignore:
Timestamp:
06/20/2020 12:00:07 PM (4 years ago)
Author:
SergeyBiryukov
Message:

Docs: Capitalize "ID", when referring to a post ID, term ID, etc. in a more consistent way.

See #49572.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-site-query.php

    r47808 r48104  
    246246     *
    247247     * @param string|array $query Array or URL query string of parameters.
    248      * @return array|int List of WP_Site objects, a list of site ids when 'fields' is set to 'ids',
     248     * @return array|int List of WP_Site objects, a list of site IDs when 'fields' is set to 'ids',
    249249     *                   or the number of sites when 'count' is passed as a query var.
    250250     */
     
    262262     * @global wpdb $wpdb WordPress database abstraction object.
    263263     *
    264      * @return array|int List of WP_Site objects, a list of site ids when 'fields' is set to 'ids',
     264     * @return array|int List of WP_Site objects, a list of site IDs when 'fields' is set to 'ids',
    265265     *                   or the number of sites when 'count' is passed as a query var.
    266266     */
     
    298298         * The expected return type from this filter depends on the value passed in the request query_vars:
    299299         * When `$this->query_vars['count']` is set, the filter should return the site count as an int.
    300          * When `'ids' === $this->query_vars['fields']`, the filter should return an array of site ids.
     300         * When `'ids' === $this->query_vars['fields']`, the filter should return an array of site IDs.
    301301         * Otherwise the filter should return an array of WP_Site objects.
    302302         *
Note: See TracChangeset for help on using the changeset viewer.