Make WordPress Core

Ticket #15476: twentyten-cleanup.diff

File twentyten-cleanup.diff, 8.0 KB (added by lancewillett, 14 years ago)
  • footer.php

     
    2323?>
    2424
    2525                        <div id="site-info">
    26                                 <a href="<?php echo home_url( '/' ) ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home">
     26                                <a href="<?php echo home_url( '/' ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home">
    2727                                        <?php bloginfo( 'name' ); ?>
    2828                                </a>
    2929                        </div><!-- #site-info -->
    3030
    3131                        <div id="site-generator">
    3232                                <?php do_action( 'twentyten_credits' ); ?>
    33                                 <a href="<?php echo esc_url( __('http://wordpress.org/', 'twentyten') ); ?>"
    34                                                 title="<?php esc_attr_e('Semantic Personal Publishing Platform', 'twentyten'); ?>" rel="generator">
    35                                         <?php printf( __('Proudly powered by %s.', 'twentyten'), 'WordPress' ); ?>
    36                                 </a>
     33                                <a href="<?php echo esc_url( __( 'http://wordpress.org/', 'twentyten' ) ); ?>" title="<?php esc_attr_e( 'Semantic Personal Publishing Platform', 'twentyten' ); ?>" rel="generator"><?php printf( __( 'Proudly powered by %s.', 'twentyten' ), 'WordPress' ); ?></a>
    3734                        </div><!-- #site-generator -->
    3835
    3936                </div><!-- #colophon -->
  • loop-attachment.php

     
    2929
    3030                                        <div class="entry-meta">
    3131                                                <?php
    32                                                         printf(__('<span class="%1$s">By</span> %2$s', 'twentyten'),
     32                                                        printf( __( '<span class="%1$s">By</span> %2$s', 'twentyten' ),
    3333                                                                'meta-prep meta-prep-author',
    3434                                                                sprintf( '<span class="author vcard"><a class="url fn n" href="%1$s" title="%2$s">%3$s</a></span>',
    3535                                                                        get_author_posts_url( get_the_author_meta( 'ID' ) ),
     
    4040                                                ?>
    4141                                                <span class="meta-sep">|</span>
    4242                                                <?php
    43                                                         printf( __('<span class="%1$s">Published</span> %2$s', 'twentyten'),
     43                                                        printf( __( '<span class="%1$s">Published</span> %2$s', 'twentyten' ),
    4444                                                                'meta-prep meta-prep-entry-date',
    4545                                                                sprintf( '<span class="entry-date"><abbr class="published" title="%1$s">%2$s</abbr></span>',
    4646                                                                        esc_attr( get_the_time() ),
     
    5050                                                        if ( wp_attachment_is_image() ) {
    5151                                                                echo ' <span class="meta-sep">|</span> ';
    5252                                                                $metadata = wp_get_attachment_metadata();
    53                                                                 printf( __( 'Full size is %s pixels', 'twentyten'),
     53                                                                printf( __( 'Full size is %s pixels', 'twentyten' ),
    5454                                                                        sprintf( '<a href="%1$s" title="%2$s">%3$s &times; %4$s</a>',
    5555                                                                                wp_get_attachment_url(),
    56                                                                                 esc_attr( __('Link to full-size image', 'twentyten') ),
     56                                                                                esc_attr( __( 'Link to full-size image', 'twentyten' ) ),
    5757                                                                                $metadata['width'],
    5858                                                                                $metadata['height']
    5959                                                                        )
  • rtl.css

     
    9494-------------------------------------------------------------- */
    9595
    9696/* Text elements */
    97 ul {
     97ul, ol {
    9898        margin: 0 1.5em 18px 0;
    9999}
    100100blockquote {
  • index.php

     
    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).
    7  * It is used to display a page when nothing more specific matches a query. 
     7 * It is used to display a page when nothing more specific matches a query.
    88 * E.g., it puts together the home page when no home.php file exists.
    99 * Learn more: http://codex.wordpress.org/Template_Hierarchy
    1010 *
  • functions.php

     
    335335                case 'trackback' :
    336336        ?>
    337337        <li class="post pingback">
    338                 <p><?php _e( 'Pingback:', 'twentyten' ); ?> <?php comment_author_link(); ?><?php edit_comment_link( __('(Edit)', 'twentyten'), ' ' ); ?></p>
     338                <p><?php _e( 'Pingback:', 'twentyten' ); ?> <?php comment_author_link(); ?><?php edit_comment_link( __( '(Edit)', 'twentyten' ), ' ' ); ?></p>
    339339        <?php
    340340                        break;
    341341        endswitch;
  • sidebar.php

     
    1818         * some default sidebar stuff just in case.
    1919         */
    2020        if ( ! dynamic_sidebar( 'primary-widget-area' ) ) : ?>
    21        
     21
    2222                        <li id="search" class="widget-container widget_search">
    2323                                <?php get_search_form(); ?>
    2424                        </li>
  • loop.php

     
    5757
    5858<?php /* How to display posts in the Gallery category. */ ?>
    5959
    60         <?php if ( in_category( _x('gallery', 'gallery category slug', 'twentyten') ) || 'gallery' == get_post_format( $post->ID ) ) : ?>
     60        <?php if ( in_category( _x( 'gallery', 'gallery category slug', 'twentyten' ) ) || 'gallery' == get_post_format( $post->ID ) ) : ?>
    6161                <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
    6262                        <h2 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'twentyten' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
    6363
     
    6868                        <div class="entry-content">
    6969<?php if ( post_password_required() ) : ?>
    7070                                <?php the_content(); ?>
    71 <?php else : ?>                 
    72                                 <?php 
     71<?php else : ?>
     72                                <?php
    7373                                        $images = get_children( array( 'post_parent' => $post->ID, 'post_type' => 'attachment', 'post_mime_type' => 'image', 'orderby' => 'menu_order', 'order' => 'ASC', 'numberposts' => 999 ) );
    7474                                        if ( $images ) :
    7575                                                $total_images = count( $images );
     
    8989                        </div><!-- .entry-content -->
    9090
    9191                        <div class="entry-utility">
    92                                 <a href="<?php echo get_term_link( _x('gallery', 'gallery category slug', 'twentyten'), 'category' ); ?>" title="<?php esc_attr_e( 'View posts in the Gallery category', 'twentyten' ); ?>"><?php _e( 'More Galleries', 'twentyten' ); ?></a>
     92                                <a href="<?php echo get_term_link( _x( 'gallery', 'gallery category slug', 'twentyten' ), 'category' ); ?>" title="<?php esc_attr_e( 'View posts in the Gallery category', 'twentyten' ); ?>"><?php _e( 'More Galleries', 'twentyten' ); ?></a>
    9393                                <span class="meta-sep">|</span>
    9494                                <span class="comments-link"><?php comments_popup_link( __( 'Leave a comment', 'twentyten' ), __( '1 Comment', 'twentyten' ), __( '% Comments', 'twentyten' ) ); ?></span>
    9595                                <?php edit_post_link( __( 'Edit', 'twentyten' ), '<span class="meta-sep">|</span> <span class="edit-link">', '</span>' ); ?>
     
    9898
    9999<?php /* How to display posts in the asides category */ ?>
    100100
    101         <?php elseif ( in_category( _x('asides', 'asides category slug', 'twentyten') ) || 'aside' == get_post_format( $post->ID ) ) : ?>
     101        <?php elseif ( in_category( _x( 'asides', 'asides category slug', 'twentyten' ) ) || 'aside' == get_post_format( $post->ID ) ) : ?>
    102102                <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
    103103
    104104                <?php if ( is_archive() || is_search() ) : // Display excerpts for archives and search. ?>
  • archive.php

     
    3232<?php if ( is_day() ) : ?>
    3333                                <?php printf( __( 'Daily Archives: <span>%s</span>', 'twentyten' ), get_the_date() ); ?>
    3434<?php elseif ( is_month() ) : ?>
    35                                 <?php printf( __( 'Monthly Archives: <span>%s</span>', 'twentyten' ), get_the_date('F Y') ); ?>
     35                                <?php printf( __( 'Monthly Archives: <span>%s</span>', 'twentyten' ), get_the_date( 'F Y' ) ); ?>
    3636<?php elseif ( is_year() ) : ?>
    37                                 <?php printf( __( 'Yearly Archives: <span>%s</span>', 'twentyten' ), get_the_date('Y') ); ?>
     37                                <?php printf( __( 'Yearly Archives: <span>%s</span>', 'twentyten' ), get_the_date( 'Y' ) ); ?>
    3838<?php else : ?>
    3939                                <?php _e( 'Blog Archives', 'twentyten' ); ?>
    4040<?php endif; ?>