From b0ebbf6bebb9a24a310416fc62d85b567171144a Mon Sep 17 00:00:00 2001 From: audrasjb Date: Tue, 27 Sep 2022 10:37:13 +0000 Subject: [PATCH] Upgrade/Install: Keep search engine checkbox value when reloading the Install screen. This changeset ensures the value of the search engine checkbox is not reset to its default value when a faulty form is sent in the Install screen. Props ramon-fincken, audrasjb, whaze, rafiahmedd, khokansardar, costdev, ankit-k-gupta. Fixes #55900. Built from https://develop.svn.wordpress.org/trunk@54326 git-svn-id: http://core.svn.wordpress.org/trunk@53885 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/install.php | 2 +- wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-admin/install.php b/wp-admin/install.php index 1c59835bfb..3edc3230cd 100644 --- a/wp-admin/install.php +++ b/wp-admin/install.php @@ -96,7 +96,7 @@ function display_setup_form( $error = null ) { // Ensure that sites appear in search engines by default. $blog_public = 1; if ( isset( $_POST['weblog_title'] ) ) { - $blog_public = isset( $_POST['blog_public'] ); + $blog_public = isset( $_POST['blog_public'] ) ? (int) $_POST['blog_public'] : $blog_public; } $weblog_title = isset( $_POST['weblog_title'] ) ? trim( wp_unslash( $_POST['weblog_title'] ) ) : ''; diff --git a/wp-includes/version.php b/wp-includes/version.php index af302a23eb..9e13fca03b 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.1-beta1-54325'; +$wp_version = '6.1-beta1-54326'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.