Docs: Increase the specificity of various docblock parameter types and return types.
See #48303 Built from https://develop.svn.wordpress.org/trunk@46823 git-svn-id: http://core.svn.wordpress.org/trunk@46623 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -41,8 +41,8 @@ function get_post_format( $post = null ) {
|
||||
*
|
||||
* @since 3.1.0
|
||||
*
|
||||
* @param string|array $format Optional. The format or formats to check.
|
||||
* @param object|int|null $post Optional. The post to check. If not supplied, defaults to the current post if used in the loop.
|
||||
* @param string|array $format Optional. The format or formats to check.
|
||||
* @param WP_Post|int|null $post Optional. The post to check. If not supplied, defaults to the current post if used in the loop.
|
||||
* @return bool True if the post has any of the given formats (or any format, if no format specified), false otherwise.
|
||||
*/
|
||||
function has_post_format( $format = array(), $post = null ) {
|
||||
|
||||
Reference in New Issue
Block a user