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-categories.php

    r47122 r47287  
    5050                $title = apply_filters( 'widget_title', $title, $instance, $this->id_base );
    5151
    52                 $c = ! empty( $instance['count'] ) ? '1' : '0';
    53                 $h = ! empty( $instance['hierarchical'] ) ? '1' : '0';
    54                 $d = ! empty( $instance['dropdown'] ) ? '1' : '0';
     52                $count        = ! empty( $instance['count'] ) ? '1' : '0';
     53                $hierarchical = ! empty( $instance['hierarchical'] ) ? '1' : '0';
     54                $dropdown    = ! empty( $instance['dropdown'] ) ? '1' : '0';
    5555
    5656                echo $args['before_widget'];
     
    6262                $cat_args = array(
    6363                        'orderby'      => 'name',
    64                         'show_count'   => $c,
    65                         'hierarchical' => $h,
     64                        'show_count'   => $count,
     65                        'hierarchical' => $hierarchical,
    6666                );
    6767
    68                 if ( $d ) {
     68                if ( $dropdown ) {
    6969                        echo sprintf( '<form action="%s" method="get">', esc_url( home_url() ) );
    7070                        $dropdown_id    = ( $first_dropdown ) ? 'cat' : "{$this->id_base}-dropdown-{$this->number}";
Note: See TracChangeset for help on using the changeset viewer.