diff --git a/src/wp-includes/category-template.php b/src/wp-includes/category-template.php index f57e3d291e..019854d127 100644 --- a/src/wp-includes/category-template.php +++ b/src/wp-includes/category-template.php @@ -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 ); } /**