[wp-hackers] Addition to template-loader.php

Mike Schinkel mikeschinkel at newclarity.net
Sat Apr 4 12:32:28 GMT 2009


First, bless Owen Winkler for this writeup: http://asymptomatic.net/2005/12/03/586/how-to-patch-wordpress

Second, done: http://core.trac.wordpress.org/ticket/9455
Hope it followed the correct procedure. Let me know what to do different if otherwise.

-Mike Schinkel
Custom Wordpress Plugins
http://mikeschinkel.com/custom-wordpress-plugins

----- Original Message -----
From: "Mike Schinkel" <mikeschinkel at newclarity.net>
To: wp-hackers at lists.automattic.com
Sent: Saturday, April 4, 2009 7:45:48 AM GMT -05:00 US/Canada Eastern
Subject: Re: [wp-hackers] Addition to template-loader.php

Thanks, will do. I guess it is *finally* time for me to learn how. :)

-Mike Schinkel
Custom Wordpress Plugins
http://mikeschinkel.com/custom-wordpress-plugins

----- Original Message -----
From: "scribu" <scribu at gmail.com>
To: wp-hackers at lists.automattic.com
Sent: Saturday, April 4, 2009 7:41:03 AM GMT -05:00 US/Canada Eastern
Subject: Re: [wp-hackers] Addition to template-loader.php

On Fri, Apr 3, 2009 at 8:01 PM, Mike Schinkel
<mikeschinkel at newclarity.net>wrote:

> Given my learning more about template_redirect here's what I'd ask for
> instead which should be backward compatible. Add the following code in place
> of "if ( is_robots() )":
>
>        if (apply_filters('template_redirect',null)===false) {
>                return;
>        } else if ( is_robots() ) {
>

+1. You should make a trac ticket with this patch.

-- 
http://scribu.net
_______________________________________________
wp-hackers mailing list
wp-hackers at lists.automattic.com
http://lists.automattic.com/mailman/listinfo/wp-hackers


More information about the wp-hackers mailing list