mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 12:20:22 +00:00
Docs: Apply inline @see tags to hooks referenced in DocBlocks in a variety of wp-includes/* files.
Applying these specially-crafted `@see` tags allows the Code Reference parser to recognize and link these elements as actions and filters. Fixes #36921. git-svn-id: https://develop.svn.wordpress.org/trunk@37544 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -415,15 +415,17 @@ function post_class( $class = '', $post_id = null ) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Retrieve the classes for the post div as an array.
|
||||
* Retrieves the classes for the post div as an array.
|
||||
*
|
||||
* 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 'post_tag' taxonomy is a special
|
||||
* eg '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 classes are
|
||||
* passed through the filter, 'post_class' with the list of classes, followed by
|
||||
* passed through the filter, {@see 'post_class'}, with the list of classes, followed by
|
||||
* $class parameter value, with the post ID as the last parameter.
|
||||
*
|
||||
* @since 2.7.0
|
||||
|
||||
Reference in New Issue
Block a user