CS: correct indentation of a newly introduced function

This commit is contained in:
jrfnl 2018-02-27 13:59:07 +01:00
parent 98e3e75109
commit 1abaebcdaa
1 changed files with 28 additions and 28 deletions

View File

@ -112,13 +112,13 @@ if ( ! function_exists( '_s_entry_footer' ) ) :
endif;
if ( ! function_exists( '_s_post_thumbnail' ) ) :
/**
/**
* Displays an optional post thumbnail.
*
* Wraps the post thumbnail in an anchor element on index views, or a div
* element when on single views.
*/
function _s_post_thumbnail() {
function _s_post_thumbnail() {
if ( post_password_required() || is_attachment() || ! has_post_thumbnail() ) {
return;
}
@ -144,5 +144,5 @@ function _s_post_thumbnail() {
<?php
endif; // End is_singular().
}
}
endif;