WordPress.org

Make WordPress Core

Ticket #36390: 36390.patch

File 36390.patch, 710 bytes (added by m_uysl, 4 years ago)
  • src/wp-includes/rest-api/class-wp-rest-server.php

    IDEA additional info:
    Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
    <+>UTF-8
     
    236236                $this->send_header( 'Access-Control-Expose-Headers', 'X-WP-Total, X-WP-TotalPages' );
    237237                $this->send_header( 'Access-Control-Allow-Headers', 'Authorization' );
    238238
     239                // prevent bot crawling against duplicate content
     240                $this->send_header( 'X-Robots-Tag', 'noindex' );
     241
    239242                /**
    240243                 * Send nocache headers on authenticated requests.
    241244                 *