Docs: Improve DocBlock formatting for `get_post_class()`.
Follow-up to [9273], [27429], [31271], [37544]. See #56792. Built from https://develop.svn.wordpress.org/trunk@54957 git-svn-id: http://core.svn.wordpress.org/trunk@54509 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
92c86d749b
commit
3d29300173
|
@ -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.
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue