Make WordPress Core

Changeset 34624


Ignore:
Timestamp:
09/27/2015 02:16:23 AM (9 years ago)
Author:
boonebgorges
Message:

Pass the post ID to the get_the_categories filter.

Props SergeyBiryukov.
See #9227.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/category-template.php

    r34420 r34624  
    9292     *
    9393     * @since 3.1.0
     94     * @since 4.4.0 Added `$id` parameter.
    9495     *
    9596     * @param array $categories An array of categories to return for the post.
     97     * @param int   $id         ID of the post.
    9698     */
    97     return apply_filters( 'get_the_categories', $categories );
     99    return apply_filters( 'get_the_categories', $categories, $id );
    98100}
    99101
Note: See TracChangeset for help on using the changeset viewer.