Changeset 34625
- Timestamp:
- 09/27/2015 02:21:43 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/category-template.php
r34624 r34625 176 176 } 177 177 178 $categories = get_the_category( $post_id ); 178 /** 179 * Filter the categories before building the category list. 180 * 181 * @since 4.4.0 182 * 183 * @param array $categories An array of the post's categories. 184 * @param int|bool $post_id ID of the post we're retrieving categories for. When `false`, we assume the 185 * current post in the loop. 186 */ 187 $categories = apply_filters( 'the_category_list', get_the_category( $post_id ), $post_id ); 188 179 189 if ( empty( $categories ) ) { 180 190 /** This filter is documented in wp-includes/category-template.php */
Note: See TracChangeset
for help on using the changeset viewer.