Skip to content

Commit

Permalink
Coding Standards: Update $out in WP_Widget_Pages with a more mean…
Browse files Browse the repository at this point in the history
…ingful name.

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

Props mukesh27.
Fixes #53059.

git-svn-id: https://develop.svn.wordpress.org/trunk@50797 602fd350-edb4-49c9-b593-d223f7449a82
  • Loading branch information
dream-encode committed Apr 28, 2021
1 parent bcd6503 commit 13bb1a0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/wp-includes/widgets/class-wp-widget-pages.php
Expand Up @@ -61,7 +61,7 @@ public function widget( $args, $instance ) {
$sortby = 'menu_order, post_title';
}

$out = wp_list_pages(
$output = wp_list_pages(
/**
* Filters the arguments for the Pages widget.
*
Expand All @@ -85,7 +85,7 @@ public function widget( $args, $instance ) {
)
);

if ( ! empty( $out ) ) {
if ( ! empty( $output ) ) {
echo $args['before_widget'];
if ( $title ) {
echo $args['before_title'] . $title . $args['after_title'];
Expand All @@ -105,7 +105,7 @@ public function widget( $args, $instance ) {
?>

<ul>
<?php echo $out; ?>
<?php echo $output; ?>
</ul>

<?php
Expand Down

0 comments on commit 13bb1a0

Please sign in to comment.