diff --git a/wp-includes/post-template.php b/wp-includes/post-template.php index 4e1bb17502..252c7c7ac2 100644 --- a/wp-includes/post-template.php +++ b/wp-includes/post-template.php @@ -465,16 +465,18 @@ function post_class( $css_class = '', $post = null ) { /** * Retrieves an array of the class names for the post container element. * - * The class names are many. If the post is a sticky, then the 'sticky' - * class name. The class 'hentry' is always added to each post. If the post has a - * post thumbnail, 'has-post-thumbnail' is added as a class. For each taxonomy that - * the post belongs to, a class will be added of the format '{$taxonomy}-{$slug}' - - * eg 'category-foo' or 'my_custom_taxonomy-bar'. + * The class names are many: * - * The 'post_tag' taxonomy is a special - * case; the class has the 'tag-' prefix instead of 'post_tag-'. All class names are - * passed through the filter, {@see 'post_class'}, with the list of class names, followed by - * $css_class parameter value, with the post ID as the last parameter. + * - If the post has a post thumbnail, `has-post-thumbnail` is added as a class. + * - If the post is sticky, then the `sticky` class name is added. + * - The class `hentry` is always added to each post. + * - For each taxonomy that the post belongs to, a class will be added of the format + * `{$taxonomy}-{$slug}`, e.g. `category-foo` or `my_custom_taxonomy-bar`. + * The `post_tag` taxonomy is a special case; the class has the `tag-` prefix + * instead of `post_tag-`. + * + * All class names are passed through the filter, {@see 'post_class'}, followed by + * `$css_class` parameter value, with the post ID as the last parameter. * * @since 2.7.0 * @since 4.2.0 Custom taxonomy class names were added. diff --git a/wp-includes/version.php b/wp-includes/version.php index 8bd48d0f89..ff82350492 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.2-alpha-54956'; +$wp_version = '6.2-alpha-54957'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.