Make WordPress Core

Ticket #55900: 55900.diff

File 55900.diff, 599 bytes (added by khokansardar, 4 years ago)

Here is the proper PR of the task

  • src/wp-admin/install.php

    diff --git a/src/wp-admin/install.php b/src/wp-admin/install.php
    index 1b9e907907..47037ee638 100644
    a b function display_setup_form( $error = null ) { 
    9696        // Ensure that sites appear in search engines by default.
    9797        $blog_public = 1;
    9898        if ( isset( $_POST['weblog_title'] ) ) {
    99                 $blog_public = isset( $_POST['blog_public'] );
     99                $blog_public = isset( $_POST['blog_public'] ) ? $_POST['blog_public'] : $blog_public;
    100100        }
    101101
    102102        $weblog_title = isset( $_POST['weblog_title'] ) ? trim( wp_unslash( $_POST['weblog_title'] ) ) : '';