Make WordPress Core

Ticket #63039: 63039.patch

File 63039.patch, 495 bytes (added by shailu25, 4 months ago)

Patch Added.

  • src/wp-includes/functions.php

    diff --git a/src/wp-includes/functions.php b/src/wp-includes/functions.php
    index 9a6938ed64..555508403b 100644
    a b function do_robots() { 
    17151715        do_action( 'do_robotstxt' );
    17161716
    17171717        $output = "User-agent: *\n";
    1718         $public = get_option( 'blog_public' );
     1718        $public = (bool) get_option( 'blog_public' );
    17191719
    17201720        $site_url = parse_url( site_url() );
    17211721        $path     = ( ! empty( $site_url['path'] ) ) ? $site_url['path'] : '';