diff --git a/wp-includes/general-template.php b/wp-includes/general-template.php index 28fb3394d2..ddc34db34f 100644 --- a/wp-includes/general-template.php +++ b/wp-includes/general-template.php @@ -906,17 +906,12 @@ function get_bloginfo( $show = '', $filter = 'raw' ) { break; } - $url = true; - - if ( ! str_contains( $show, 'url' ) - && ! str_contains( $show, 'directory' ) - && ! str_contains( $show, 'home' ) - ) { - $url = false; - } - if ( 'display' === $filter ) { - if ( $url ) { + if ( + str_contains( $show, 'url' ) + || str_contains( $show, 'directory' ) + || str_contains( $show, 'home' ) + ) { /** * Filters the URL returned by get_bloginfo(). * diff --git a/wp-includes/version.php b/wp-includes/version.php index 107b4d32ae..d5bfe52113 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.5-alpha-57169'; +$wp_version = '6.5-alpha-57170'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.