Changeset 60271
- Timestamp:
- 06/01/2025 07:20:42 AM (9 months ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/category-template.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/category-template.php
r56695 r60271 72 72 * @since 0.71 73 73 * 74 * @param int $post_id Optional. The post ID. Defaults to current post ID.74 * @param int|false $post_id Optional. The post ID. Defaults to current post ID. 75 75 * @return WP_Term[] Array of WP_Term objects, one for each category assigned to the post. 76 76 */ … … 132 132 * @global WP_Rewrite $wp_rewrite WordPress rewrite component. 133 133 * 134 * @param string $separator Optional. Separator between the categories. By default, the links are placed135 * in an unordered list. An empty string will result in the default behavior.136 * @param string $parents Optional. How to display the parents. Accepts 'multiple', 'single', or empty.137 * Default empty string.138 * @param int $post_id Optional. ID of the post to retrieve categories for. Defaults to the current post.134 * @param string $separator Optional. Separator between the categories. By default, the links are placed 135 * in an unordered list. An empty string will result in the default behavior. 136 * @param string $parents Optional. How to display the parents. Accepts 'multiple', 'single', or empty. 137 * Default empty string. 138 * @param int|false $post_id Optional. ID of the post to retrieve categories for. Defaults to the current post. 139 139 * @return string Category list for a post. 140 140 */ … … 252 252 * @param int|string|int[]|string[] $category Category ID, name, slug, or array of such 253 253 * to check against. 254 * @param int| WP_Post$post Optional. Post to check. Defaults to the current post.254 * @param int|null|WP_Post $post Optional. Post to check. Defaults to the current post. 255 255 * @return bool True if the current post is in any of the given categories. 256 256 */ … … 268 268 * @since 0.71 269 269 * 270 * @param string $separator Optional. Separator between the categories. By default, the links are placed271 * in an unordered list. An empty string will result in the default behavior.272 * @param string $parents Optional. How to display the parents. Accepts 'multiple', 'single', or empty.273 * Default empty string.274 * @param int $post_id Optional. ID of the post to retrieve categories for. Defaults to the current post.270 * @param string $separator Optional. Separator between the categories. By default, the links are placed 271 * in an unordered list. An empty string will result in the default behavior. 272 * @param string $parents Optional. How to display the parents. Accepts 'multiple', 'single', or empty. 273 * Default empty string. 274 * @param int|false $post_id Optional. ID of the post to retrieve categories for. Defaults to the current post. 275 275 */ 276 276 function the_category( $separator = '', $parents = '', $post_id = false ) {
Note: See TracChangeset
for help on using the changeset viewer.