[wp-trac] [WordPress Trac] #48866: TwentyTwenty: Paginated comments don't work

WordPress Trac noreply at wordpress.org
Tue Dec 3 17:31:06 UTC 2019


#48866: TwentyTwenty: Paginated comments don't work
---------------------------+------------------------------
 Reporter:  andraganescu   |       Owner:  (none)
     Type:  defect (bug)   |      Status:  new
 Priority:  normal         |   Milestone:  Awaiting Review
Component:  Bundled Theme  |     Version:
 Severity:  normal         |  Resolution:
 Keywords:  needs-patch    |     Focuses:
---------------------------+------------------------------

Comment (by acosmin):

 It's a JS "issue" regarding `smoothScroll`. You can test by commenting out
 this line:
 https://github.com/WordPress/twentytwenty/blob/master/assets/js/index.js#L745

 A solution would be to add a `|| -1 !== element.href.search( '#comments'
 )` on this line:
 https://github.com/WordPress/twentytwenty/blob/master/assets/js/index.js#L341

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


More information about the wp-trac mailing list