WordPress.org

Make WordPress Core

Opened 10 years ago

Closed 8 years ago

#1477 closed defect (bug) (wontfix)

link_pages() needs a seperator when using next_or_number=next

Reported by: skippy Owned by:
Milestone: Priority: low
Severity: minor Version: 1.5.1.2
Component: Template Keywords:
Focuses: Cc:

Description (last modified by skippy)

When using wp_link_pages('next_or_number=next'), the next post and previous post links run together, with no seperator.

The patch attached to this ticket introduces a $sep variable, which defaults to a single space.

function link_pages($before='<br />', $after='<br />', $next_or_number='number', $nextpagelink='next page', $previouspagelink='previous page', $pagelink='%', $more_file='', $sep = ' ') {

Attachments (2)

template-functions-post.2.patch (760 bytes) - added by skippy 10 years ago.
template-functions-post.3.patch (761 bytes) - added by skippy 10 years ago.
I suck, and should be destroyed.

Download all attachments as: .zip

Change History (4)

@skippy10 years ago

I suck, and should be destroyed.

comment:1 @skippy10 years ago

  • Description modified (diff)

To preserve full backward compatability with existing themes, the $sep variable needs to go at the end of the parameter list in link_pages().

comment:2 @foolswisdom8 years ago

  • Resolution set to wontfix
  • Status changed from new to closed

Ticket #2752 relates.

This has not been updated in a year marking WONTFIX for now.

Note: See TracTickets for help on using tickets.