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:
Sergey Biryukov
2019-07-25 00:48:58 +00:00
parent 7112ee7132
commit 18bd01985b
22 changed files with 624 additions and 619 deletions

View File

@@ -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 );
}
/**