Make WordPress Core

Changeset 50797


Ignore:
Timestamp:
04/28/2021 08:53:10 PM (4 years ago)
Author:
davidbaumwald
Message:

Coding Standards: Update $out in WP_Widget_Pages with a more meaningful name.

Rename an $out variable to $output for consistency with other widget classes..

Props mukesh27.
Fixes #53059.

File:
1 edited

Legend:

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

    r48410 r50797  
    6262        }
    6363
    64         $out = wp_list_pages(
     64        $output = wp_list_pages(
    6565            /**
    6666             * Filters the arguments for the Pages widget.
     
    8686        );
    8787
    88         if ( ! empty( $out ) ) {
     88        if ( ! empty( $output ) ) {
    8989            echo $args['before_widget'];
    9090            if ( $title ) {
     
    106106
    107107            <ul>
    108                 <?php echo $out; ?>
     108                <?php echo $output; ?>
    109109            </ul>
    110110
Note: See TracChangeset for help on using the changeset viewer.