[wp-trac] [WordPress Trac] #43015: function get_previous_comments_link not working in front page

WordPress Trac noreply at wordpress.org
Mon Jun 24 16:29:01 UTC 2019


#43015: function get_previous_comments_link not working in front page
--------------------------+------------------------------
 Reporter:  devlife       |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Comments      |     Version:  4.9.1
 Severity:  normal        |  Resolution:
 Keywords:  2nd-opinion   |     Focuses:
--------------------------+------------------------------
Changes (by justinahinon):

 * keywords:   => 2nd-opinion


Comment:

 Hello @devlife

 Thanks for your ticket. I've looked into WordPress files and the function
 {{{ get_previous_comments_link }}} seems to be used only in Twenty Fifteen
 theme in {{{ /inc/template-tags L26 }}}

 I tested with the theme with a static page as home page, and the link to
 previous and next comments work correctly (see attached screenshots).

 However, while looking in the source, I noticed that all bundled themes
 before Twenty Fifteen use {{{ previous_comments_link }}} and {{{
 next_comments_link }}} and themes after Twenty Fifteen use {{{
 get_the_comments_navigation }}} (introduced in 4.4 with Twenty Sixteen).

 So, I suggest to close this ticket, and maybe introduce a new one to
 replace {{{ get_previous_comments_link }} by {{{ previous_comments_link }}
 in Twenty Fifteen.

 @davidakennedy @laurelfulford , do you have any thoughts about this? I'm
 wondering if this is not an issue related to bundled themes component.

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


More information about the wp-trac mailing list