WordPress.org

Make WordPress Core

Ticket #33156: 33156.patch

File 33156.patch, 544 bytes (added by dmchale, 2 years ago)

Add "Allow" for /wp-admin/admin-ajax.php to the end of the default generated robots.txt file

  • wp-includes/functions.php

    IDEA additional info:
    Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
    <+>UTF-8
     
    12441244                $site_url = parse_url( site_url() ); 
    12451245                $path = ( !empty( $site_url['path'] ) ) ? $site_url['path'] : ''; 
    12461246                $output .= "Disallow: $path/wp-admin/\n"; 
     1247        $output .= "Allow: $path/wp-admin/admin-ajax.php\n"; 
    12471248        } 
    12481249 
    12491250        /**