Opened 11 years ago
Closed 11 years ago
#35015 closed enhancement (fixed)
Pass $id to filters in the_guid and get_the_guid()
| Reported by: | danielbachhuber | Owned by: | SergeyBiryukov |
|---|---|---|---|
| Priority: | normal | Milestone: | 4.5 |
| Component: | Posts, Post Types | Version: | |
| Severity: | normal | Keywords: | has-patch |
| Cc: | Focuses: |
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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
In
get_the_title(), if$idis 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.