WordPress.org

Make WordPress Core

Ticket #33156: 33156.diff

File 33156.diff, 436 bytes (added by markjaquith, 2 years ago)
  • src/wp-includes/functions.php

    diff --git src/wp-includes/functions.php src/wp-includes/functions.php
    index 30fac47..9410cfa 100644
    function do_robots() { 
    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        /**