[wp-trac] [WordPress Trac] #21748: get_pagenum_link() returns URL with pagination base for a singular paged content

WordPress Trac noreply at wordpress.org
Wed Oct 31 21:54:44 UTC 2012


#21748: get_pagenum_link() returns URL with pagination base for a singular paged
content
--------------------------+------------------------------
 Reporter:  szepe.viktor  |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Permalinks    |     Version:
 Severity:  major         |  Resolution:
 Keywords:  has-patch     |
--------------------------+------------------------------

Comment (by duck_):

 `wp_link_pages()` is the appropriate function to use for getting paged
 links for paginated posts as `get_pagenum_link()` is designed for archive
 pagination.

 Supporting singular pagination in `get_pagenum_link()` as well might be a
 good idea though. However, looking at the patch (untested) it looks like
 it doesn't support pages. So, should it be checking `is_singular()` and
 not page_on_front, see `_wp_link_page()`?

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/21748#comment:6>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list