[wp-trac] [WordPress Trac] #15566: if + else = always
WordPress Trac
wp-trac at lists.automattic.com
Wed Nov 24 18:06:47 UTC 2010
#15566: if + else = always
-------------------------+--------------------------------------------------
Reporter: hakre | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Comments | Version:
Severity: normal | Keywords:
-------------------------+--------------------------------------------------
{{{
if ( 'page' == $post->post_type )
clean_page_cache( $post_id );
else
clean_post_cache( $post_id );
}}}
should be written as
{{{
clean_page_cache( $post_id );
}}}
--
Ticket URL: <http://core.trac.wordpress.org/ticket/15566>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list