WordPress.org

Make WordPress Core

Ticket #9455: template-loader.php.diff

File template-loader.php.diff, 509 bytes (added by mikeschinkel, 9 years ago)

DIFF/Patch file for template-loader.php

  • template-loader.php

     
    44 * @package WordPress
    55 */
    66if ( defined('WP_USE_THEMES') && constant('WP_USE_THEMES') ) {
    7         do_action('template_redirect');
    8         if ( is_robots() ) {
     7        if (apply_filters('template_redirect',null)===false) {
     8                return;
     9        } else if ( is_robots() ) {
    910                do_action('do_robots');
    1011                return;
    1112        } else if ( is_feed() ) {