Make WordPress Core


Ignore:
Timestamp:
05/23/2013 05:05:26 PM (13 years ago)
Author:
lancewillett
Message:

Twenty Thirteen: handle case for gallery post formats if there is no gallery shortcode in the post. Props obenland, fixes #24391.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-content/themes/twentythirteen/content-gallery.php

    r24131 r24331  
    2121
    2222    <div class="entry-content">
    23         <?php if ( is_single() ) : ?>
     23        <?php if ( is_single() || ! get_post_gallery() ) : ?>
    2424            <?php the_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'twentythirteen' ) ); ?>
    2525            <?php wp_link_pages( array( 'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentythirteen' ) . '</span>', 'after' => '</div>', 'link_before' => '<span>', 'link_after' => '</span>' ) ); ?>
Note: See TracChangeset for help on using the changeset viewer.