WordPress.org

Make WordPress Core

Ticket #17566: 17566-instantiate-show_sep-variable.diff

File 17566-instantiate-show_sep-variable.diff, 1.6 KB (added by mfields, 3 years ago)

Instantiate $show_sep where needed in template files.

  • wp-content/themes/twentyeleven/content.php

     
    5353                <?php endif; ?> 
    5454 
    5555                <footer class="entry-meta"> 
     56                        <?php $show_sep = false; ?> 
    5657                        <?php if ( 'post' == $post->post_type ) : // Hide category and tag text for pages on Search ?> 
    5758                        <?php 
    5859                                /* translators: used between list items, there is a space after the comma */ 
  • wp-content/themes/twentyeleven/content-quote.php

     
    4949                <?php endif; ?> 
    5050 
    5151                <footer class="entry-meta"> 
     52                        <?php $show_sep = false; ?> 
    5253                        <?php if ( 'post' == $post->post_type ) : // Hide category and tag text for pages on Search ?> 
    5354                        <?php 
    5455                                /* translators: used between list items, there is a space after the comma */ 
  • wp-content/themes/twentyeleven/content-gallery.php

     
    6565        <?php endif; ?> 
    6666 
    6767        <footer class="entry-meta"> 
     68                <?php $show_sep = false; ?> 
    6869                <?php 
    6970                        /* translators: used between list items, there is a space after the comma */ 
    7071                        $categories_list = get_the_category_list( __( ', ', 'twentyeleven' ) );