Make WordPress Core


Ignore:
Timestamp:
05/22/2006 10:06:06 PM (20 years ago)
Author:
ryan
Message:

Handle robots.txt requests and obey blog_plubic setting.

File:
1 edited

Legend:

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

    r3758 r3791  
    16561656}
    16571657
     1658function do_robots() {
     1659    if ( '1' != get_option('blog_public') ) {
     1660        echo "User-agent: *\n";
     1661        echo "Disallow: /\n";
     1662    } else {
     1663        echo "User-agent: *\n";
     1664        echo "Disallow:\n";
     1665    }
     1666}
     1667
    16581668function is_blog_installed() {
    16591669    global $wpdb;
Note: See TracChangeset for help on using the changeset viewer.