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. Built from https://develop.svn.wordpress.org/trunk@50797 git-svn-id: http://core.svn.wordpress.org/trunk@50406 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
4a73e53df4
commit
589e89231a
|
@ -13,7 +13,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '5.8-alpha-50796';
|
||||
$wp_version = '5.8-alpha-50797';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
|
@ -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…
Reference in New Issue