WordPress.org

Make WordPress Core

Ticket #24825: wp_no_robots.patch

File wp_no_robots.patch, 459 bytes (added by tivnet, 9 months ago)
  • general-template.php

     
    17521752 * @since 3.3.0 
    17531753 */ 
    17541754function wp_no_robots() { 
     1755        static $already_printed = false; 
     1756        if (!$already_printed) { 
    17551757        echo "<meta name='robots' content='noindex,nofollow' />\n"; 
     1758                $already_printed = true; 
    17561759} 
     1760} 
    17571761 
    17581762/** 
    17591763 * Determine if TinyMCE is available.