Changeset 61649 for trunk/src/wp-includes/post-template.php
- Timestamp:
- 02/15/2026 11:17:55 PM (4 months ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/post-template.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/post-template.php
r61445 r61649 408 408 * @since 4.5.0 Introduced the `$post` parameter. 409 409 * 410 * @param int|WP_Post $post Optional. Post ID or WP_Post object. Default is global $post.410 * @param int|WP_Post|null $post Optional. Post ID or WP_Post object. Default is global $post. 411 411 * @return string Post excerpt. 412 412 */ … … 459 459 * @since 2.7.0 460 460 * 461 * @param string|string[] $css_class Optional. One or more classes to add to the class list.462 * Default empty.463 * @param int|WP_Post $post Optional. Post ID or post object. Defaults to the global `$post`.461 * @param string|string[] $css_class Optional. One or more classes to add to the class list. 462 * Default empty. 463 * @param int|WP_Post|null $post Optional. Post ID or post object. Defaults to the global `$post`. 464 464 */ 465 465 function post_class( $css_class = '', $post = null ) { … … 487 487 * @since 4.2.0 Custom taxonomy class names were added. 488 488 * 489 * @param string|string[] $css_class Optional. Space-separated string or array of class names490 * to add to the class list. Default empty.491 * @param int|WP_Post $post Optional. Post ID or post object.489 * @param string|string[] $css_class Optional. Space-separated string or array of class names 490 * to add to the class list. Default empty. 491 * @param int|WP_Post|null $post Optional. Post ID or post object. 492 492 * @return string[] Array of class names. 493 493 */ … … 1884 1884 * @since 4.7.0 Now works with any post type, not just pages. 1885 1885 * 1886 * @param int|WP_Post $post Optional. Post ID or WP_Post object. Default is global $post.1886 * @param int|WP_Post|null $post Optional. Post ID or WP_Post object. Default is global $post. 1887 1887 * @return string|false Page template filename. Returns an empty string when the default page template 1888 1888 * is in use. Returns false if the post does not exist.
Note: See TracChangeset
for help on using the changeset viewer.