Coding Standards: Rename $r variable used with wp_parse_args() to $parsed_args for clarity.
Props freewebmentor. Fixes #45059. Built from https://develop.svn.wordpress.org/trunk@45667 git-svn-id: http://core.svn.wordpress.org/trunk@45478 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -164,15 +164,15 @@ function get_approved_comments( $post_id, $args = array() ) {
|
||||
return array();
|
||||
}
|
||||
|
||||
$defaults = array(
|
||||
$defaults = array(
|
||||
'status' => 1,
|
||||
'post_id' => $post_id,
|
||||
'order' => 'ASC',
|
||||
);
|
||||
$r = wp_parse_args( $args, $defaults );
|
||||
$parsed_args = wp_parse_args( $args, $defaults );
|
||||
|
||||
$query = new WP_Comment_Query;
|
||||
return $query->query( $r );
|
||||
return $query->query( $parsed_args );
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user