[wp-hackers] New proposed function: in_loop() to determine "in the loop" status

Mark Jaquith mark.wordpress at txfx.net
Sun Jul 17 21:01:31 GMT 2005

David House wrote:

>On 7/16/05, Mark Jaquith <mark.wordpress at txfx.net> wrote:
>>3) unset the global $post object.  Normally this is left filled to the
>>end of the page, and that's bloody useless.  The loop is over, this
>>transient object needs to leave.
>Can we deprecate this before we remove it completely? It'll break a
>lot of people's code.
As there is actually code in the default 1.5.x templates that needs 
this, it's probably best that we leave it, for now. (i.e. leave the 
$post variable set)

Mark Jaquith
MCincubus @ #wordpress

More information about the wp-hackers mailing list