Make WordPress Core


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

Handle robots.txt requests and obey blog_plubic setting.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/template-loader.php

    r3638 r3791  
    22if ( defined('WP_USE_THEMES') && constant('WP_USE_THEMES') ) {
    33    do_action('template_redirect');
    4     if ( is_feed() ) {
     4    if ( is_robots() ) {
     5        do_action('do_robots');
     6        exit;
     7    } else if ( is_feed() ) {
    58        do_feed();
    69        exit;
     
    5659} else {
    5760    // Process feeds and trackbacks even if not using themes.
    58     if ( is_feed() ) {
     61    if ( is_robots() ) {
     62        do_action('do_robots');
     63        exit;
     64    } else if ( is_feed() ) {
    5965        do_feed();
    6066        exit;
Note: See TracChangeset for help on using the changeset viewer.