From 0d7c5569f5f09ab55c69080acaf44252a63b413d Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Fri, 9 Oct 2015 05:16:23 +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. Built from https://develop.svn.wordpress.org/trunk@34985 git-svn-id: http://core.svn.wordpress.org/trunk@34950 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/functions.php | 1 + wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/wp-includes/functions.php b/wp-includes/functions.php index 738b17838d..1381038418 100644 --- a/wp-includes/functions.php +++ b/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"; } /** diff --git a/wp-includes/version.php b/wp-includes/version.php index e283abc61c..aacc1ac315 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.4-alpha-34984'; +$wp_version = '4.4-alpha-34985'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.