[wp-meta] [Making WordPress.org] #6443: /page/2/ being adding to reply links incorrectly

Making WordPress.org noreply at wordpress.org
Thu Aug 18 01:35:12 UTC 2022


#6443: /page/2/ being adding to reply links incorrectly
----------------------------+---------------------
 Reporter:  sterndata       |       Owner:  (none)
     Type:  defect (bug)    |      Status:  new
 Priority:  high            |   Milestone:
Component:  Support Forums  |  Resolution:
 Keywords:                  |
----------------------------+---------------------

Comment (by dd32):

 Took a quick look into this.. Per-forum-page is set to 15, and the page a
 reply is on is generated through basically `bbp_get_reply_position() /
 bbp_get_replies_per_page()`.

 The problem is that `bbp_get_reply_position()` is returning the incorrect
 result for the thread, and other threads.

 On https://wordpress.org/support/topic/smileys-not-working-on-
 mobile/?view=all that should be returning 1 through 15, but instead, the
 position is being returned as... (with > 15 being page=2)
 {{{
 1, 3, 4, 6, 7, 9, 10, 12, 13, 15, 17, 18, 18, 22, 23 (archived)
 }}}

 It's not immediately obvious to me as to why there are missing reply
 position numbers in there..

-- 
Ticket URL: <https://meta.trac.wordpress.org/ticket/6443#comment:5>
Making WordPress.org <https://meta.trac.wordpress.org/>
Making WordPress.org


More information about the wp-meta mailing list