Make WordPress Core

Ticket #25256: twentyten.3.diff

File twentyten.3.diff, 11.7 KB (added by ericlewis, 12 years ago)
  • src/wp-content/themes/twentyten/archive.php

     
    1818                        <div id="content" role="main">
    1919
    2020<?php
    21         /**
     21        /*
    2222         * Queue the first post, that way we know
    2323         * what date we're dealing with (if that is the case).
    2424         *
     
    4242                        </h1>
    4343
    4444<?php
    45         /**
     45        /*
    4646         * Since we called the_post() above, we need to
    4747         * rewind the loop back to the beginning that way
    4848         * we can run the loop properly, in full.
    4949         */
    5050        rewind_posts();
    5151
    52         /**
     52        /*
    5353         * Run the loop for the archives page to output the posts.
    5454         * If you want to overload this in a child theme then include a file
    5555         * called loop-archive.php and that will be used instead.
  • src/wp-content/themes/twentyten/attachment.php

     
    1313                        <div id="content" role="main">
    1414
    1515                        <?php
    16                         /**
     16                        /*
    1717                         * Run the loop to output the attachment.
    1818                         * If you want to overload this in a child theme then include a file
    1919                         * called loop-attachment.php and that will be used instead.
  • src/wp-content/themes/twentyten/author.php

     
    1313                        <div id="content" role="main">
    1414
    1515<?php
    16         /**
     16        /*
    1717         * Queue the first post, that way we know who
    1818         * the author is when we try to get their name,
    1919         * URL, description, avatar, etc.
     
    5151<?php endif; ?>
    5252
    5353<?php
    54         /**
     54        /*
    5555         * Since we called the_post() above, we need to
    5656         * rewind the loop back to the beginning that way
    5757         * we can run the loop properly, in full.
    5858         */
    5959        rewind_posts();
    6060
    61         /**
     61        /*
    6262         * Run the loop for the author archive page to output the authors posts
    6363         * If you want to overload this in a child theme then include a file
    6464         * called loop-author.php and that will be used instead.
  • src/wp-content/themes/twentyten/category.php

     
    2020                                        if ( ! empty( $category_description ) )
    2121                                                echo '<div class="archive-meta">' . $category_description . '</div>';
    2222
    23                                 /**
     23                                /*
    2424                                 * Run the loop for the category page to output the posts.
    2525                                 * If you want to overload this in a child theme then include a file
    2626                                 * called loop-category.php and that will be used instead.
  • src/wp-content/themes/twentyten/comments.php

     
    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                 /**
     21                /*
    2222                 * Stop the rest of comments.php from being processed,
    2323                 * but don't kill the script entirely -- we still have
    2424                 * to fully load the template.
     
    4646
    4747                        <ol class="commentlist">
    4848                                <?php
    49                                         /**
     49                                        /*
    5050                                         * Loop through and list the comments. Tell wp_list_comments()
    5151                                         * to use twentyten_comment() to format the comments.
    5252                                         * If you want to overload this in a child theme then you can
     
    6565<?php endif; // check for comment navigation ?>
    6666
    6767        <?php
    68         /**
     68        /*
    6969         * If there are no comments and comments are closed, let's leave a little note, shall we?
    7070         * But we only want the note on posts and pages that had comments in the first place.
    7171         */
  • src/wp-content/themes/twentyten/footer.php

     
    1616                <div id="colophon">
    1717
    1818<?php
    19         /**
     19        /*
    2020         * A sidebar in the footer? Yep. You can can customize
    2121         * your footer with four columns of widgets.
    2222         */
     
    4646</div><!-- #wrapper -->
    4747
    4848<?php
    49         /**
     49        /*
    5050         * Always have wp_footer() just before the closing </body>
    5151         * tag of your theme, or you will break many plugins, which
    5252         * generally use this hook to reference JavaScript files.
  • src/wp-content/themes/twentyten/functions.php

     
    3838 * @since Twenty Ten 1.0
    3939 */
    4040
    41 /**
     41/*
    4242 * Set the content width based on the theme's design and stylesheet.
    4343 *
    4444 * Used to set the width of images and content. Should be equal to the width the theme
     
    4747if ( ! isset( $content_width ) )
    4848        $content_width = 640;
    4949
    50 /** Tell WordPress to run twentyten_setup() when the 'after_setup_theme' hook is run. */
     50/* Tell WordPress to run twentyten_setup() when the 'after_setup_theme' hook is run. */
    5151add_action( 'after_setup_theme', 'twentyten_setup' );
    5252
    5353if ( ! function_exists( 'twentyten_setup' ) ):
     
    8484        // Add default posts and comments RSS feed links to head
    8585        add_theme_support( 'automatic-feed-links' );
    8686
    87         /**
     87        /*
    8888         * Make theme available for translation.
    8989         * Translations can be filed in the /languages/ directory
    9090         */
     
    104104        // The custom header business starts here.
    105105
    106106        $custom_header_support = array(
    107                 /**
     107                /*
    108108                 * The default image to use.
    109109                 * The %s is a placeholder for the theme template directory URI.
    110110                 */
     
    147147                add_custom_background();
    148148        }
    149149
    150         /**
     150        /*
    151151         * We'll be using post thumbnails for custom header images on posts and pages.
    152152         * We want them to be 940 pixels wide by 198 pixels tall.
    153153         * Larger images will be auto-cropped to fit, smaller ones will be ignored. See header.php.
  • src/wp-content/themes/twentyten/header.php

     
    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         /**
     40        /*
    4141         * We add some JavaScript to pages with the comment form
    4242         * to support sites with threaded comments (when in use).
    4343         */
    4444        if ( is_singular() && get_option( 'thread_comments' ) )
    4545                wp_enqueue_script( 'comment-reply' );
    4646
    47         /**
     47        /*
    4848         * Always have wp_head() just before the closing </head>
    4949         * tag of your theme, or you will break many plugins, which
    5050         * generally use this hook to add elements to <head> such
     
    7070                                <?php
    7171                                        // Compatibility with versions of WordPress prior to 3.4.
    7272                                        if ( function_exists( 'get_custom_header' ) ) {
    73                                                 /**
     73                                                /*
    7474                                                 * We need to figure out what the minimum width should be for our featured image.
    7575                                                 * This result would be the suggested width if the theme were to implement flexible widths.
    7676                                                 */
  • src/wp-content/themes/twentyten/index.php

     
    1919                        <div id="content" role="main">
    2020
    2121                        <?php
    22                         /**
     22                        /*
    2323                         * Run the loop to output the posts.
    2424                         * If you want to overload this in a child theme then include a file
    2525                         * called loop-index.php and that will be used instead.
  • src/wp-content/themes/twentyten/loop.php

     
    3939<?php endif; ?>
    4040
    4141<?php
    42         /**
     42        /*
    4343         * Start the Loop.
    4444         *
    4545         * In Twenty Ten we use the same loop in multiple contexts.
  • src/wp-content/themes/twentyten/onecolumn-page.php

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

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

     
    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                                 /**
     18                                /*
    1919                                 * Run the loop for the search to output the results.
    2020                                 * If you want to overload this in a child theme then include a file
    2121                                 * called loop-search.php and that will be used instead.
  • src/wp-content/themes/twentyten/sidebar-footer.php

     
    99?>
    1010
    1111<?php
    12         /**
     12        /*
    1313         * The footer widget area is triggered if any of the areas
    1414         * have widgets. So let's check that first.
    1515         *
  • src/wp-content/themes/twentyten/sidebar.php

     
    1212                        <ul class="xoxo">
    1313
    1414<?php
    15         /**
     15        /*
    1616         * When we call the dynamic_sidebar() function, it'll spit out
    1717         * the widgets for that widget area. If it instead returns false,
    1818         * then the sidebar simply doesn't exist, so we'll hard-code in
  • src/wp-content/themes/twentyten/single.php

     
    1313                        <div id="content" role="main">
    1414
    1515                        <?php
    16                         /**
     16                        /*
    1717                         * Run the loop to output the post.
    1818                         * If you want to overload this in a child theme then include a file
    1919                         * called loop-single.php and that will be used instead.
  • src/wp-content/themes/twentyten/tag.php

     
    1717                                ?></h1>
    1818
    1919<?php
    20 /**
     20/*
    2121 * Run the loop for the tag archive to output the posts
    2222 * If you want to overload this in a child theme then include a file
    2323 * called loop-tag.php and that will be used instead.