Opened 11 years ago
Closed 10 years ago
#22950 closed defect (bug) (fixed)
get_boundary_post Does not return single post object
Reported by: | pathawks | Owned by: | DrewAPicture |
---|---|---|---|
Milestone: | 3.9 | Priority: | normal |
Severity: | normal | Version: | 2.8 |
Component: | Query | Keywords: | has-patch |
Focuses: | docs, template | Cc: |
Description
get_boundary_post
Seems not to return a single post
object, the way get_adjacent_post
does.
It seems that get_boundary_post
should call array_shift
or get_post
on the results, in a similar way to get_adjacent_post
.
It's just odd that the behavior is different.
Attachments (1)
Change History (7)
#3
@
10 years ago
- Component changed from General to Query
- Focuses docs template added
We should update the inline documentation here, its incorrect as it stands. See attachment:22950.diff.
Version 0, edited 10 years ago
by
(next)
Note: See
TracTickets for help on using
tickets.
Although it might be strange, changing the return value here would break any code built with
get_boundary_post()
. The cost of backwards compatibility is dealing with these odd nuances.