From 4b17383d2c12886fecca49b95ef140a8b059357e Mon Sep 17 00:00:00 2001 From: joedolson Date: Fri, 22 Sep 2023 18:14:16 +0000 Subject: [PATCH] Code Modernization: Rename reserved keyword used as variable. Change the `$echo` parameter added to `wp_update_php_annnotation()` to `$display` to avoid using reserved PHP keywords as parameters. Follow up to [56570]. Props kebbet, mukesh27. See #57791. Built from https://develop.svn.wordpress.org/trunk@56662 git-svn-id: http://core.svn.wordpress.org/trunk@56174 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/functions.php | 12 ++++++------ wp-includes/version.php | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/wp-includes/functions.php b/wp-includes/functions.php index d2c02abedd..ab49f8f405 100644 --- a/wp-includes/functions.php +++ b/wp-includes/functions.php @@ -8318,19 +8318,19 @@ function wp_get_default_update_php_url() { * * @since 5.1.0 * @since 5.2.0 Added the `$before` and `$after` parameters. - * @since 6.4.0 Added the `$echo` parameter. + * @since 6.4.0 Added the `$display` parameter. * - * @param string $before Markup to output before the annotation. Default `

`. - * @param string $after Markup to output after the annotation. Default `

`. - * @param bool $echo Markup should echo if true. Default `true`. + * @param string $before Markup to output before the annotation. Default `

`. + * @param string $after Markup to output after the annotation. Default `

`. + * @param bool $display Whether to echo or return the markup. Default `true` for echo. * * @return string|void */ -function wp_update_php_annotation( $before = '

', $after = '

', $echo = true ) { +function wp_update_php_annotation( $before = '

', $after = '

', $display = true ) { $annotation = wp_get_update_php_annotation(); if ( $annotation ) { - if ( $echo ) { + if ( $display ) { echo $before . $annotation . $after; } else { return $before . $annotation . $after; diff --git a/wp-includes/version.php b/wp-includes/version.php index 09e50e4972..064477ed7f 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.4-alpha-56661'; +$wp_version = '6.4-alpha-56662'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.