diff --git a/wp-includes/theme.php b/wp-includes/theme.php index 89fccddd37..f063bc97a0 100644 --- a/wp-includes/theme.php +++ b/wp-includes/theme.php @@ -1437,14 +1437,16 @@ function is_random_header_image( $type = 'any' ) { if ( 'any' === $type ) { if ( 'random-default-image' === $header_image_mod || 'random-uploaded-image' === $header_image_mod - || ( '' !== get_random_header_image() && empty( $header_image_mod ) ) + || ( empty( $header_image_mod ) && '' !== get_random_header_image() ) ) { return true; } } else { if ( "random-$type-image" === $header_image_mod ) { return true; - } elseif ( 'default' === $type && empty( $header_image_mod ) && '' !== get_random_header_image() ) { + } elseif ( 'default' === $type + && empty( $header_image_mod ) && '' !== get_random_header_image() + ) { return true; } } diff --git a/wp-includes/version.php b/wp-includes/version.php index c82620f436..6c9840fc71 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.5-alpha-57138'; +$wp_version = '6.5-alpha-57139'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.