Make WordPress Core


Ignore:
Timestamp:
02/14/2020 12:05:43 AM (7 years ago)
Author:
SergeyBiryukov
Message:

Coding Standards: Rename $d parameter in various date/time functions to $format for clarity.

See #49222.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/widgets/class-wp-widget-archives.php

    r46604 r47287  
    4646                $title = apply_filters( 'widget_title', $title, $instance, $this->id_base );
    4747
    48                 $c = ! empty( $instance['count'] ) ? '1' : '0';
    49                 $d = ! empty( $instance['dropdown'] ) ? '1' : '0';
     48                $count    = ! empty( $instance['count'] ) ? '1' : '0';
     49                $dropdown = ! empty( $instance['dropdown'] ) ? '1' : '0';
    5050
    5151                echo $args['before_widget'];
    … …  
    5555                }
    5656
    57                 if ( $d ) {
     57                if ( $dropdown ) {
    5858                        $dropdown_id = "{$this->id_base}-dropdown-{$this->number}";
    5959                        ?>
    … …  
    7777                                        'type'            => 'monthly',
    7878                                        'format'          => 'option',
    79                                         'show_post_count' => $c,
     79                                        'show_post_count' => $count,
    8080                                ),
    8181                                $instance
    … …  
    141141                                        array(
    142142                                                'type'            => 'monthly',
    143                                                 'show_post_count' => $c,
     143                                                'show_post_count' => $count,
    144144                                        ),
    145145                                        $instance
Note: See TracChangeset for help on using the changeset viewer.