[wp-trac] [WordPress Trac] #8973: Function get_page_of_comment() returns incorrect page numbers

WordPress Trac wp-trac at lists.automattic.com
Wed Jan 19 10:26:08 UTC 2011


#8973: Function get_page_of_comment() returns incorrect page numbers
------------------------------------+-----------------------------
 Reporter:  GregMulhauser           |       Owner:
     Type:  defect (bug)            |      Status:  reopened
 Priority:  normal                  |   Milestone:  Future Release
Component:  Comments                |     Version:  2.7
 Severity:  normal                  |  Resolution:
 Keywords:  has-patch dev-feedback  |
------------------------------------+-----------------------------
Changes (by solarissmoke):

 * keywords:  needs-patch => has-patch dev-feedback


Comment:

 This patch uses logic similar to `comments_template()`. There are some
 assumptions here regarding what this information is going to be used for -
 i.e., to get the right page number for *the current user* (who can he
 his/her own awaiting-moderation comments). If, for example, a plugin tries
 to use it for something else, then weirdness can be expected.

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


More information about the wp-trac mailing list