Ticket #9455: template-loader.php.diff

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

DIFF/Patch file for template-loader.php

Line 
1Index: template-loader.php
2===================================================================
3--- template-loader.php (revision 10867)
4+++ template-loader.php (working copy)
5@@ -4,8 +4,9 @@
6  * @package WordPress
7  */
8 if ( defined('WP_USE_THEMES') && constant('WP_USE_THEMES') ) {
9-       do_action('template_redirect');
10-       if ( is_robots() ) {
11+       if (apply_filters('template_redirect',null)===false) {
12+               return;
13+       } else if ( is_robots() ) {
14                do_action('do_robots');
15                return;
16        } else if ( is_feed() ) {