[wp-trac] [WordPress Trac] #7231: wp_link_pages: option next_and_number

WordPress Trac noreply at wordpress.org
Thu Sep 24 01:49:17 UTC 2015


#7231: wp_link_pages: option  next_and_number
-------------------------------------+-----------------------------
 Reporter:  jan831                   |       Owner:  sorich87
     Type:  enhancement              |      Status:  accepted
 Priority:  normal                   |   Milestone:  Future Release
Component:  Posts, Post Types        |     Version:
 Severity:  normal                   |  Resolution:
 Keywords:  has-patch needs-refresh  |     Focuses:  template
-------------------------------------+-----------------------------

Comment (by seanchayes):

 Ok. I've reworked this patch and uploaded 7231.2.patch

 There appears to be no default styling in Twenty Fourteen, TwentyFifteen
 or TwentySixteen accommodate for the "Next" and "Previous" links created
 by this function before this patch. As such in the course of creating this
 patch I manually added styling to those themes for testing. Samples of
 what I saw for these themes have also been uploaded.

 My patch also adds classes, "next" and "previous" to the relevant links to
 allow for them to be styled. See below.

 {{{#!css
 .page-links .previous,
 .page-links .next {
         width: auto;
 }
 }}}

 I don't know how best to address this within the patch. So, my guess is to
 open an additional ticket for that styling to be considered for inclusion.

 And now, the parameter "next_or_number" now is mis-named as the existing
 two options now included a third. I suspect we would keep the parameter
 name for the time being and/or introduce something like "pagination_style"
 going forward. I have left the parameter name as is for the time being.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/7231#comment:10>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list