WordPress.org

Making WordPress.org

Changeset 11094


Ignore:
Timestamp:
07/06/2021 01:02:11 AM (5 months ago)
Author:
dd32
Message:

Robots: Alow access to wp-admin/load-*.php as some WordPress.org themes load resources from there.

This should be upstreamed to Core.
See #5806.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/mu-plugins/pub/wporg-robots.php

    r10989 r11094  
    3535    }
    3636
     37    // Allow access to the load-scripts.php & load-styles.php admin files.
     38    $robots = str_replace(
     39        "Allow: /wp-admin/admin-ajax.php\n",
     40        "Allow: /wp-admin/admin-ajax.php\n" .
     41            "Allow: /wp-admin/load-scripts.php\n" .
     42            "Allow: /wp-admin/load-styles.php\n",
     43        $robots
     44    );
     45
    3746    return $robots;
    3847}
Note: See TracChangeset for help on using the changeset viewer.