[wp-trac] [WordPress Trac] #35015: Pass $id to filters in the_guid and get_the_guid()

WordPress Trac noreply at wordpress.org
Fri Dec 11 16:21:27 UTC 2015


#35015: Pass $id to filters in the_guid and get_the_guid()
-------------------------------+------------------
 Reporter:  danielbachhuber    |       Owner:
     Type:  enhancement        |      Status:  new
 Priority:  normal             |   Milestone:  4.5
Component:  Posts, Post Types  |     Version:
 Severity:  normal             |  Resolution:
 Keywords:  has-patch          |     Focuses:
-------------------------------+------------------

Comment (by SergeyBiryukov):

 In `get_the_title()`, if `$id` is 0 or a post object, we resolve it and
 pass the actual post ID to the filter.

 We should probably do the same here. See [attachment:35015.2.diff].

--
Ticket URL: <https://core.trac.wordpress.org/ticket/35015#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list