Make WordPress Core

Ticket #26221: 26221.patch

File 26221.patch, 1.5 KB (added by kwight, 11 years ago)
  • wp-content/themes/twentyfourteen/inc/template-tags.php

     
    165165add_action( 'save_post',     'twentyfourteen_category_transient_flusher' );
    166166
    167167/**
    168  * Display an optional post thumbnail on a single view.
     168 * Display an optional post thumbnail.
    169169 *
    170  * Adds an anchor element to the post thumbnail, when on
    171  * index views, and a div element when on a single view.
     170 * Wraps the post thumbnail in an anchor element on index
     171 * views, or a div element when on single views.
    172172 *
    173173 * @since Twenty Fourteen 1.0
    174174 *
     
    184184
    185185        <div class="post-thumbnail">
    186186        <?php
    187                 if ( ( ! is_active_sidebar( 'sidebar-2' ) || is_page_template( 'page-templates/full-width.php' ) ) && ! wp_is_mobile() ) {
     187                if ( ( ! is_active_sidebar( 'sidebar-2' ) || is_page_template( 'page-templates/full-width.php' ) ) ) {
    188188                        the_post_thumbnail( 'twentyfourteen-full-width' );
    189189                } else {
    190190                        the_post_thumbnail();
     
    196196
    197197        <a class="post-thumbnail" href="<?php the_permalink(); ?>" rel="<?php the_ID(); ?>">
    198198        <?php
    199                 if ( ( ! is_active_sidebar( 'sidebar-2' ) || is_page_template( 'page-templates/full-width.php' ) ) && ! wp_is_mobile() ) {
     199                if ( ( ! is_active_sidebar( 'sidebar-2' ) || is_page_template( 'page-templates/full-width.php' ) ) ) {
    200200                        the_post_thumbnail( 'twentyfourteen-full-width' );
    201201                } else {
    202202                        the_post_thumbnail();