WordPress.org

Make WordPress Core

Ticket #41114: 41114.diff

File 41114.diff, 590 bytes (added by donmhico, 2 years ago)
  • src/wp-admin/install.php

    diff --git src/wp-admin/install.php src/wp-admin/install.php
    index 60ae4d33dc..37f3637a68 100644
    function display_setup_form( $error = null ) { 
    9797        // Ensure that Blogs appear in search engines by default.
    9898        $blog_public = 1;
    9999        if ( isset( $_POST['weblog_title'] ) ) {
    100                 $blog_public = isset( $_POST['blog_public'] );
     100                $blog_public = isset( $_POST['blog_public'] ) ? intval( $_POST['blog_public'] ) : 1;
    101101        }
    102102
    103103        $weblog_title = isset( $_POST['weblog_title'] ) ? trim( wp_unslash( $_POST['weblog_title'] ) ) : '';