In do_robots()
, allow crawling for admin-ajax.php
, since it's often used on front-end.
Props dmchale, joostdevalk. Fixes #33156. git-svn-id: https://develop.svn.wordpress.org/trunk@34985 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
d58bcae1ad
commit
724b83ab0e
@ -1249,6 +1249,7 @@ function do_robots() {
|
||||
$site_url = parse_url( site_url() );
|
||||
$path = ( !empty( $site_url['path'] ) ) ? $site_url['path'] : '';
|
||||
$output .= "Disallow: $path/wp-admin/\n";
|
||||
$output .= "Allow: $path/wp-admin/admin-ajax.php\n";
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user