mirror of
git://develop.git.wordpress.org/
synced 2025-04-07 21:53:21 +02:00
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. git-svn-id: https://develop.svn.wordpress.org/trunk@50797 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
bcd65037b6
commit
13bb1a0959
@ -61,7 +61,7 @@ class WP_Widget_Pages extends WP_Widget {
|
||||
$sortby = 'menu_order, post_title';
|
||||
}
|
||||
|
||||
$out = wp_list_pages(
|
||||
$output = wp_list_pages(
|
||||
/**
|
||||
* Filters the arguments for the Pages widget.
|
||||
*
|
||||
@ -85,7 +85,7 @@ class WP_Widget_Pages extends WP_Widget {
|
||||
)
|
||||
);
|
||||
|
||||
if ( ! empty( $out ) ) {
|
||||
if ( ! empty( $output ) ) {
|
||||
echo $args['before_widget'];
|
||||
if ( $title ) {
|
||||
echo $args['before_title'] . $title . $args['after_title'];
|
||||
@ -105,7 +105,7 @@ class WP_Widget_Pages extends WP_Widget {
|
||||
?>
|
||||
|
||||
<ul>
|
||||
<?php echo $out; ?>
|
||||
<?php echo $output; ?>
|
||||
</ul>
|
||||
|
||||
<?php
|
||||
|
Loading…
x
Reference in New Issue
Block a user