Make WordPress Core


Ignore:
Timestamp:
07/25/2019 12:47:53 AM (6 years ago)
Author:
SergeyBiryukov
Message:

Coding Standards: Rename $r variable used with wp_parse_args() to $parsed_args for clarity.

Props freewebmentor.
Fixes #45059.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/comment.php

    r45611 r45667  
    165165    }
    166166
    167     $defaults = array(
     167    $defaults    = array(
    168168        'status'  => 1,
    169169        'post_id' => $post_id,
    170170        'order'   => 'ASC',
    171171    );
    172     $r        = wp_parse_args( $args, $defaults );
     172    $parsed_args = wp_parse_args( $args, $defaults );
    173173
    174174    $query = new WP_Comment_Query;
    175     return $query->query( $r );
     175    return $query->query( $parsed_args );
    176176}
    177177
Note: See TracChangeset for help on using the changeset viewer.