Pass comment ID to `get_page_of_comment` filter.

Introduced in [34808].

Props zhildzik.
Fixes #38155.
Built from https://develop.svn.wordpress.org/trunk@38650


git-svn-id: http://core.svn.wordpress.org/trunk@38593 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Boone Gorges 2016-09-25 17:33:32 +00:00
parent 76681c40e3
commit 0d1d1c4d06
2 changed files with 4 additions and 2 deletions

View File

@ -945,6 +945,7 @@ function get_page_of_comment( $comment_ID, $args = array() ) {
* Filters the calculated page on which a comment appears. * Filters the calculated page on which a comment appears.
* *
* @since 4.4.0 * @since 4.4.0
* @since 4.7.0 Introduced the `$comment_ID` parameter.
* *
* @param int $page Comment page. * @param int $page Comment page.
* @param array $args { * @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 $per_page Number of comments per page.
* @type int $max_depth Maximum comment threading depth allowed. * @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 );
} }
/** /**

View File

@ -4,7 +4,7 @@
* *
* @global string $wp_version * @global string $wp_version
*/ */
$wp_version = '4.7-alpha-38649'; $wp_version = '4.7-alpha-38650';
/** /**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.