Make WordPress Core

Changeset 16480


Ignore:
Timestamp:
11/19/2010 05:37:47 AM (11 years ago)
Author:
nacin
Message:

Twenty Ten code cleanups. props lancewillett, fixes #15476.

Location:
trunk/wp-content/themes/twentyten
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-content/themes/twentyten/archive.php

    r15226 r16480  
    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' ); ?>
  • trunk/wp-content/themes/twentyten/footer.php

    r14786 r16480  
    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>
     
    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
  • trunk/wp-content/themes/twentyten/functions.php

    r16197 r16480  
    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;
  • trunk/wp-content/themes/twentyten/index.php

    r15226 r16480  
    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
  • trunk/wp-content/themes/twentyten/loop-attachment.php

    r15762 r16480  
    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>',
     
    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>',
     
    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']
  • trunk/wp-content/themes/twentyten/loop.php

    r16334 r16480  
    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>
     
    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 ) :
     
    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>
     
    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
  • trunk/wp-content/themes/twentyten/rtl.css

    r15658 r16480  
    9595
    9696/* Text elements */
    97 ul {
     97ul, ol {
    9898    margin: 0 1.5em 18px 0;
    9999}
  • trunk/wp-content/themes/twentyten/sidebar.php

    r14708 r16480  
    1919     */
    2020    if ( ! dynamic_sidebar( 'primary-widget-area' ) ) : ?>
    21    
     21
    2222            <li id="search" class="widget-container widget_search">
    2323                <?php get_search_form(); ?>
Note: See TracChangeset for help on using the changeset viewer.