[wp-hackers] introductions and putting the wrong foot forward..
wp at andrewnacin.com
Mon Aug 23 08:58:32 UTC 2010
On Sun, Aug 22, 2010 at 10:06 PM, Mark E <mark at simplercomputing.net> wrote:
> On 08/22/2010 08:00 PM, Vid Luther wrote:
> quite a few of the issues from your first google query wouldn't even
>> have happened, if we used exit() right after header().
> I agree. There's no reason I can think of to redirect a page without
> exiting the script immediately. And, I've run into several problem in the
> past where that lack of exit caused headaches.
WordPress calls exit() or die() after any wp_redirect() or
wp_safe_redirect() calls. You should to. They're different processes and
sometimes you do want/need to do something before killing the script. We
also rely on this during the plugin activation routine -- it's how we
More information about the wp-hackers