Make WordPress Core

Opened 20 years ago

Closed 18 years ago

#1477 closed defect (bug) (wontfix)

link_pages() needs a seperator when using next_or_number=next

Reported by: skippy's profile 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 20 years ago.
template-functions-post.3.patch (761 bytes) - added by skippy 20 years ago.
I suck, and should be destroyed.

Download all attachments as: .zip

Change History (4)

@skippy
20 years ago

I suck, and should be destroyed.

#1 @skippy
20 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().

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