]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-content/themes/twentyfourteen/inc/template-tags.php
WordPress 3.9
[autoinstalls/wordpress.git] / wp-content / themes / twentyfourteen / inc / template-tags.php
index dee499e1e2c991ee92ed5475892438bcaf1f80f6..d1f9bcfcce6057d4b145b5e4817eeaa32fd0ae2c 100644 (file)
@@ -12,8 +12,6 @@ if ( ! function_exists( 'twentyfourteen_paging_nav' ) ) :
  * Display navigation to next/previous set of posts when applicable.
  *
  * @since Twenty Fourteen 1.0
- *
- * @return void
  */
 function twentyfourteen_paging_nav() {
        // Don't print empty markup if there's only one page.
@@ -67,8 +65,6 @@ if ( ! function_exists( 'twentyfourteen_post_nav' ) ) :
  * Display navigation to next/previous post when applicable.
  *
  * @since Twenty Fourteen 1.0
- *
- * @return void
  */
 function twentyfourteen_post_nav() {
        // Don't print empty markup if there's nowhere to navigate.
@@ -102,8 +98,6 @@ if ( ! function_exists( 'twentyfourteen_posted_on' ) ) :
  * Print HTML with meta information for the current post-date/time and author.
  *
  * @since Twenty Fourteen 1.0
- *
- * @return void
  */
 function twentyfourteen_posted_on() {
        if ( is_sticky() && is_home() && ! is_paged() ) {
@@ -154,8 +148,6 @@ function twentyfourteen_categorized_blog() {
  * Flush out the transients used in twentyfourteen_categorized_blog.
  *
  * @since Twenty Fourteen 1.0
- *
- * @return void
  */
 function twentyfourteen_category_transient_flusher() {
        // Like, beat it. Dig?
@@ -171,11 +163,9 @@ add_action( 'save_post',     'twentyfourteen_category_transient_flusher' );
  * views, or a div element when on single views.
  *
  * @since Twenty Fourteen 1.0
- *
- * @return void
-*/
+ */
 function twentyfourteen_post_thumbnail() {
-       if ( post_password_required() || ! has_post_thumbnail() ) {
+       if ( post_password_required() || is_attachment() || ! has_post_thumbnail() ) {
                return;
        }