Handle robots.txt requests and obey blog_plubic setting.

git-svn-id: https://develop.svn.wordpress.org/trunk@3791 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2006-05-22 22:06:06 +00:00
parent 3bf0f5d94f
commit a868cae733
6 changed files with 37 additions and 4 deletions

View File

@@ -1,7 +1,10 @@
<?php
if ( defined('WP_USE_THEMES') && constant('WP_USE_THEMES') ) {
do_action('template_redirect');
if ( is_feed() ) {
if ( is_robots() ) {
do_action('do_robots');
exit;
} else if ( is_feed() ) {
do_feed();
exit;
} else if ( is_trackback() ) {
@@ -55,7 +58,10 @@ if ( defined('WP_USE_THEMES') && constant('WP_USE_THEMES') ) {
}
} else {
// Process feeds and trackbacks even if not using themes.
if ( is_feed() ) {
if ( is_robots() ) {
do_action('do_robots');
exit;
} else if ( is_feed() ) {
do_feed();
exit;
} else if ( is_trackback() ) {