diff options
Diffstat (limited to 'wp-inst/wp-includes/template-loader.php')
| -rw-r--r-- | wp-inst/wp-includes/template-loader.php | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/wp-inst/wp-includes/template-loader.php b/wp-inst/wp-includes/template-loader.php index 3f799e1..8b44d89 100644 --- a/wp-inst/wp-includes/template-loader.php +++ b/wp-inst/wp-includes/template-loader.php @@ -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() ) { |
