Make WordPress Core


Ignore:
Timestamp:
03/16/2010 08:17:22 PM (16 years ago)
Author:
iammattthomas
Message:

Coding standards cleanup in twentyten, see #9015. Props sivel

File:
1 edited

Legend:

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

    r13498 r13720  
    66<?php the_post(); ?>
    77
    8                 <p class="page-title"><a href="<?php echo get_permalink($post->post_parent); ?>" title="<?php printf( esc_attr__( 'Return to %s', 'twentyten' ), esc_html( get_the_title($post->post_parent), 1 ) ); ?>" rel="gallery">&larr; <?php echo get_the_title($post->post_parent); ?></a></p>
     8                <p class="page-title"><a href="<?php echo get_permalink( $post->post_parent ); ?>" title="<?php printf( esc_attr__( 'Return to %s', 'twentyten' ), esc_html( get_the_title( $post->post_parent ), 1 ) ); ?>" rel="gallery">&larr; <?php echo get_the_title( $post->post_parent ); ?></a></p>
    99
    1010                <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
     
    1414                        <?php
    1515                            printf(__( '<span class="meta-prep meta-prep-author"> By </span> <span class="author vcard"><a class="url fn n" href="%1$s" title="%2$s">%3$s</a></span>', 'twentyten'),
    16                                 get_author_posts_url( get_the_author_meta('ID') ),
     16                                get_author_posts_url( get_the_author_meta( 'ID' ) ),
    1717                                sprintf( esc_attr__( 'View all posts by %s', 'twentyten' ), get_the_author() ),
    1818                                get_the_author()
     
    2222                        <?php
    2323                            printf( __( '<span class="meta-prep meta-prep-entry-date">Published </span> <span class="entry-date"><abbr class="published" title="%1$s">%2$s</abbr></span>', 'twentyten'),
    24                                 esc_attr(get_the_time()),
     24                                esc_attr( get_the_time() ),
    2525                                get_the_date()
    2626                            );
     
    4444<?php endif; ?>
    4545                        </div>
    46                         <div class="entry-caption"><?php if ( !empty($post->post_excerpt) ) the_excerpt(); ?></div>
     46                        <div class="entry-caption"><?php if ( ! empty( $post->post_excerpt ) ) the_excerpt(); ?></div>
    4747
    4848<?php the_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'twentyten' )  ); ?>
     
    6161                        printf(
    6262                            $utility_text,
    63                             get_the_category_list(', '),
     63                            get_the_category_list( ', ' ),
    6464                            $tag_list,
    6565                            get_permalink(),
    66                             the_title_attribute('echo=0'),
     66                            the_title_attribute( 'echo=0' ),
    6767                            get_post_comments_feed_link()
    6868                        );
     
    7171<?php if ( comments_open() && pings_open() ) : // Comments and trackbacks open ?>
    7272                        <?php printf( __( '<a class="comment-link" href="#respond" title="Post a comment">Post a comment</a> or leave a trackback: <a class="trackback-link" href="%s" title="Trackback URL for your post" rel="trackback">Trackback URL</a>.', 'twentyten' ), get_trackback_url() ); ?>
    73 <?php elseif ( !comments_open() && pings_open() ) : // Only trackbacks open ?>
     73<?php elseif ( ! comments_open() && pings_open() ) : // Only trackbacks open ?>
    7474                        <?php printf( __( 'Comments are closed, but you can leave a trackback: <a class="trackback-link" href="%s" title="Trackback URL for your post" rel="trackback">Trackback URL</a>.', 'twentyten' ), get_trackback_url() ); ?>
    75 <?php elseif ( comments_open() && !pings_open() ) : // Only comments open ?>
     75<?php elseif ( comments_open() && ! pings_open() ) : // Only comments open ?>
    7676                        <?php _e( 'Trackbacks are closed, but you can <a class="comment-link" href="#respond" title="Post a comment">post a comment</a>.', 'twentyten' ); ?>
    77 <?php elseif ( !comments_open() && !pings_open() ) : // Comments and trackbacks closed ?>
     77<?php elseif ( ! comments_open() && ! pings_open() ) : // Comments and trackbacks closed ?>
    7878                        <?php _e( 'Both comments and trackbacks are currently closed.', 'twentyten' ); ?>
    7979<?php endif; ?>
Note: See TracChangeset for help on using the changeset viewer.