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-comment-query.php

    r47887 r48104  
    389389         * The expected return type from this filter depends on the value passed in the request query_vars.
    390390         * When `$this->query_vars['count']` is set, the filter should return the comment count as an int.
    391          * When `'ids' === $this->query_vars['fields']`, the filter should return an array of comment ids.
     391         * When `'ids' === $this->query_vars['fields']`, the filter should return an array of comment IDs.
    392392         * Otherwise the filter should return an array of WP_Comment objects.
    393393         *
     
    551551            $unapproved_emails = array();
    552552            foreach ( $include_unapproved as $unapproved_identifier ) {
    553                 // Numeric values are assumed to be user ids.
     553                // Numeric values are assumed to be user IDs.
    554554                if ( is_numeric( $unapproved_identifier ) ) {
    555555                    $approved_clauses[] = $wpdb->prepare( "( user_id = %d AND comment_approved = '0' )", $unapproved_identifier );
Note: See TracChangeset for help on using the changeset viewer.