Opened 13 years ago
Closed 10 years ago
#16973 closed enhancement (maybelater)
Introduce get_multipage_link()
Reported by: | scribu | Owned by: | obenland |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | |
Component: | Posts, Post Types | Keywords: | has-patch needs-refresh close |
Focuses: | template | Cc: |
Description
There currently is no function for retrieving the URL to a multipage part (a page with <!--nextpage-->
).
The code is burried in a private helper function.
Let's bring it to light.
Attachments (4)
Change History (12)
#2
@
13 years ago
16973.3.diff does some cleanup in wp_link_pages() and also removes the @private
comment, since it's clearly used in the wild.
#4
@
13 years ago
- Cc obenland@… added
Patch 16973.4.patch makes links and output filterable, as suggested in #13578.
#5
@
12 years ago
This would be useful, as would further helper functions for themes/plugins dealing with multipage posts (see #16468 for some ideas from nacin).
#7
@
10 years ago
- Component changed from General to Posts, Post Types
- Keywords close added
- Owner set to obenland
- Status changed from new to reviewing
No activity in two years, and the patch is out of date. @obenland: Care to revisit here?
#8
@
10 years ago
- Focuses template added
- Milestone Future Release deleted
- Resolution set to maybelater
- Status changed from reviewing to closed
I don't feel particularly strong about it either way.
Paged posts is a very little used feature, and given the fact that this ticket hasn't seen any meaningful action in four years, it can probably be closed.
If paged posts get a UI and it gets more popular, we can still revisit it.
It might be better to put $output on one line instead of concatenating another line to it on three occasions. Maybe even sprintf'ing it would be an even more elegant solution.