Make WordPress Core

Changeset 54326


Ignore:
Timestamp:
09/27/2022 10:35:08 AM (19 months ago)
Author:
audrasjb
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/install.php

    r54063 r54326  
    9797    $blog_public = 1;
    9898    if ( isset( $_POST['weblog_title'] ) ) {
    99         $blog_public = isset( $_POST['blog_public'] );
     99        $blog_public = isset( $_POST['blog_public'] ) ? (int) $_POST['blog_public'] : $blog_public;
    100100    }
    101101
Note: See TracChangeset for help on using the changeset viewer.