Pass the post ID to the get_the_categories filter.

Props SergeyBiryukov.
See #9227.
Built from https://develop.svn.wordpress.org/trunk@34624


git-svn-id: http://core.svn.wordpress.org/trunk@34588 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Boone Gorges 2015-09-27 02:17:25 +00:00
parent 1573a8a1b7
commit 1ae565455b
2 changed files with 4 additions and 2 deletions

View File

@ -91,10 +91,12 @@ function get_the_category( $id = false ) {
* Filter the array of categories to return for a post.
*
* @since 3.1.0
* @since 4.4.0 Added `$id` parameter.
*
* @param array $categories An array of categories to return for the post.
* @param int $id ID of the post.
*/
return apply_filters( 'get_the_categories', $categories );
return apply_filters( 'get_the_categories', $categories, $id );
}
/**

View File

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