mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-09 00:51:35 +01:00
Twenty Fourteen: remove post_class
filter for has-post-thumbnail
now that it's added in core for every theme. See #18804.
Built from https://develop.svn.wordpress.org/trunk@27623 git-svn-id: http://core.svn.wordpress.org/trunk@27466 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
b836d650bd
commit
561ab7b840
@ -437,26 +437,6 @@ function twentyfourteen_body_classes( $classes ) {
|
|||||||
}
|
}
|
||||||
add_filter( 'body_class', 'twentyfourteen_body_classes' );
|
add_filter( 'body_class', 'twentyfourteen_body_classes' );
|
||||||
|
|
||||||
/**
|
|
||||||
* Extend the default WordPress post classes.
|
|
||||||
*
|
|
||||||
* Adds a post class to denote:
|
|
||||||
* Non-password protected page with a post thumbnail.
|
|
||||||
*
|
|
||||||
* @since Twenty Fourteen 1.0
|
|
||||||
*
|
|
||||||
* @param array $classes A list of existing post class values.
|
|
||||||
* @return array The filtered post class list.
|
|
||||||
*/
|
|
||||||
function twentyfourteen_post_classes( $classes ) {
|
|
||||||
if ( ! post_password_required() && ! is_attachment() && has_post_thumbnail() ) {
|
|
||||||
$classes[] = 'has-post-thumbnail';
|
|
||||||
}
|
|
||||||
|
|
||||||
return $classes;
|
|
||||||
}
|
|
||||||
add_filter( 'post_class', 'twentyfourteen_post_classes' );
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create a nicely formatted and more specific title element text for output
|
* Create a nicely formatted and more specific title element text for output
|
||||||
* in head of document, based on current view.
|
* in head of document, based on current view.
|
||||||
|
Loading…
Reference in New Issue
Block a user