Make WordPress Core

Ticket #25256: twentyten.diff

File twentyten.diff, 29.4 KB (added by DrewAPicture, 12 years ago)
  • src/wp-content/themes/twentyten/404.php

     
    11<?php
    22/**
    3  * The template for displaying 404 pages (Not Found).
     3 * Template for displaying 404 pages (Not Found)
    44 *
    55 * @package WordPress
    66 * @subpackage Twenty_Ten
  • src/wp-content/themes/twentyten/archive.php

     
    11<?php
    22/**
    3  * The template for displaying Archive pages.
     3 * Template for displaying Archive pages
    44 *
    55 * Used to display archive-type pages if nothing more specific matches a query.
    66 * For example, puts together date-based pages if no date.php file exists.
    77 *
    8  * Learn more: http://codex.wordpress.org/Template_Hierarchy
     8 * @link http://codex.wordpress.org/Template_Hierarchy
    99 *
    1010 * @package WordPress
    1111 * @subpackage Twenty_Ten
     
    1818                        <div id="content" role="main">
    1919
    2020<?php
    21         /* Queue the first post, that way we know
     21        /**
     22         * Queue the first post, that way we know
    2223         * what date we're dealing with (if that is the case).
    2324         *
    2425         * We reset this later so we can run the loop
     
    4142                        </h1>
    4243
    4344<?php
    44         /* Since we called the_post() above, we need to
     45        /**
     46         * Since we called the_post() above, we need to
    4547         * rewind the loop back to the beginning that way
    4648         * we can run the loop properly, in full.
    4749         */
    4850        rewind_posts();
    4951
    50         /* Run the loop for the archives page to output the posts.
     52        /**
     53         * Run the loop for the archives page to output the posts.
    5154         * If you want to overload this in a child theme then include a file
    5255         * called loop-archive.php and that will be used instead.
    5356         */
  • src/wp-content/themes/twentyten/attachment.php

     
    11<?php
    22/**
    3  * The template for displaying attachments.
     3 * Template for displaying attachments
    44 *
    55 * @package WordPress
    66 * @subpackage Twenty_Ten
     
    1313                        <div id="content" role="main">
    1414
    1515                        <?php
    16                         /* Run the loop to output the attachment.
     16                        /**
     17                         * Run the loop to output the attachment.
    1718                         * If you want to overload this in a child theme then include a file
    1819                         * called loop-attachment.php and that will be used instead.
    1920                         */
  • src/wp-content/themes/twentyten/author.php

     
    11<?php
    22/**
    3  * The template for displaying Author Archive pages.
     3 * Template for displaying Author Archive pages
    44 *
    55 * @package WordPress
    66 * @subpackage Twenty_Ten
     
    1313                        <div id="content" role="main">
    1414
    1515<?php
    16         /* Queue the first post, that way we know who
     16        /**
     17         * Queue the first post, that way we know who
    1718         * the author is when we try to get their name,
    1819         * URL, description, avatar, etc.
    1920         *
     
    3132if ( get_the_author_meta( 'description' ) ) : ?>
    3233                                        <div id="entry-author-info">
    3334                                                <div id="author-avatar">
    34                                                         <?php echo get_avatar( get_the_author_meta( 'user_email' ), apply_filters( 'twentyten_author_bio_avatar_size', 60 ) ); ?>
     35                                                        <?php
     36                                                        /**
     37                                                         * Filter the Twenty Ten author bio avatar size.
     38                                                         *
     39                                                         * @since Twenty Ten 1.0
     40                                                         *
     41                                                         * @param int The height and width avatar dimensions in pixels. Default 60.
     42                                                         */
     43                                                        echo get_avatar( get_the_author_meta( 'user_email' ), apply_filters( 'twentyten_author_bio_avatar_size', 60 ) );
     44                                                        ?>
    3545                                                </div><!-- #author-avatar -->
    3646                                                <div id="author-description">
    3747                                                        <h2><?php printf( __( 'About %s', 'twentyten' ), get_the_author() ); ?></h2>
     
    4151<?php endif; ?>
    4252
    4353<?php
    44         /* Since we called the_post() above, we need to
     54        /**
     55         * Since we called the_post() above, we need to
    4556         * rewind the loop back to the beginning that way
    4657         * we can run the loop properly, in full.
    4758         */
    4859        rewind_posts();
    4960
    50         /* Run the loop for the author archive page to output the authors posts
     61        /**
     62         * Run the loop for the author archive page to output the authors posts
    5163         * If you want to overload this in a child theme then include a file
    5264         * called loop-author.php and that will be used instead.
    5365         */
  • src/wp-content/themes/twentyten/category.php

     
    11<?php
    22/**
    3  * The template for displaying Category Archive pages.
     3 * Template for displaying Category Archive pages
    44 *
    55 * @package WordPress
    66 * @subpackage Twenty_Ten
     
    2020                                        if ( ! empty( $category_description ) )
    2121                                                echo '<div class="archive-meta">' . $category_description . '</div>';
    2222
    23                                 /* Run the loop for the category page to output the posts.
     23                                /**
     24                                 * Run the loop for the category page to output the posts.
    2425                                 * If you want to overload this in a child theme then include a file
    2526                                 * called loop-category.php and that will be used instead.
    2627                                 */
  • src/wp-content/themes/twentyten/comments.php

     
    11<?php
    22/**
    3  * The template for displaying Comments.
     3 * Template for displaying Comments
    44 *
    55 * The area of the page that contains both current comments
    66 * and the comment form. The actual display of comments is
     
    1818                                <p class="nopassword"><?php _e( 'This post is password protected. Enter the password to view any comments.', 'twentyten' ); ?></p>
    1919                        </div><!-- #comments -->
    2020<?php
    21                 /* Stop the rest of comments.php from being processed,
     21                /**
     22                 * Stop the rest of comments.php from being processed,
    2223                 * but don't kill the script entirely -- we still have
    2324                 * to fully load the template.
    2425                 */
     
    4546
    4647                        <ol class="commentlist">
    4748                                <?php
    48                                         /* Loop through and list the comments. Tell wp_list_comments()
     49                                        /**
     50                                         * Loop through and list the comments. Tell wp_list_comments()
    4951                                         * to use twentyten_comment() to format the comments.
    5052                                         * If you want to overload this in a child theme then you can
    5153                                         * define twentyten_comment() and that will be used instead.
     
    6365<?php endif; // check for comment navigation ?>
    6466
    6567        <?php
    66         /* If there are no comments and comments are closed, let's leave a little note, shall we?
     68        /**
     69         * If there are no comments and comments are closed, let's leave a little note, shall we?
    6770         * But we only want the note on posts and pages that had comments in the first place.
    6871         */
    6972        if ( ! comments_open() && get_comments_number() ) : ?>
  • src/wp-content/themes/twentyten/footer.php

     
    11<?php
    22/**
    3  * The template for displaying the footer.
     3 * Template for displaying the footer
    44 *
    55 * Contains the closing of the id=main div and all content
    66 * after. Calls sidebar-footer.php for bottom widgets.
     
    1616                <div id="colophon">
    1717
    1818<?php
    19         /* A sidebar in the footer? Yep. You can can customize
     19        /**
     20         * A sidebar in the footer? Yep. You can can customize
    2021         * your footer with four columns of widgets.
    2122         */
    2223        get_sidebar( 'footer' );
     
    2930                        </div><!-- #site-info -->
    3031
    3132                        <div id="site-generator">
    32                                 <?php do_action( 'twentyten_credits' ); ?>
     33                                <?php
     34                                /**
     35                                 * Fires before the Twenty Ten credits in the footer.
     36                                 *
     37                                 * @since Twenty Ten 1.0
     38                                 */
     39                                do_action( 'twentyten_credits' ); ?>
    3340                                <a href="<?php echo esc_url( __( 'http://wordpress.org/', 'twentyten' ) ); ?>" title="<?php esc_attr_e( 'Semantic Personal Publishing Platform', 'twentyten' ); ?>"><?php printf( __( 'Proudly powered by %s.', 'twentyten' ), 'WordPress' ); ?></a>
    3441                        </div><!-- #site-generator -->
    3542
     
    3946</div><!-- #wrapper -->
    4047
    4148<?php
    42         /* Always have wp_footer() just before the closing </body>
     49        /**
     50         * Always have wp_footer() just before the closing </body>
    4351         * tag of your theme, or you will break many plugins, which
    4452         * generally use this hook to reference JavaScript files.
    4553         */
  • src/wp-content/themes/twentyten/functions.php

     
    5252
    5353if ( ! function_exists( 'twentyten_setup' ) ):
    5454/**
    55  * Sets up theme defaults and registers support for various WordPress features.
     55 * Set up theme defaults and registers support for various WordPress features.
    5656 *
    5757 * Note that this function is hooked into the after_setup_theme hook, which runs
    5858 * before the init hook. The init hook is too late for some features, such as indicating
     
    6161 * To override twentyten_setup() in a child theme, add your own twentyten_setup to your child theme's
    6262 * functions.php file.
    6363 *
    64  * @uses add_theme_support() To add support for post thumbnails, custom headers and backgrounds, and automatic feed links.
    65  * @uses register_nav_menus() To add support for navigation menus.
    66  * @uses add_editor_style() To style the visual editor.
    67  * @uses load_theme_textdomain() For translation/localization support.
     64 * @uses add_theme_support()        To add support for post thumbnails, custom headers and backgrounds, and automatic feed links.
     65 * @uses register_nav_menus()       To add support for navigation menus.
     66 * @uses add_editor_style()         To style the visual editor.
     67 * @uses load_theme_textdomain()    For translation/localization support.
    6868 * @uses register_default_headers() To register the default custom header images provided with the theme.
    69  * @uses set_post_thumbnail_size() To set a custom post thumbnail size.
     69 * @uses set_post_thumbnail_size()  To set a custom post thumbnail size.
    7070 *
    7171 * @since Twenty Ten 1.0
    7272 */
     
    8484        // Add default posts and comments RSS feed links to head
    8585        add_theme_support( 'automatic-feed-links' );
    8686
    87         // Make theme available for translation
    88         // Translations can be filed in the /languages/ directory
     87        /**
     88         * Make theme available for translation.
     89         * Translations can be filed in the /languages/ directory
     90         */
    8991        load_theme_textdomain( 'twentyten', get_template_directory() . '/languages' );
    9092
    9193        // This theme uses wp_nav_menu() in one location.
     
    102104        // The custom header business starts here.
    103105
    104106        $custom_header_support = array(
    105                 // The default image to use.
    106                 // The %s is a placeholder for the theme template directory URI.
     107                /**
     108                 * The default image to use.
     109                 * The %s is a placeholder for the theme template directory URI.
     110                 */
    107111                'default-image' => '%s/images/headers/path.jpg',
    108112                // The height and width of our custom header.
     113                /**
     114                 * Filter the Twenty Ten default header image width.
     115                 *
     116                 * @since Twenty Ten 1.0
     117                 *
     118                 * @param int The default header image width in pixels. Default 940.
     119                 */
    109120                'width' => apply_filters( 'twentyten_header_image_width', 940 ),
     121                /**
     122                 * Filter the Twenty Ten defaul header image height.
     123                 *
     124                 * @since Twenty Ten 1.0
     125                 *
     126                 * @param int The default header image height in pixels. Default 198.
     127                 */
    110128                'height' => apply_filters( 'twentyten_header_image_height', 198 ),
    111129                // Support flexible heights.
    112130                'flex-height' => true,
     
    129147                add_custom_background();
    130148        }
    131149
    132         // We'll be using post thumbnails for custom header images on posts and pages.
    133         // We want them to be 940 pixels wide by 198 pixels tall.
    134         // Larger images will be auto-cropped to fit, smaller ones will be ignored. See header.php.
     150        /**
     151         * We'll be using post thumbnails for custom header images on posts and pages.
     152         * We want them to be 940 pixels wide by 198 pixels tall.
     153         * Larger images will be auto-cropped to fit, smaller ones will be ignored. See header.php.
     154         */
    135155        set_post_thumbnail_size( $custom_header_support['width'], $custom_header_support['height'], true );
    136156
    137157        // ... and thus ends the custom header business.
     
    192212
    193213if ( ! function_exists( 'twentyten_admin_header_style' ) ) :
    194214/**
    195  * Styles the header image displayed on the Appearance > Header admin panel.
     215 * Style the header image displayed on the Appearance > Header admin panel.
    196216 *
    197217 * Referenced via add_custom_image_header() in twentyten_setup().
    198218 *
     
    216236endif;
    217237
    218238/**
    219  * Get our wp_nav_menu() fallback, wp_page_menu(), to show a home link.
     239 * Show a home link for our wp_nav_menu() fallback, wp_page_menu().
    220240 *
    221241 * To override this in a child theme, remove the filter and optionally add
    222242 * your own function tied to the wp_page_menu_args filter hook.
    223243 *
    224244 * @since Twenty Ten 1.0
     245 *
     246 * @param array $args An optional array of arguments. @see wp_page_menu()
    225247 */
    226248function twentyten_page_menu_args( $args ) {
    227249        if ( ! isset( $args['show_home'] ) )
     
    231253add_filter( 'wp_page_menu_args', 'twentyten_page_menu_args' );
    232254
    233255/**
    234  * Sets the post excerpt length to 40 characters.
     256 * Set the post excerpt length to 40 characters.
    235257 *
    236258 * To override this length in a child theme, remove the filter and add your own
    237259 * function tied to the excerpt_length filter hook.
    238260 *
    239261 * @since Twenty Ten 1.0
    240  * @return int
     262 *
     263 * @param int $length The number of excerpt characters.
     264 * @return int The filtered number of excerpt characters.
    241265 */
    242266function twentyten_excerpt_length( $length ) {
    243267        return 40;
     
    246270
    247271if ( ! function_exists( 'twentyten_continue_reading_link' ) ) :
    248272/**
    249  * Returns a "Continue Reading" link for excerpts
     273 * Return a "Continue Reading" link for excerpts.
    250274 *
    251275 * @since Twenty Ten 1.0
    252  * @return string "Continue Reading" link
     276 *
     277 * @return string "Continue Reading" link.
    253278 */
    254279function twentyten_continue_reading_link() {
    255280        return ' <a href="'. get_permalink() . '">' . __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'twentyten' ) . '</a>';
     
    257282endif;
    258283
    259284/**
    260  * Replaces "[...]" (appended to automatically generated excerpts) with an ellipsis and twentyten_continue_reading_link().
     285 * Replace "[...]" with an ellipsis and twentyten_continue_reading_link().
    261286 *
     287 * "[...]" is appended to automatically generated excerpts.
     288 *
    262289 * To override this in a child theme, remove the filter and add your own
    263290 * function tied to the excerpt_more filter hook.
    264291 *
    265292 * @since Twenty Ten 1.0
    266  * @return string An ellipsis
     293 *
     294 * @param string $more The Read More text.
     295 * @return string An ellipsis.
    267296 */
    268297function twentyten_auto_excerpt_more( $more ) {
    269298        return ' &hellip;' . twentyten_continue_reading_link();
     
    271300add_filter( 'excerpt_more', 'twentyten_auto_excerpt_more' );
    272301
    273302/**
    274  * Adds a pretty "Continue Reading" link to custom post excerpts.
     303 * Add a pretty "Continue Reading" link to custom post excerpts.
    275304 *
    276305 * To override this link in a child theme, remove the filter and add your own
    277306 * function tied to the get_the_excerpt filter hook.
    278307 *
    279308 * @since Twenty Ten 1.0
    280  * @return string Excerpt with a pretty "Continue Reading" link
     309 *
     310 * @param string $output The "Coninue Reading" link.
     311 * @return string Excerpt with a pretty "Continue Reading" link.
    281312 */
    282313function twentyten_custom_excerpt_more( $output ) {
    283314        if ( has_excerpt() && ! is_attachment() ) {
     
    325356 * Used as a callback by wp_list_comments() for displaying the comments.
    326357 *
    327358 * @since Twenty Ten 1.0
     359 *
     360 * @param object $comment The comment object.
     361 * @param array  $args    An array of arguments. @see get_comment_reply_link()
     362 * @param int    $depth   The depth of the comment.
    328363 */
    329364function twentyten_comment( $comment, $args, $depth ) {
    330365        $GLOBALS['comment'] = $comment;
     
    376411 * function tied to the init hook.
    377412 *
    378413 * @since Twenty Ten 1.0
    379  * @uses register_sidebar
     414 *
     415 * @uses register_sidebar()
    380416 */
    381417function twentyten_widgets_init() {
    382418        // Area 1, located at the top of the sidebar.
     
    449485add_action( 'widgets_init', 'twentyten_widgets_init' );
    450486
    451487/**
    452  * Removes the default styles that are packaged with the Recent Comments widget.
     488 * Remove the default styles that are packaged with the Recent Comments widget.
    453489 *
    454490 * To override this in a child theme, remove the filter and optionally add your own
    455491 * function tied to the widgets_init action hook.
     
    467503
    468504if ( ! function_exists( 'twentyten_posted_on' ) ) :
    469505/**
    470  * Prints HTML with meta information for the current post-date/time and author.
     506 * Print HTML with meta information for the current post-date/time and author.
    471507 *
    472508 * @since Twenty Ten 1.0
    473509 */
     
    490526
    491527if ( ! function_exists( 'twentyten_posted_in' ) ) :
    492528/**
    493  * Prints HTML with meta information for the current post (category, tags and permalink).
     529 * Print HTML with meta information for the current post (category, tags and permalink).
    494530 *
    495531 * @since Twenty Ten 1.0
    496532 */
     
    516552endif;
    517553
    518554/**
    519  * Retrieves the IDs for images in a gallery.
     555 * Retrieve the IDs for images in a gallery.
    520556 *
    521  * @uses get_post_galleries() first, if available. Falls back to shortcode parsing,
    522  * then as last option uses a get_posts() call.
     557 * @uses get_post_galleries() First, if available. Falls back to shortcode parsing,
     558 *                            then as last option uses a get_posts() call.
    523559 *
    524560 * @since Twenty Ten 1.6.
    525561 *
  • src/wp-content/themes/twentyten/header.php

     
    11<?php
    22/**
    3  * The Header for our theme.
     3 * Header template for our theme
    44 *
    5  * Displays all of the <head> section and everything up till <div id="main">
     5 * Displays all of the <head> section and everything up till <div id="main">.
    66 *
    77 * @package WordPress
    88 * @subpackage Twenty_Ten
     
    3737<link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( 'stylesheet_url' ); ?>" />
    3838<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
    3939<?php
    40         /* We add some JavaScript to pages with the comment form
     40        /**
     41         * We add some JavaScript to pages with the comment form
    4142         * to support sites with threaded comments (when in use).
    4243         */
    4344        if ( is_singular() && get_option( 'thread_comments' ) )
    4445                wp_enqueue_script( 'comment-reply' );
    4546
    46         /* Always have wp_head() just before the closing </head>
     47        /**
     48         * Always have wp_head() just before the closing </head>
    4749         * tag of your theme, or you will break many plugins, which
    4850         * generally use this hook to add elements to <head> such
    4951         * as styles, scripts, and meta tags.
     
    6870                                <?php
    6971                                        // Compatibility with versions of WordPress prior to 3.4.
    7072                                        if ( function_exists( 'get_custom_header' ) ) {
    71                                                 // We need to figure out what the minimum width should be for our featured image.
    72                                                 // This result would be the suggested width if the theme were to implement flexible widths.
     73                                                /**
     74                                                 * We need to figure out what the minimum width should be for our featured image.
     75                                                 * This result would be the suggested width if the theme were to implement flexible widths.
     76                                                 */
    7377                                                $header_image_width = get_theme_support( 'custom-header', 'width' );
    7478                                        } else {
    7579                                                $header_image_width = HEADER_IMAGE_WIDTH;
  • src/wp-content/themes/twentyten/index.php

     
    11<?php
    22/**
    3  * The main template file.
     3 * Main template file
    44 *
    55 * This is the most generic template file in a WordPress theme
    66 * and one of the two required files for a theme (the other being style.css).
     
    1919                        <div id="content" role="main">
    2020
    2121                        <?php
    22                         /* Run the loop to output the posts.
     22                        /**
     23                         * Run the loop to output the posts.
    2324                         * If you want to overload this in a child theme then include a file
    2425                         * called loop-index.php and that will be used instead.
    2526                         */
  • src/wp-content/themes/twentyten/loop-attachment.php

     
    11<?php
    22/**
    3  * The loop that displays an attachment.
     3 * The loop that displays an attachment
    44 *
    55 * The loop displays the posts and the post content. See
    66 * http://codex.wordpress.org/The_Loop to understand it and
     
    8686        }
    8787?>
    8888                                                <p class="attachment"><a href="<?php echo $next_attachment_url; ?>" title="<?php the_title_attribute(); ?>" rel="attachment"><?php
     89                                                        /**
     90                                                         * Filter the Twenty Ten default attachment width.
     91                                                         *
     92                                                         * @since Twenty Ten 1.0
     93                                                         *
     94                                                         * @param int The default attachment width in pixels. Default 900.
     95                                                         */
    8996                                                        $attachment_width  = apply_filters( 'twentyten_attachment_size', 900 );
     97                                                        /**
     98                                                         * Filter the Twenty Ten default attachment height.
     99                                                         *
     100                                                         * @since Twenty Ten 1.0
     101                                                         *
     102                                                         * @param int The default attachment height in pixels. Default 900.
     103                                                         */
    90104                                                        $attachment_height = apply_filters( 'twentyten_attachment_height', 900 );
    91105                                                        echo wp_get_attachment_image( $post->ID, array( $attachment_width, $attachment_height ) ); // filterable image width with, essentially, no limit for image height.
    92106                                                ?></a></p>
  • src/wp-content/themes/twentyten/loop-page.php

     
    11<?php
    22/**
    3  * The loop that displays a page.
     3 * The loop that displays a page
    44 *
    55 * The loop displays the posts and the post content. See
    66 * http://codex.wordpress.org/The_Loop to understand it and
  • src/wp-content/themes/twentyten/loop-single.php

     
    11<?php
    22/**
    3  * The loop that displays a single post.
     3 * The loop that displays a single post
    44 *
    55 * The loop displays the posts and the post content. See
    66 * http://codex.wordpress.org/The_Loop to understand it and
     
    3737<?php if ( get_the_author_meta( 'description' ) ) : // If a user has filled out their description, show a bio on their entries  ?>
    3838                                        <div id="entry-author-info">
    3939                                                <div id="author-avatar">
    40                                                         <?php echo get_avatar( get_the_author_meta( 'user_email' ), apply_filters( 'twentyten_author_bio_avatar_size', 60 ) ); ?>
     40                                                        <?php
     41                                                        //duplicate_hook
     42                                                        echo get_avatar( get_the_author_meta( 'user_email' ), apply_filters( 'twentyten_author_bio_avatar_size', 60 ) );
     43                                                        ?>
    4144                                                </div><!-- #author-avatar -->
    4245                                                <div id="author-description">
    4346                                                        <h2><?php printf( __( 'About %s', 'twentyten' ), get_the_author() ); ?></h2>
  • src/wp-content/themes/twentyten/loop.php

     
    11<?php
    22/**
    3  * The loop that displays posts.
     3 * The loop that displays posts
    44 *
    55 * The loop displays the posts and the post content. See
    66 * http://codex.wordpress.org/The_Loop to understand it and
     
    3939<?php endif; ?>
    4040
    4141<?php
    42         /* Start the Loop.
     42        /**
     43         * Start the Loop.
    4344         *
    4445         * In Twenty Ten we use the same loop in multiple contexts.
    4546         * It is broken into three main parts: when we're displaying
     
    5253         * the rest of the loop that is shared.
    5354         *
    5455         * Without further ado, the loop:
    55          */ ?>
     56         */
     57?>
    5658<?php while ( have_posts() ) : the_post(); ?>
    5759
    5860<?php /* How to display posts of the Gallery format. The gallery category is the old way. */ ?>
  • src/wp-content/themes/twentyten/onecolumn-page.php

     
    1818                        <div id="content" role="main">
    1919
    2020                        <?php
    21                         /* Run the loop to output the page.
     21                        /**
     22                         * Run the loop to output the page.
    2223                         * If you want to overload this in a child theme then include a file
    2324                         * called loop-page.php and that will be used instead.
    2425                         */
  • src/wp-content/themes/twentyten/page.php

     
    11<?php
    22/**
    3  * The template for displaying all pages.
     3 * Template for displaying all pages
    44 *
    55 * This is the template that displays all pages by default.
    66 * Please note that this is the WordPress construct of pages
     
    1818                        <div id="content" role="main">
    1919
    2020                        <?php
    21                         /* Run the loop to output the page.
     21                        /**
     22                         * Run the loop to output the page.
    2223                         * If you want to overload this in a child theme then include a file
    2324                         * called loop-page.php and that will be used instead.
    2425                         */
  • src/wp-content/themes/twentyten/search.php

     
    11<?php
    22/**
    3  * The template for displaying Search Results pages.
     3 * Template for displaying Search Results pages
    44 *
    55 * @package WordPress
    66 * @subpackage Twenty_Ten
     
    1515<?php if ( have_posts() ) : ?>
    1616                                <h1 class="page-title"><?php printf( __( 'Search Results for: %s', 'twentyten' ), '<span>' . get_search_query() . '</span>' ); ?></h1>
    1717                                <?php
    18                                 /* Run the loop for the search to output the results.
     18                                /**
     19                                 * Run the loop for the search to output the results.
    1920                                 * If you want to overload this in a child theme then include a file
    2021                                 * called loop-search.php and that will be used instead.
    2122                                 */
  • src/wp-content/themes/twentyten/sidebar-footer.php

     
    11<?php
    22/**
    3  * The Footer widget areas.
     3 * The Footer widget areas
    44 *
    55 * @package WordPress
    66 * @subpackage Twenty_Ten
     
    99?>
    1010
    1111<?php
    12         /* The footer widget area is triggered if any of the areas
     12        /**
     13         * The footer widget area is triggered if any of the areas
    1314         * have widgets. So let's check that first.
    1415         *
    1516         * If none of the sidebars have widgets, then let's bail early.
  • src/wp-content/themes/twentyten/sidebar.php

     
    11<?php
    22/**
    3  * The Sidebar containing the primary and secondary widget areas.
     3 * Sidebar template containing the primary and secondary widget areas
    44 *
    55 * @package WordPress
    66 * @subpackage Twenty_Ten
     
    1212                        <ul class="xoxo">
    1313
    1414<?php
    15         /* When we call the dynamic_sidebar() function, it'll spit out
     15        /**
     16         * When we call the dynamic_sidebar() function, it'll spit out
    1617         * the widgets for that widget area. If it instead returns false,
    1718         * then the sidebar simply doesn't exist, so we'll hard-code in
    1819         * some default sidebar stuff just in case.
  • src/wp-content/themes/twentyten/single.php

     
    11<?php
    22/**
    3  * The Template for displaying all single posts.
     3 * Template for displaying all single posts
    44 *
    55 * @package WordPress
    66 * @subpackage Twenty_Ten
     
    1313                        <div id="content" role="main">
    1414
    1515                        <?php
    16                         /* Run the loop to output the post.
     16                        /**
     17                         * Run the loop to output the post.
    1718                         * If you want to overload this in a child theme then include a file
    1819                         * called loop-single.php and that will be used instead.
    1920                         */
  • src/wp-content/themes/twentyten/tag.php

     
    11<?php
    22/**
    3  * The template for displaying Tag Archive pages.
     3 * Template for displaying Tag Archive pages
    44 *
    55 * @package WordPress
    66 * @subpackage Twenty_Ten
     
    1717                                ?></h1>
    1818
    1919<?php
    20 /* Run the loop for the tag archive to output the posts
     20/**
     21 * Run the loop for the tag archive to output the posts
    2122 * If you want to overload this in a child theme then include a file
    2223 * called loop-tag.php and that will be used instead.
    2324 */