WordPress.org

Make WordPress Core

Changeset 5117


Ignore:
Timestamp:
03/27/07 16:44:36 (7 years ago)
Author:
ryan
Message:

Serve robots.txt as text/plain. Props JeremyVisser. fixes #4037

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/functions.php

    r5111 r5117  
    983983 
    984984function do_robots() { 
     985    header('Content-type: text/plain; charset=utf-8'); 
     986 
    985987    do_action('do_robotstxt'); 
     988 
    986989    if ( '0' == get_option('blog_public') ) { 
    987990        echo "User-agent: *\n"; 
Note: See TracChangeset for help on using the changeset viewer.