mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-02 09:30:09 +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:
@@ -388,7 +388,7 @@ class WP_Comment_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 comment count as an int.
|
||||
* When `'ids' === $this->query_vars['fields']`, the filter should return an array of comment ids.
|
||||
* When `'ids' === $this->query_vars['fields']`, the filter should return an array of comment IDs.
|
||||
* Otherwise the filter should return an array of WP_Comment objects.
|
||||
*
|
||||
* @since 5.3.0
|
||||
@@ -550,7 +550,7 @@ class WP_Comment_Query {
|
||||
$unapproved_ids = array();
|
||||
$unapproved_emails = array();
|
||||
foreach ( $include_unapproved as $unapproved_identifier ) {
|
||||
// Numeric values are assumed to be user ids.
|
||||
// Numeric values are assumed to be user IDs.
|
||||
if ( is_numeric( $unapproved_identifier ) ) {
|
||||
$approved_clauses[] = $wpdb->prepare( "( user_id = %d AND comment_approved = '0' )", $unapproved_identifier );
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user