[wp-trac] [WordPress Trac] #13939: get_page_of_comment returns wrong page number when changing threading level
WordPress Trac
noreply at wordpress.org
Sat Oct 3 19:38:51 UTC 2015
#13939: get_page_of_comment returns wrong page number when changing threading level
--------------------------+---------------------------
Reporter: laceous | Owner: boonebgorges
Type: defect (bug) | Status: assigned
Priority: normal | Milestone: 4.4
Component: Comments | Version: 3.0
Severity: normal | Resolution:
Keywords: needs-patch | Focuses:
--------------------------+---------------------------
Comment (by boonebgorges):
In [changeset:"34808"]:
{{{
#!CommitTicketReference repository="" revision="34808"
Introduce 'page_of_comment' filter.
This filter allows developers to modify the output of
`get_page_of_comment()`.
As a side effect of this new filter, comment page numbers will always be
returned as integers. Previously, they would sometimes be returned as
floats -
eg `float(2.0)` instead of `int(2)`.
Props laceous.
See #13939.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/13939#comment:10>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list