[wp-trac] Re: [WordPress Trac] #5746: Add id of the post to the 'the_post' filter

WordPress Trac wp-trac at lists.automattic.com
Fri Mar 14 09:20:00 GMT 2008


#5746: Add id of the post to the 'the_post' filter
-----------------------------------+----------------------------------------
 Reporter:  henrikmelin            |        Owner:  anonymous
     Type:  enhancement            |       Status:  new      
 Priority:  normal                 |    Milestone:  2.5      
Component:  General                |      Version:  2.3.2    
 Severity:  normal                 |   Resolution:           
 Keywords:  2nd-opinion has-patch  |  
-----------------------------------+----------------------------------------
Comment (by Denis-de-Bernardy):

 Imho, the same could be said for the_content, the_excerpt, and other post-
 related filters.

 Then again, get_the_ID() can return the ID while in the loop, and this is
 good enough as far as I can tell.

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


More information about the wp-trac mailing list