WordPress.org

Make WordPress Core


Ignore:
Timestamp:
05/04/2011 10:54:50 PM (10 years ago)
Author:
lancewillett
Message:

Twenty Eleven updates and fixes, see #17198

  • Add explanatory comments in all templates, following Twenty Ten's example
  • Stick with twentyeleven_ for prefixing filter names
  • Use post format content templates in search results
  • First pass at adding a template for adding a sidebar to pages
  • Add a featured post header to standard sticky posts
  • Style fixes: print media, comment styles for pages with sidebars, color of meta links on image post format
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-content/themes/twentyeleven/comments.php

    r17787 r17802  
    1717        <div class="nopassword"><?php _e( 'This post is password protected. Enter the password to view any comments.', 'twentyeleven' ); ?></div>
    1818    </div><!-- .comments -->
    19     <?php return;
     19    <?php
     20            /* Stop the rest of comments.php from being processed,
     21             * but don't kill the script entirely -- we still have
     22             * to fully load the template.
     23             */
     24            return;
    2025        endif;
    2126    ?>
     
    4045
    4146        <ol class="commentlist">
    42             <?php wp_list_comments( array( 'callback' => 'twentyeleven_comment' ) ); ?>
     47            <?php
     48                /* Loop through and list the comments. Tell wp_list_comments()
     49                 * to use twentyeleven_comment() to format the comments.
     50                 * If you want to overload this in a child theme then you can
     51                 * define twentyeleven_comment() and that will be used instead.
     52                 * See twentyeleven_comment() in twentyeleven/functions.php for more.
     53                 */
     54                wp_list_comments( array( 'callback' => 'twentyeleven_comment' ) );
     55            ?>
    4356        </ol>
    4457
Note: See TracChangeset for help on using the changeset viewer.