From 527e4c7468d4d85c52d931e2702e4dd967715691 Mon Sep 17 00:00:00 2001 From: Felix Arntz Date: Thu, 7 Dec 2023 14:36:39 -0800 Subject: [PATCH] Update. --- src/wp-includes/general-template.php | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/src/wp-includes/general-template.php b/src/wp-includes/general-template.php index 28fb3394d22da..ddc34db34ff3a 100644 --- a/src/wp-includes/general-template.php +++ b/src/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(). *