WordPress.org

Make WordPress Core

Ticket #24278: wp_no_robots.patch

File wp_no_robots.patch, 585 bytes (added by sterlo, 5 years ago)

wp_no_robots() fix

  • wp-includes/general-template.php

    commit 0e339f5d9eedfa69a4e04ecf6326066a2f790836
    Author: Sterling Hamilton <sterling.hamilton@gmail.com>
    Date:   Tue May 7 09:54:26 2013 -0700
    
        Fixing spacing...
    
    diff --git a/wp-includes/general-template.php b/wp-includes/general-template.php
    index 546d69f..f26efda 100644
    a b function noindex() { 
    17601760 * @since 3.3.0
    17611761 */
    17621762function wp_no_robots() {
    1763         echo "<meta name='robots' content='noindex,nofollow' />\n";
     1763        echo "<meta name=\"robots\" content=\"noindex,nofollow\" />\n";
    17641764}
    17651765
    17661766/**