From 724b83ab0ee5b952956bc820f86a901cfc6b0a96 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Fri, 9 Oct 2015 05:15:01 +0000 Subject: [PATCH] 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 --- src/wp-includes/functions.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/wp-includes/functions.php b/src/wp-includes/functions.php index 738b17838d..1381038418 100644 --- a/src/wp-includes/functions.php +++ b/src/wp-includes/functions.php @@ -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"; } /**