WordPress.org

Make WordPress Core

Ticket #28604: functions-robots.diff

File functions-robots.diff, 429 bytes (added by joostdevalk, 7 years ago)

Patch

  • wp-includes/functions.php

     
    11641164                $site_url = parse_url( site_url() );
    11651165                $path = ( !empty( $site_url['path'] ) ) ? $site_url['path'] : '';
    11661166                $output .= "Disallow: $path/wp-admin/\n";
    1167                 $output .= "Disallow: $path/wp-includes/\n";
    11681167        }
    11691168
    11701169        /**