Make WordPress Core

Changeset 34985


Ignore:
Timestamp:
10/09/2015 05:15:01 AM (10 years ago)
Author:
SergeyBiryukov
Message:

In do_robots(), allow crawling for admin-ajax.php, since it's often used on front-end.

Props dmchale, joostdevalk.
Fixes #33156.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/functions.php

    r34927 r34985  
    12501250        $path = ( !empty( $site_url['path'] ) ) ? $site_url['path'] : '';
    12511251        $output .= "Disallow: $path/wp-admin/\n";
     1252        $output .= "Allow: $path/wp-admin/admin-ajax.php\n";
    12521253    }
    12531254
Note: See TracChangeset for help on using the changeset viewer.