WordPress.org

Make WordPress Core

Ticket #24633: 24633.4.patch

File 24633.4.patch, 53.0 KB (added by mordauk, 4 years ago)

Removes duplicate p.description element and correctly sets the generated password to both pass1 and pass2

  • wp-admin/admin-ajax.php

     
    5858        'wp-remove-post-lock', 'dismiss-wp-pointer', 'upload-attachment', 'get-attachment',
    5959        'query-attachments', 'save-attachment', 'save-attachment-compat', 'send-link-to-editor',
    6060        'send-attachment-to-editor', 'save-attachment-order', 'heartbeat', 'get-revision-diffs',
    61         'save-user-color-scheme',
     61        'save-user-color-scheme', 'generate_password',
    6262);
    6363
    6464// Register core Ajax calls.
  • wp-admin/includes/ajax-actions.php

     
    22512251        update_user_meta( get_current_user_id(), 'admin_color', $color_scheme );
    22522252        wp_send_json_success();
    22532253}
     2254
     2255function wp_ajax_generate_password() {
     2256        die( wp_generate_password() );
     2257}
  • wp-admin/includes/user.php

     
    174174
    175175        if ( $update ) {
    176176                $user_id = wp_update_user( $user );
     177
     178                // Encourage the user to reset their password
     179                if( ! empty( $_POST['reset_password'] ) ) {
     180                        update_user_option( $user_id, 'default_password_nag', true, true );
     181                }
     182
     183                // Send the new, plaintext password to the user
     184                if( ! empty( $_POST['send_password'] ) ) {
     185                        $blogname = wp_specialchars_decode( get_option( 'blogname' ), ENT_QUOTES );
     186                        $message  = sprintf( __( 'Username: %s' ), $user->user_login ) . "\r\n";
     187                        $message .= sprintf( __( 'Password: %s' ), $pass1 ) . "\r\n";
     188                        $message .= wp_login_url() . "\r\n";
     189
     190                        wp_mail( $user->user_email, sprintf( __( '[%s] Your username and password' ), $blogname ), $message );
     191                }
     192
    177193        } else {
    178194                $user_id = wp_insert_user( $user );
    179195                wp_new_user_notification( $user_id, isset( $_POST['send_password'] ) ? wp_unslash( $pass1 ) : '' );
  • wp-admin/js/user-profile.js

     
    3333        $(document).ready( function() {
    3434                var $colorpicker, $stylesheet, user_id, current_user_id,
    3535                        select = $( '#display_name' );
     36                       
     37            var show_password = $('#show-password');
     38            var hide_password = $('#hide-password');
     39            var pass1 = $('#pass1');
     40            var pass2 = $('#pass2');
     41            var password_repeat = $('#password-repeat');
    3642
    37                 $('#pass1').val('').keyup( check_pass_strength );
    38                 $('#pass2').val('').keyup( check_pass_strength );
     43                /* Passwords */
     44                pass1.val('').keyup(function(e) {
     45                        if( ! pass1.is(':focus') || 'text' == pass1.attr('type') ){
     46                             //return;
     47                        }
     48                        check_pass_strength();
     49                        changed = true;
     50                        password_repeat.show();
     51                });
     52                pass2.val('').keyup( check_pass_strength );
     53
     54                $('#generate-password').on('click', function() {
     55                        if( 'profile' == pagenow ) {
     56                                // User's own password
     57                                $(pass1,pass2).attr('type', 'text');
     58                        } else {
     59                                $(pass1,pass2).attr('type', 'password');
     60                        }
     61                        $.post( ajaxurl, { action: 'generate_password' }, function( response ) {
     62                                pass1.val( response ).trigger('keyup');
     63                                pass2.val( response ).trigger('keyup');
     64                                if( 'profile' == pagenow ) {
     65                                        // User's own password
     66                                        hide_password.show();
     67                                } else {
     68                                        hide_password.hide();
     69                                        show_password.show();
     70                                }
     71                                pass1.focus();
     72                        });
     73                });
     74                show_password.on('click', function(e) {
     75                        show_password.hide();
     76                        hide_password.show();
     77                        e.preventDefault();
     78                        $(pass1,pass2).attr('type', 'text');
     79                });
     80                hide_password.on('click', function(e) {
     81                        hide_password.hide();
     82                        show_password.show();
     83                        e.preventDefault();
     84                        $(pass1,pass2).attr('type', 'password');
     85                });
     86
     87
    3988                $('#pass-strength-result').show();
     89
     90                /* End Passwords */
     91
    4092                $('.color-palette').click( function() {
    4193                        $(this).siblings('input[name="admin_color"]').prop('checked', true);
    4294                });
  • wp-admin/user-edit.php

     
    459459        <th><label for="pass1"><?php _e( 'New Password' ); ?></label></th>
    460460        <td>
    461461                <input class="hidden" value=" " /><!-- #24364 workaround -->
    462                 <input type="password" name="pass1" id="pass1" class="regular-text" size="16" value="" autocomplete="off" /><br />
    463                 <span class="description"><?php _e( 'If you would like to change the password type a new one. Otherwise leave this blank.' ); ?></span>
     462        <input type="password" name="pass1" id="pass1" size="16" value="" autocomplete="off" />
     463                <input type="button" name="generate-password" id="generate-password" value="<?php _e( 'Generate Password' ); ?>" class="button hide-if-no-js" />
     464                <a href="#" id="show-password" class="hidden"><?php _e( 'Show Password' ); ?></a>
     465                <a href="#" id="hide-password" class="hidden"><?php _e( 'Hide Password' ); ?></a>
     466                <div id="password-repeat" class="hidden">
     467                        <input name="pass2" type="password" id="pass2" size="16" value="" autocomplete="off" />
     468                        <label for="pass2"><?php _e( 'Repeat New Password' ); ?></label>
     469                        <br />
     470                        <div id="pass-strength-result"><?php _e( 'Strength indicator' ); ?></div>
     471                        <p class="description indicator-hint"><?php _e( 'Hint: The password should be at least seven characters long. To make it stronger, use upper and lower case letters, numbers and symbols like ! " ? $ % ^ &amp; ).' ); ?></p>
     472                </div>
     473                <p class="description"><?php _e( 'If you would like to change the password type or generate a new one. Otherwise leave this blank.' ); ?></p>
     474                <?php if( ! IS_PROFILE_PAGE ) { ?>
     475                <p class="hide-if-no-js">
     476                        <label for="send_password">
     477                                <input type="checkbox" name="send_password" id="send_password" /> <?php _e( 'Send this password to the user by email.' ); ?>
     478                        </label>
     479                        <br/>
     480                        <label for="reset_password">
     481                                <input type="checkbox" name="reset_password" id="reset_password" /> <?php _e( 'Encourage the user to change their password, once logged in.' ); ?>
     482                        </label>
     483                </p>
     484                <?php } ?>
    464485        </td>
    465486</tr>
    466 <tr>
    467         <th scope="row"><label for="pass2"><?php _e( 'Repeat New Password' ); ?></label></th>
    468         <td>
    469         <input name="pass2" type="password" id="pass2" class="regular-text" size="16" value="" autocomplete="off" /><br />
    470         <span class="description" for="pass2"><?php _e( 'Type your new password again.' ); ?></span>
    471         <br />
    472         <div id="pass-strength-result"><?php _e( 'Strength indicator' ); ?></div>
    473         <p class="description indicator-hint"><?php _e( 'Hint: The password should be at least seven characters long. To make it stronger, use upper and lower case letters, numbers and symbols like ! " ? $ % ^ &amp; ).' ); ?></p>
    474         </td>
    475 </tr>
    476487<?php endif; ?>
    477488</table>
    478489
  • wp-content/index.php

     
    11<?php
    22// Silence is golden.
     3?>
     4 No newline at end of file
  • wp-content/themes/twentyeleven/style.css

    Cannot display: file marked as a binary type.
    svn:mime-type = image/png
     
    77Version: 1.7
    88License: GNU General Public License v2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
    10 Tags: dark, light, white, black, gray, one-column, two-columns, left-sidebar, right-sidebar, fixed-layout, responsive-layout, custom-background, custom-colors, custom-header, custom-menu, editor-style, featured-image-header, featured-images, flexible-header, full-width-template, microformats, post-formats, rtl-language-support, sticky-post, theme-options, translation-ready
     10Tags: dark, light, white, black, gray, one-column, two-columns, left-sidebar, right-sidebar, fixed-width, flexible-width, custom-background, custom-colors, custom-header, custom-menu, editor-style, featured-image-header, featured-images, flexible-header, full-width-template, microformats, post-formats, rtl-language-support, sticky-post, theme-options, translation-ready
    1111Text Domain: twentyeleven
    1212*/
    1313
     
    22832283/* =Responsive Structure
    22842284----------------------------------------------- */
    22852285
    2286 /* Does the same thing as <meta name="viewport" content="width=device-width">,
    2287  * but in the future W3C standard way. -ms- prefix is required for IE10+ to
    2288  * render responsive styling in Windows 8 "snapped" views; IE10+ does not honor
    2289  * the meta tag. See http://core.trac.wordpress.org/ticket/25888.
    2290  */
    2291 @-ms-viewport {
    2292         width: device-width;
    2293 }
    2294 @viewport {
    2295         width: device-width;
    2296 }
    2297 
    22982286@media (max-width: 800px) {
    22992287        /* Simplify the basic layout */
    23002288        #main #content {
  • wp-content/themes/twentyten/404.php

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

     
    11<?php
    22/**
    3  * Template for displaying Archive pages
     3 * The 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  * @link http://codex.wordpress.org/Template_Hierarchy
     8 * Learn more: http://codex.wordpress.org/Template_Hierarchy
    99 *
    1010 * @package WordPress
    1111 * @subpackage Twenty_Ten
     
    1818                        <div id="content" role="main">
    1919
    2020<?php
    21         /*
    22          * Queue the first post, that way we know
     21        /* Queue the first post, that way we know
    2322         * what date we're dealing with (if that is the case).
    2423         *
    2524         * We reset this later so we can run the loop
     
    4241                        </h1>
    4342
    4443<?php
    45         /*
    46          * Since we called the_post() above, we need to
     44        /* Since we called the_post() above, we need to
    4745         * rewind the loop back to the beginning that way
    4846         * we can run the loop properly, in full.
    4947         */
    5048        rewind_posts();
    5149
    52         /*
    53          * Run the loop for the archives page to output the posts.
     50        /* Run the loop for the archives page to output the posts.
    5451         * If you want to overload this in a child theme then include a file
    5552         * called loop-archive.php and that will be used instead.
    5653         */
  • wp-content/themes/twentyten/attachment.php

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

     
    11<?php
    22/**
    3  * Template for displaying Author Archive pages
     3 * The template for displaying Author Archive pages.
    44 *
    55 * @package WordPress
    66 * @subpackage Twenty_Ten
     
    1313                        <div id="content" role="main">
    1414
    1515<?php
    16         /*
    17          * Queue the first post, that way we know who
     16        /* Queue the first post, that way we know who
    1817         * the author is when we try to get their name,
    1918         * URL, description, avatar, etc.
    2019         *
     
    3231if ( get_the_author_meta( 'description' ) ) : ?>
    3332                                        <div id="entry-author-info">
    3433                                                <div id="author-avatar">
    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                                                         ?>
     34                                                        <?php echo get_avatar( get_the_author_meta( 'user_email' ), apply_filters( 'twentyten_author_bio_avatar_size', 60 ) ); ?>
    4535                                                </div><!-- #author-avatar -->
    4636                                                <div id="author-description">
    4737                                                        <h2><?php printf( __( 'About %s', 'twentyten' ), get_the_author() ); ?></h2>
     
    5141<?php endif; ?>
    5242
    5343<?php
    54         /*
    55          * Since we called the_post() above, we need to
     44        /* Since we called the_post() above, we need to
    5645         * rewind the loop back to the beginning that way
    5746         * we can run the loop properly, in full.
    5847         */
    5948        rewind_posts();
    6049
    61         /*
    62          * Run the loop for the author archive page to output the authors posts
     50        /* Run the loop for the author archive page to output the authors posts
    6351         * If you want to overload this in a child theme then include a file
    6452         * called loop-author.php and that will be used instead.
    6553         */
  • wp-content/themes/twentyten/category.php

     
    11<?php
    22/**
    3  * Template for displaying Category Archive pages
     3 * The 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                                 /*
    24                                  * Run the loop for the category page to output the posts.
     23                                /* Run the loop for the category page to output the posts.
    2524                                 * If you want to overload this in a child theme then include a file
    2625                                 * called loop-category.php and that will be used instead.
    2726                                 */
  • wp-content/themes/twentyten/comments.php

     
    11<?php
    22/**
    3  * Template for displaying Comments
     3 * The 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                 /*
    22                  * Stop the rest of comments.php from being processed,
     21                /* Stop the rest of comments.php from being processed,
    2322                 * but don't kill the script entirely -- we still have
    2423                 * to fully load the template.
    2524                 */
     
    4645
    4746                        <ol class="commentlist">
    4847                                <?php
    49                                         /*
    50                                          * Loop through and list the comments. Tell wp_list_comments()
     48                                        /* Loop through and list the comments. Tell wp_list_comments()
    5149                                         * to use twentyten_comment() to format the comments.
    5250                                         * If you want to overload this in a child theme then you can
    5351                                         * define twentyten_comment() and that will be used instead.
     
    6563<?php endif; // check for comment navigation ?>
    6664
    6765        <?php
    68         /*
    69          * If there are no comments and comments are closed, let's leave a little note, shall we?
     66        /* If there are no comments and comments are closed, let's leave a little note, shall we?
    7067         * But we only want the note on posts and pages that had comments in the first place.
    7168         */
    7269        if ( ! comments_open() && get_comments_number() ) : ?>
  • wp-content/themes/twentyten/footer.php

     
    11<?php
    22/**
    3  * Template for displaying the footer
     3 * The 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         /*
    20          * A sidebar in the footer? Yep. You can can customize
     19        /* A sidebar in the footer? Yep. You can can customize
    2120         * your footer with four columns of widgets.
    2221         */
    2322        get_sidebar( 'footer' );
     
    3029                        </div><!-- #site-info -->
    3130
    3231                        <div id="site-generator">
    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' ); ?>
     32                                <?php do_action( 'twentyten_credits' ); ?>
    4033                                <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>
    4134                        </div><!-- #site-generator -->
    4235
     
    4639</div><!-- #wrapper -->
    4740
    4841<?php
    49         /*
    50          * Always have wp_footer() just before the closing </body>
     42        /* Always have wp_footer() just before the closing </body>
    5143         * tag of your theme, or you will break many plugins, which
    5244         * generally use this hook to reference JavaScript files.
    5345         */
  • 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' ) ):
    5454/**
    55  * Set up theme defaults and registers support for various WordPress features.
     55 * Sets 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         /*
    88          * Make theme available for translation.
    89          * Translations can be filed in the /languages/ directory
    90          */
     87        // Make theme available for translation
     88        // Translations can be filed in the /languages/ directory
    9189        load_theme_textdomain( 'twentyten', get_template_directory() . '/languages' );
    9290
    9391        // This theme uses wp_nav_menu() in one location.
     
    104102        // The custom header business starts here.
    105103
    106104        $custom_header_support = array(
    107                 /*
    108                  * The default image to use.
    109                  * The %s is a placeholder for the theme template directory URI.
    110                  */
     105                // The default image to use.
     106                // The %s is a placeholder for the theme template directory URI.
    111107                'default-image' => '%s/images/headers/path.jpg',
    112108                // 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                  */
    120109                '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                  */
    128110                'height' => apply_filters( 'twentyten_header_image_height', 198 ),
    129111                // Support flexible heights.
    130112                'flex-height' => true,
     
    147129                add_custom_background();
    148130        }
    149131
    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          */
     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.
    155135        set_post_thumbnail_size( $custom_header_support['width'], $custom_header_support['height'], true );
    156136
    157137        // ... and thus ends the custom header business.
     
    212192
    213193if ( ! function_exists( 'twentyten_admin_header_style' ) ) :
    214194/**
    215  * Style the header image displayed on the Appearance > Header admin panel.
     195 * Styles the header image displayed on the Appearance > Header admin panel.
    216196 *
    217197 * Referenced via add_custom_image_header() in twentyten_setup().
    218198 *
     
    236216endif;
    237217
    238218/**
    239  * Show a home link for our wp_nav_menu() fallback, wp_page_menu().
     219 * Get our wp_nav_menu() fallback, wp_page_menu(), to show a home link.
    240220 *
    241221 * To override this in a child theme, remove the filter and optionally add
    242222 * your own function tied to the wp_page_menu_args filter hook.
    243223 *
    244224 * @since Twenty Ten 1.0
    245  *
    246  * @param array $args An optional array of arguments. @see wp_page_menu()
    247225 */
    248226function twentyten_page_menu_args( $args ) {
    249227        if ( ! isset( $args['show_home'] ) )
     
    253231add_filter( 'wp_page_menu_args', 'twentyten_page_menu_args' );
    254232
    255233/**
    256  * Set the post excerpt length to 40 characters.
     234 * Sets the post excerpt length to 40 characters.
    257235 *
    258236 * To override this length in a child theme, remove the filter and add your own
    259237 * function tied to the excerpt_length filter hook.
    260238 *
    261239 * @since Twenty Ten 1.0
    262  *
    263  * @param int $length The number of excerpt characters.
    264  * @return int The filtered number of excerpt characters.
     240 * @return int
    265241 */
    266242function twentyten_excerpt_length( $length ) {
    267243        return 40;
     
    270246
    271247if ( ! function_exists( 'twentyten_continue_reading_link' ) ) :
    272248/**
    273  * Return a "Continue Reading" link for excerpts.
     249 * Returns a "Continue Reading" link for excerpts
    274250 *
    275251 * @since Twenty Ten 1.0
    276  *
    277  * @return string "Continue Reading" link.
     252 * @return string "Continue Reading" link
    278253 */
    279254function twentyten_continue_reading_link() {
    280255        return ' <a href="'. get_permalink() . '">' . __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'twentyten' ) . '</a>';
     
    282257endif;
    283258
    284259/**
    285  * Replace "[...]" with an ellipsis and twentyten_continue_reading_link().
     260 * Replaces "[...]" (appended to automatically generated excerpts) with an ellipsis and twentyten_continue_reading_link().
    286261 *
    287  * "[...]" is appended to automatically generated excerpts.
    288  *
    289262 * To override this in a child theme, remove the filter and add your own
    290263 * function tied to the excerpt_more filter hook.
    291264 *
    292265 * @since Twenty Ten 1.0
    293  *
    294  * @param string $more The Read More text.
    295  * @return string An ellipsis.
     266 * @return string An ellipsis
    296267 */
    297268function twentyten_auto_excerpt_more( $more ) {
    298269        return ' &hellip;' . twentyten_continue_reading_link();
     
    300271add_filter( 'excerpt_more', 'twentyten_auto_excerpt_more' );
    301272
    302273/**
    303  * Add a pretty "Continue Reading" link to custom post excerpts.
     274 * Adds a pretty "Continue Reading" link to custom post excerpts.
    304275 *
    305276 * To override this link in a child theme, remove the filter and add your own
    306277 * function tied to the get_the_excerpt filter hook.
    307278 *
    308279 * @since Twenty Ten 1.0
    309  *
    310  * @param string $output The "Coninue Reading" link.
    311  * @return string Excerpt with a pretty "Continue Reading" link.
     280 * @return string Excerpt with a pretty "Continue Reading" link
    312281 */
    313282function twentyten_custom_excerpt_more( $output ) {
    314283        if ( has_excerpt() && ! is_attachment() ) {
     
    356325 * Used as a callback by wp_list_comments() for displaying the comments.
    357326 *
    358327 * @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.
    363328 */
    364329function twentyten_comment( $comment, $args, $depth ) {
    365330        $GLOBALS['comment'] = $comment;
     
    411376 * function tied to the init hook.
    412377 *
    413378 * @since Twenty Ten 1.0
    414  *
    415  * @uses register_sidebar()
     379 * @uses register_sidebar
    416380 */
    417381function twentyten_widgets_init() {
    418382        // Area 1, located at the top of the sidebar.
     
    485449add_action( 'widgets_init', 'twentyten_widgets_init' );
    486450
    487451/**
    488  * Remove the default styles that are packaged with the Recent Comments widget.
     452 * Removes the default styles that are packaged with the Recent Comments widget.
    489453 *
    490454 * To override this in a child theme, remove the filter and optionally add your own
    491455 * function tied to the widgets_init action hook.
     
    503467
    504468if ( ! function_exists( 'twentyten_posted_on' ) ) :
    505469/**
    506  * Print HTML with meta information for the current post-date/time and author.
     470 * Prints HTML with meta information for the current post-date/time and author.
    507471 *
    508472 * @since Twenty Ten 1.0
    509473 */
     
    526490
    527491if ( ! function_exists( 'twentyten_posted_in' ) ) :
    528492/**
    529  * Print HTML with meta information for the current post (category, tags and permalink).
     493 * Prints HTML with meta information for the current post (category, tags and permalink).
    530494 *
    531495 * @since Twenty Ten 1.0
    532496 */
     
    552516endif;
    553517
    554518/**
    555  * Retrieve the IDs for images in a gallery.
     519 * Retrieves the IDs for images in a gallery.
    556520 *
    557  * @uses get_post_galleries() First, if available. Falls back to shortcode parsing,
    558  *                            then as last option uses a get_posts() call.
     521 * @uses get_post_galleries() first, if available. Falls back to shortcode parsing,
     522 * then as last option uses a get_posts() call.
    559523 *
    560524 * @since Twenty Ten 1.6.
    561525 *
  • wp-content/themes/twentyten/header.php

     
    11<?php
    22/**
    3  * Header template for our theme
     3 * The Header 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         /*
    41          * We add some JavaScript to pages with the comment form
     40        /* We add some JavaScript to pages with the comment form
    4241         * to support sites with threaded comments (when in use).
    4342         */
    4443        if ( is_singular() && get_option( 'thread_comments' ) )
    4544                wp_enqueue_script( 'comment-reply' );
    4645
    47         /*
    48          * Always have wp_head() just before the closing </head>
     46        /* Always have wp_head() just before the closing </head>
    4947         * tag of your theme, or you will break many plugins, which
    5048         * generally use this hook to add elements to <head> such
    5149         * as styles, scripts, and meta tags.
     
    7068                                <?php
    7169                                        // Compatibility with versions of WordPress prior to 3.4.
    7270                                        if ( function_exists( 'get_custom_header' ) ) {
    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                                                  */
     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.
    7773                                                $header_image_width = get_theme_support( 'custom-header', 'width' );
    7874                                        } else {
    7975                                                $header_image_width = HEADER_IMAGE_WIDTH;
  • wp-content/themes/twentyten/index.php

     
    11<?php
    22/**
    3  * Main template file
     3 * The 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                         /*
    23                          * Run the loop to output the posts.
     22                        /* Run the loop to output the posts.
    2423                         * If you want to overload this in a child theme then include a file
    2524                         * called loop-index.php and that will be used instead.
    2625                         */
  • wp-content/themes/twentyten/languages/twentyten.pot

     
    44msgstr ""
    55"Project-Id-Version: Twenty Ten 1.6\n"
    66"Report-Msgid-Bugs-To: http://wordpress.org/tags/twentyten\n"
    7 "POT-Creation-Date: 2013-10-24 19:42:39+00:00\n"
     7"POT-Creation-Date: 2013-05-22 21:14:02+00:00\n"
    88"MIME-Version: 1.0\n"
    99"Content-Type: text/plain; charset=UTF-8\n"
    1010"Content-Transfer-Encoding: 8bit\n"
     
    2222"will help."
    2323msgstr ""
    2424
    25 #: archive.php:34
     25#: archive.php:33
    2626msgid "Daily Archives: <span>%s</span>"
    2727msgstr ""
    2828
    29 #: archive.php:36
     29#: archive.php:35
    3030msgid "Monthly Archives: <span>%s</span>"
    3131msgstr ""
    3232
    33 #: archive.php:36
     33#: archive.php:35
    3434msgctxt "monthly archives date format"
    3535msgid "F Y"
    3636msgstr ""
    3737
    38 #: archive.php:38
     38#: archive.php:37
    3939msgid "Yearly Archives: <span>%s</span>"
    4040msgstr ""
    4141
    42 #: archive.php:38
     42#: archive.php:37
    4343msgctxt "yearly archives date format"
    4444msgid "Y"
    4545msgstr ""
    4646
    47 #: archive.php:40
     47#: archive.php:39
    4848msgid "Blog Archives"
    4949msgstr ""
    5050
    51 #: author.php:28
     51#: author.php:27
    5252msgid "Author Archives: %s"
    5353msgstr ""
    5454
    55 #: author.php:47 loop-single.php:46
     55#: author.php:37 loop-single.php:43
    5656msgid "About %s"
    5757msgstr ""
    5858
     
    6565"This post is password protected. Enter the password to view any comments."
    6666msgstr ""
    6767
    68 #: comments.php:36
     68#: comments.php:35
    6969msgid "One Response to %2$s"
    7070msgid_plural "%1$s Responses to %2$s"
    7171msgstr[0] ""
    7272msgstr[1] ""
    7373
    74 #: comments.php:42 comments.php:62
     74#: comments.php:41 comments.php:60
    7575msgid "<span class=\"meta-nav\">&larr;</span> Older Comments"
    7676msgstr ""
    7777
    78 #: comments.php:43 comments.php:63
     78#: comments.php:42 comments.php:61
    7979msgid "Newer Comments <span class=\"meta-nav\">&rarr;</span>"
    8080msgstr ""
    8181
    82 #: comments.php:73
     82#: comments.php:70
    8383msgid "Comments are closed."
    8484msgstr ""
    8585
    8686#. #-#-#-#-#  twentyten.pot (Twenty Ten 1.6)  #-#-#-#-#
    8787#. Author URI of the plugin/theme
    88 #: footer.php:40
     88#: footer.php:33
    8989msgid "http://wordpress.org/"
    9090msgstr ""
    9191
    92 #: footer.php:40
     92#: footer.php:33
    9393msgid "Semantic Personal Publishing Platform"
    9494msgstr ""
    9595
    96 #: footer.php:40
     96#: footer.php:33
    9797msgid "Proudly powered by %s."
    9898msgstr ""
    9999
    100 #: functions.php:95
     100#: functions.php:93
    101101msgid "Primary Navigation"
    102102msgstr ""
    103103
    104104#. translators: header image description
    105 #: functions.php:165
     105#: functions.php:145
    106106msgid "Berries"
    107107msgstr ""
    108108
    109109#. translators: header image description
    110 #: functions.php:171
     110#: functions.php:151
    111111msgid "Cherry Blossoms"
    112112msgstr ""
    113113
    114114#. translators: header image description
    115 #: functions.php:177
     115#: functions.php:157
    116116msgid "Concave"
    117117msgstr ""
    118118
    119119#. translators: header image description
    120 #: functions.php:183
     120#: functions.php:163
    121121msgid "Fern"
    122122msgstr ""
    123123
    124124#. translators: header image description
    125 #: functions.php:189
     125#: functions.php:169
    126126msgid "Forest Floor"
    127127msgstr ""
    128128
    129129#. translators: header image description
    130 #: functions.php:195
     130#: functions.php:175
    131131msgid "Inkwell"
    132132msgstr ""
    133133
    134134#. translators: header image description
    135 #: functions.php:201
     135#: functions.php:181
    136136msgid "Path"
    137137msgstr ""
    138138
    139139#. translators: header image description
    140 #: functions.php:207
     140#: functions.php:187
    141141msgid "Sunset"
    142142msgstr ""
    143143
    144 #: functions.php:280 loop-attachment.php:118 loop.php:116 loop.php:144
     144#: functions.php:255 loop-attachment.php:104 loop.php:114 loop.php:142
    145145msgid "Continue reading <span class=\"meta-nav\">&rarr;</span>"
    146146msgstr ""
    147147
    148 #: functions.php:373
     148#: functions.php:338
    149149msgid "%s <span class=\"says\">says:</span>"
    150150msgstr ""
    151151
    152 #: functions.php:376
     152#: functions.php:341
    153153msgid "Your comment is awaiting moderation."
    154154msgstr ""
    155155
    156156#. translators: 1: date, 2: time
    157 #: functions.php:383
     157#: functions.php:348
    158158msgid "%1$s at %2$s"
    159159msgstr ""
    160160
    161 #: functions.php:383 functions.php:400
     161#: functions.php:348 functions.php:365
    162162msgid "(Edit)"
    163163msgstr ""
    164164
    165 #: functions.php:400
     165#: functions.php:365
    166166msgid "Pingback:"
    167167msgstr ""
    168168
    169 #: functions.php:420
     169#: functions.php:384
    170170msgid "Primary Widget Area"
    171171msgstr ""
    172172
    173 #: functions.php:422
     173#: functions.php:386
    174174msgid "Add widgets here to appear in your sidebar."
    175175msgstr ""
    176176
    177 #: functions.php:431
     177#: functions.php:395
    178178msgid "Secondary Widget Area"
    179179msgstr ""
    180180
    181 #: functions.php:433
     181#: functions.php:397
    182182msgid ""
    183183"An optional secondary widget area, displays below the primary widget area in "
    184184"your sidebar."
    185185msgstr ""
    186186
    187 #: functions.php:442
     187#: functions.php:406
    188188msgid "First Footer Widget Area"
    189189msgstr ""
    190190
    191 #: functions.php:444 functions.php:455 functions.php:466 functions.php:477
     191#: functions.php:408 functions.php:419 functions.php:430 functions.php:441
    192192msgid "An optional widget area for your site footer."
    193193msgstr ""
    194194
    195 #: functions.php:453
     195#: functions.php:417
    196196msgid "Second Footer Widget Area"
    197197msgstr ""
    198198
    199 #: functions.php:464
     199#: functions.php:428
    200200msgid "Third Footer Widget Area"
    201201msgstr ""
    202202
    203 #: functions.php:475
     203#: functions.php:439
    204204msgid "Fourth Footer Widget Area"
    205205msgstr ""
    206206
    207 #: functions.php:511
     207#: functions.php:475
    208208msgid ""
    209209"<span class=\"%1$s\">Posted on</span> %2$s <span class=\"meta-sep\">by</"
    210210"span> %3$s"
    211211msgstr ""
    212212
    213 #: functions.php:520 loop-attachment.php:36
     213#: functions.php:484 loop-attachment.php:36
    214214msgid "View all posts by %s"
    215215msgstr ""
    216216
    217 #: functions.php:537
     217#: functions.php:501
    218218msgid ""
    219219"This entry was posted in %1$s and tagged %2$s. Bookmark the <a href=\"%3$s\" "
    220220"title=\"Permalink to %4$s\" rel=\"bookmark\">permalink</a>."
    221221msgstr ""
    222222
    223 #: functions.php:539
     223#: functions.php:503
    224224msgid ""
    225225"This entry was posted in %1$s. Bookmark the <a href=\"%3$s\" title="
    226226"\"Permalink to %4$s\" rel=\"bookmark\">permalink</a>."
    227227msgstr ""
    228228
    229 #: functions.php:541
     229#: functions.php:505
    230230msgid ""
    231231"Bookmark the <a href=\"%3$s\" title=\"Permalink to %4$s\" rel=\"bookmark"
    232232"\">permalink</a>."
     
    236236msgid "Page %s"
    237237msgstr ""
    238238
    239 #: header.php:105
     239#: header.php:101
    240240msgid "Skip to content"
    241241msgstr ""
    242242
     
    265265msgid "Link to full-size image"
    266266msgstr ""
    267267
    268 #: loop-attachment.php:63 loop-attachment.php:125 loop-page.php:30
    269 #: loop-single.php:59 loop.php:101 loop.php:124 loop.php:166
     268#: loop-attachment.php:63 loop-attachment.php:111 loop-page.php:30
     269#: loop-single.php:56 loop.php:99 loop.php:122 loop.php:164
    270270msgid "Edit"
    271271msgstr ""
    272272
    273 #: loop-attachment.php:119 loop-page.php:29 loop-single.php:34 loop.php:145
     273#: loop-attachment.php:105 loop-page.php:29 loop-single.php:34 loop.php:143
    274274msgid "Pages:"
    275275msgstr ""
    276276
    277 #: loop-single.php:21 loop-single.php:64
     277#: loop-single.php:21 loop-single.php:61
    278278msgctxt "Previous post link"
    279279msgid "&larr;"
    280280msgstr ""
    281281
    282 #: loop-single.php:22 loop-single.php:65
     282#: loop-single.php:22 loop-single.php:62
    283283msgctxt "Next post link"
    284284msgid "&rarr;"
    285285msgstr ""
    286286
    287 #: loop-single.php:50
     287#: loop-single.php:47
    288288msgid "View all posts by %s <span class=\"meta-nav\">&rarr;</span>"
    289289msgstr ""
    290290
    291 #: loop.php:25 loop.php:179
     291#: loop.php:25 loop.php:177
    292292msgid "<span class=\"meta-nav\">&larr;</span> Older posts"
    293293msgstr ""
    294294
    295 #: loop.php:26 loop.php:180
     295#: loop.php:26 loop.php:178
    296296msgid "Newer posts <span class=\"meta-nav\">&rarr;</span>"
    297297msgstr ""
    298298
     
    302302"searching will help find a related post."
    303303msgstr ""
    304304
    305 #: loop.php:62 loop.php:96
     305#: loop.php:60 loop.php:94
    306306msgctxt "gallery category slug"
    307307msgid "gallery"
    308308msgstr ""
    309309
    310 #: loop.php:83
     310#: loop.php:81
    311311msgid "This gallery contains <a %1$s>%2$s photo</a>."
    312312msgid_plural "This gallery contains <a %1$s>%2$s photos</a>."
    313313msgstr[0] ""
    314314msgstr[1] ""
    315315
    316 #: loop.php:84
     316#: loop.php:82
    317317msgid "Permalink to %s"
    318318msgstr ""
    319319
    320 #: loop.php:94
     320#: loop.php:92
    321321msgid "View Galleries"
    322322msgstr ""
    323323
    324 #: loop.php:94 loop.php:97
     324#: loop.php:92 loop.php:95
    325325msgid "More Galleries"
    326326msgstr ""
    327327
    328 #: loop.php:97
     328#: loop.php:95
    329329msgid "View posts in the Gallery category"
    330330msgstr ""
    331331
    332 #: loop.php:100 loop.php:123 loop.php:165
     332#: loop.php:98 loop.php:121 loop.php:163
    333333msgid "Leave a comment"
    334334msgstr ""
    335335
    336 #: loop.php:100 loop.php:123 loop.php:165
     336#: loop.php:98 loop.php:121 loop.php:163
    337337msgid "1 Comment"
    338338msgstr ""
    339339
    340 #: loop.php:100 loop.php:123 loop.php:165
     340#: loop.php:98 loop.php:121 loop.php:163
    341341msgid "% Comments"
    342342msgstr ""
    343343
    344 #: loop.php:107
     344#: loop.php:105
    345345msgctxt "asides category slug"
    346346msgid "asides"
    347347msgstr ""
    348348
    349 #: loop.php:152
     349#: loop.php:150
    350350msgid "<span class=\"%1$s\">Posted in</span> %2$s"
    351351msgstr ""
    352352
    353 #: loop.php:161
     353#: loop.php:159
    354354msgid "<span class=\"%1$s\">Tagged</span> %2$s"
    355355msgstr ""
    356356
     
    358358msgid "Search Results for: %s"
    359359msgstr ""
    360360
    361 #: search.php:27
     361#: search.php:26
    362362msgid "Nothing Found"
    363363msgstr ""
    364364
    365 #: search.php:29
     365#: search.php:28
    366366msgid ""
    367367"Sorry, but nothing matched your search criteria. Please try again with some "
    368368"different keywords."
    369369msgstr ""
    370370
    371 #: sidebar.php:28
     371#: sidebar.php:27
    372372msgid "Archives"
    373373msgstr ""
    374374
    375 #: sidebar.php:35
     375#: sidebar.php:34
    376376msgid "Meta"
    377377msgstr ""
    378378
  • 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                                                          */
    9689                                                        $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                                                          */
    10490                                                        $attachment_height = apply_filters( 'twentyten_attachment_height', 900 );
    10591                                                        echo wp_get_attachment_image( $post->ID, array( $attachment_width, $attachment_height ) ); // filterable image width with, essentially, no limit for image height.
    10692                                                ?></a></p>
  • 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
  • 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
    41                                                         /** This filter is documented in author.php */
    42                                                         echo get_avatar( get_the_author_meta( 'user_email' ), apply_filters( 'twentyten_author_bio_avatar_size', 60 ) );
    43                                                         ?>
     40                                                        <?php echo get_avatar( get_the_author_meta( 'user_email' ), apply_filters( 'twentyten_author_bio_avatar_size', 60 ) ); ?>
    4441                                                </div><!-- #author-avatar -->
    4542                                                <div id="author-description">
    4643                                                        <h2><?php printf( __( 'About %s', 'twentyten' ), get_the_author() ); ?></h2>
  • 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         /*
    43          * Start the Loop.
     42        /* Start the Loop.
    4443         *
    4544         * In Twenty Ten we use the same loop in multiple contexts.
    4645         * It is broken into three main parts: when we're displaying
     
    5352         * the rest of the loop that is shared.
    5453         *
    5554         * Without further ado, the loop:
    56          */
    57 ?>
     55         */ ?>
    5856<?php while ( have_posts() ) : the_post(); ?>
    5957
    6058<?php /* How to display posts of the Gallery format. The gallery category is the old way. */ ?>
  • wp-content/themes/twentyten/onecolumn-page.php

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

     
    11<?php
    22/**
    3  * Template for displaying all pages
     3 * The 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                         /*
    22                          * Run the loop to output the page.
     21                        /* Run the loop to output the page.
    2322                         * If you want to overload this in a child theme then include a file
    2423                         * called loop-page.php and that will be used instead.
    2524                         */
  • wp-content/themes/twentyten/search.php

    Cannot display: file marked as a binary type.
    svn:mime-type = image/png
     
    11<?php
    22/**
    3  * Template for displaying Search Results pages
     3 * The 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                                 /*
    19                                  * Run the loop for the search to output the results.
     18                                /* Run the loop for the search to output the results.
    2019                                 * If you want to overload this in a child theme then include a file
    2120                                 * called loop-search.php and that will be used instead.
    2221                                 */
  • 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         /*
    13          * The footer widget area is triggered if any of the areas
     12        /* The footer widget area is triggered if any of the areas
    1413         * have widgets. So let's check that first.
    1514         *
    1615         * If none of the sidebars have widgets, then let's bail early.
  • wp-content/themes/twentyten/sidebar.php

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

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

     
    77Version: 1.6
    88License: GNU General Public License v2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
    10 Tags: black, blue, white, two-columns, fixed-layout, custom-header, custom-background, threaded-comments, sticky-post, translation-ready, microformats, rtl-language-support, editor-style, custom-menu, flexible-header
     10Tags: black, blue, white, two-columns, fixed-width, custom-header, custom-background, threaded-comments, sticky-post, translation-ready, microformats, rtl-language-support, editor-style, custom-menu, flexible-header
    1111Text Domain: twentyten
    1212*/
    1313
  • wp-content/themes/twentyten/tag.php

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

     
    1313                <div id="content" class="site-content" role="main">
    1414
    1515                        <header class="page-header">
    16                                 <h1 class="page-title"><?php _e( 'Not Found', 'twentythirteen' ); ?></h1>
     16                                <h1 class="page-title"><?php _e( 'Not found', 'twentythirteen' ); ?></h1>
    1717                        </header>
    1818
    1919                        <div class="page-wrapper">
  • wp-content/themes/twentythirteen/languages/twentythirteen.pot

     
    1313"Language-Team: LANGUAGE <LL@li.org>\n"
    1414
    1515#: 404.php:16
    16 msgid "Not Found"
     16msgid "Not found"
    1717msgstr ""
    1818
    1919#: 404.php:21
  • wp-content/themes/twentythirteen/style.css

    Cannot display: file marked as a binary type.
    svn:mime-type = image/png
     
    77Version: 1.1
    88License: GNU General Public License v2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
    10 Tags: black, brown, orange, tan, white, yellow, light, one-column, two-columns, right-sidebar, fluid-layout, responsive-layout, custom-header, custom-menu, editor-style, featured-images, microformats, post-formats, rtl-language-support, sticky-post, translation-ready
     10Tags: black, brown, orange, tan, white, yellow, light, one-column, two-columns, right-sidebar, flexible-width, custom-header, custom-menu, editor-style, featured-images, microformats, post-formats, rtl-language-support, sticky-post, translation-ready
    1111Text Domain: twentythirteen
    1212
    1313This theme, like WordPress, is licensed under the GPL.
     
    25772577 * ----------------------------------------------------------------------------
    25782578 */
    25792579
    2580 /* Does the same thing as <meta name="viewport" content="width=device-width">,
    2581  * but in the future W3C standard way. -ms- prefix is required for IE10+ to
    2582  * render responsive styling in Windows 8 "snapped" views; IE10+ does not honor
    2583  * the meta tag. See http://core.trac.wordpress.org/ticket/25888.
    2584  */
    2585 @-ms-viewport {
    2586         width: device-width;
    2587 }
    2588 @viewport {
    2589         width: device-width;
    2590 }
    2591 
    25922580@media (max-width: 1599px) {
    25932581        .site {
    25942582                border: 0;
  • wp-content/themes/twentytwelve/style.css

    Cannot display: file marked as a binary type.
    svn:mime-type = image/png
     
    77Version: 1.3
    88License: GNU General Public License v2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
    10 Tags: light, gray, white, one-column, two-columns, right-sidebar, fluid-layout, responsive-layout, custom-background, custom-header, custom-menu, editor-style, featured-images, flexible-header, full-width-template, microformats, post-formats, rtl-language-support, sticky-post, theme-options, translation-ready
     10Tags: light, gray, white, one-column, two-columns, right-sidebar, flexible-width, custom-background, custom-header, custom-menu, editor-style, featured-images, flexible-header, full-width-template, microformats, post-formats, rtl-language-support, sticky-post, theme-options, translation-ready
    1111Text Domain: twentytwelve
    1212
    1313This theme, like WordPress, is licensed under the GPL.
     
    14321432/* =Media queries
    14331433-------------------------------------------------------------- */
    14341434
    1435 /* Does the same thing as <meta name="viewport" content="width=device-width">,
    1436  * but in the future W3C standard way. -ms- prefix is required for IE10+ to
    1437  * render responsive styling in Windows 8 "snapped" views; IE10+ does not honor
    1438  * the meta tag. See http://core.trac.wordpress.org/ticket/25888.
    1439  */
    1440 @-ms-viewport {
    1441         width: device-width;
    1442 }
    1443 @viewport {
    1444         width: device-width;
    1445 }
    1446 
    14471435/* Minimum width of 600 pixels. */
    14481436@media screen and (min-width: 600px) {
    14491437        .author-avatar {