#2752 closed defect (bug) (wontfix)
link_pages space missing
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Priority: | low | |
Severity: | trivial | Version: | 2.0.2 |
Component: | Template | Keywords: | |
Focuses: | Cc: |
Description
Hi,
In reference to ticket 1477, I have created a new patch based on skippy's existing patch.
I can confirm that this works on my 2.1 Alpha and 2.0.2 installations.
To customise the separator, you need to specify one additional parameter (at the end of the function, to avoid breaking things):
link_pages($before, $after, $next_or_number, $nextpagelink, $previouspagelink, $pagelink, $more_file, $sep);
The new $sep variable defaults to one space character to separate the 'previous' and 'next' text when using <!--nextpage-->.
My apologies if I've missed anything out - this is my first Wordpress patch, and first time using Trac.
Regards,
Nick.
Attachments (2)
Change History (8)
#3
@
19 years ago
Hi,
I've just attached a newer patch to address the following:
When using the new $sep variable, it would show the $sep value on the last page, after the 'previouspagelink', and on the first page before 'nextpagelink'.
This patch now hides the $sep value if on the first or last page.
Regards,
Nick.
#4
@
19 years ago
Hi,
It seems this patch stops the Pages from showing in the Sidebar - any ideas why?
Regards,
Nick.
Patch to add $sep variable for customising separator.