[wp-trac] [WordPress Trac] #19012: get_ID and the_ID should accept $id as a parameter

WordPress Trac wp-trac at lists.automattic.com
Thu Oct 20 15:11:50 UTC 2011


#19012: get_ID and the_ID should accept $id as a parameter
-------------------------------------------------+-------------------------
 Reporter:  peterchester                         |       Owner:  ryan
     Type:  enhancement                          |      Status:  reviewing
 Priority:  normal                               |   Milestone:  Future
Component:  Post Types                           |  Release
 Severity:  normal                               |     Version:  3.3
 Keywords:  needs-testing needs-codex has-patch  |  Resolution:
-------------------------------------------------+-------------------------

Comment (by nacin):

 In [19029]:
 {{{
 #!CommitTicketReference repository="" revision="19029"
 Pass $post_id arg directly to get_post_thumbnail_id() from
 has_post_thumbnail(). The null/get_the_ID() check is already performed at
 that level of the stack. see #19012.
 }}}

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


More information about the wp-trac mailing list