Make WordPress Core

Opened 13 years ago

Closed 9 years ago

#16973 closed enhancement (maybelater)

Introduce get_multipage_link()

Reported by: scribu's profile scribu Owned by: obenland's profile 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)

16973.diff (3.0 KB) - added by scribu 13 years ago.
16973.2.diff (4.4 KB) - added by scribu 13 years ago.
clearer logic
16973.3.diff (4.5 KB) - added by scribu 13 years ago.
more cleanup
16973.4.patch (4.8 KB) - added by kobenland 12 years ago.

Download all attachments as: .zip

Change History (12)

@scribu
13 years ago

#1 @ldebrouwer
13 years ago

  • Cc info@… added

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.

@scribu
13 years ago

clearer logic

#2 @scribu
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.

@scribu
13 years ago

more cleanup

#3 @scribu
12 years ago

  • Milestone changed from Awaiting Review to Future Release

@kobenland
12 years ago

#4 @kobenland
12 years ago

  • Cc obenland@… added

Patch 16973.4.patch makes links and output filterable, as suggested in #13578.

#5 @mdgl
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).

#6 @scribu
12 years ago

  • Keywords needs-refresh added

#7 @DrewAPicture
9 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 @obenland
9 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.

Note: See TracTickets for help on using tickets.