Opened 9 years ago
Closed 9 years ago
#35015 closed enhancement (fixed)
Pass $id to filters in the_guid and get_the_guid()
Reported by: | danielbachhuber | Owned by: | SergeyBiryukov |
---|---|---|---|
Milestone: | 4.5 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Posts, Post Types | Keywords: | has-patch |
Focuses: | Cc: |
Description
Because $id
can be passed to the_guid()
, filter callbacks can't be 100% precise by assuming $id
should be the global post.
Attachments (2)
Change History (5)
Note: See
TracTickets for help on using
tickets.
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 for consistency. See 35015.2.diff.