Pass comment ID to get_page_of_comment filter.

Introduced in [34808].

Props zhildzik.
Fixes #38155.

git-svn-id: https://develop.svn.wordpress.org/trunk@38650 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Boone Gorges 2016-09-25 17:32:37 +00:00
parent b12ff9487d
commit cc807d5a91

View File

@ -945,6 +945,7 @@ function get_page_of_comment( $comment_ID, $args = array() ) {
* Filters the calculated page on which a comment appears.
*
* @since 4.4.0
* @since 4.7.0 Introduced the `$comment_ID` parameter.
*
* @param int $page Comment page.
* @param array $args {
@ -965,8 +966,9 @@ function get_page_of_comment( $comment_ID, $args = array() ) {
* @type int $per_page Number of comments per page.
* @type int $max_depth Maximum comment threading depth allowed.
* }
* @param int $comment_ID ID of the comment.
*/
return apply_filters( 'get_page_of_comment', (int) $page, $args, $original_args );
return apply_filters( 'get_page_of_comment', (int) $page, $args, $original_args, $comment_ID );
}
/**