[wp-trac] Re: [WordPress Trac] #4177: new conditional tag: has_excerpt

WordPress Trac wp-trac at lists.automattic.com
Sun Apr 22 08:48:24 GMT 2007


#4177: new conditional tag: has_excerpt
------------------------------+---------------------------------------------
 Reporter:  FekketCantenel    |        Owner:  rob1n 
     Type:  enhancement       |       Status:  closed
 Priority:  normal            |    Milestone:  2.3   
Component:  Template          |      Version:        
 Severity:  trivial           |   Resolution:  fixed 
 Keywords:  has-patch commit  |  
------------------------------+---------------------------------------------
Comment (by markjaquith):

 FekketCantenel,

 For increased usefulness.  Your code would only work with the current
 post.  This function can take any post ID as a parameter.  The return line
 is just simpler... skips the if/else logic block and just returns the
 opposite of the empty() bool result.

-- 
Ticket URL: <http://trac.wordpress.org/ticket/4177#comment:10>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list