WordPress.org

Make WordPress Core

Changeset 13111


Ignore:
Timestamp:
02/13/10 11:20:56 (4 years ago)
Author:
dd32
Message:

s/the_time()/get_the_date/ for dates. See #9015

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

Legend:

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

    r13109 r13111  
    77 
    88<?php if ( is_day() ) : ?> 
    9                 <h1 class="page-title"><?php printf( __( 'Daily Archives: <span>%s</span>', 'twentyten' ), get_the_time() ) ?></h1> 
     9                <h1 class="page-title"><?php printf( __( 'Daily Archives: <span>%s</span>', 'twentyten' ), get_the_date() ) ?></h1> 
    1010<?php elseif ( is_month() ) : ?> 
    11                 <h1 class="page-title"><?php printf( __( 'Monthly Archives: <span>%s</span>', 'twentyten' ), get_the_time('F Y') ) ?></h1> 
     11                <h1 class="page-title"><?php printf( __( 'Monthly Archives: <span>%s</span>', 'twentyten' ), get_the_date('F Y') ) ?></h1> 
    1212<?php elseif ( is_year() ) : ?> 
    13                 <h1 class="page-title"><?php printf( __( 'Yearly Archives: <span>%s</span>', 'twentyten' ), get_the_time('Y') ) ?></h1> 
     13                <h1 class="page-title"><?php printf( __( 'Yearly Archives: <span>%s</span>', 'twentyten' ), get_the_date('Y') ) ?></h1> 
    1414<?php elseif ( isset($_GET['paged']) && !empty($_GET['paged']) ) : ?> 
    1515                <h1 class="page-title"><?php _e( 'Blog Archives', 'twentyten' ) ?></h1> 
     
    3333                        <span class="meta-prep meta-prep-author"><?php _e('Posted on ', 'twentyten'); ?></span> 
    3434                        <a href="<?php 
    35         the_permalink(); ?>" title="<?php echo esc_attr( get_the_time('Y-m-d\TH:i:sO') ); ?>" rel="bookmark"><span class="entry-date"><?php the_time(); ?></span></a> 
     35        the_permalink(); ?>" title="<?php echo esc_attr( get_the_time('Y-m-d\TH:i:sO') ); ?>" rel="bookmark"><span class="entry-date"><?php echo get_the_date(); ?></span></a> 
    3636                        <span class="meta-sep"> <?php _e('by ', 'twentyten'); ?> </span> 
    3737                        <span class="author vcard"><a class="url fn n" href="<?php echo get_author_posts_url( $authordata->ID, $authordata->user_nicename ); ?>" title="<?php printf( esc_attr__( 'View all posts by %s', 'twentyten' ), $authordata->display_name ); ?>"><?php the_author(); ?></a></span> 
  • trunk/wp-content/themes/twentyten/attachment.php

    r13109 r13111  
    1616                        <span class="meta-sep"> | </span> 
    1717                        <span class="meta-prep meta-prep-entry-date"><?php _e('Published ', 'twentyten'); ?></span> 
    18                         <span class="entry-date"><abbr class="published" title="<?php the_time('Y-m-d\TH:i:sO') ?>"><?php the_time(); ?></abbr></span> 
     18                        <span class="entry-date"><abbr class="published" title="<?php the_time('Y-m-d\TH:i:sO') ?>"><?php echo get_the_date(); ?></abbr></span> 
    1919                        <?php edit_post_link( __( 'Edit', 'twentyten' ), "<span class=\"meta-sep\">|</span>\n\t\t\t\t\t\t<span class=\"edit-link\">", "</span>\n\t\t\t\t\t" ) ?> 
    2020                    </div><!-- .entry-meta --> 
  • trunk/wp-content/themes/twentyten/author.php

    r13109 r13111  
    3737                        <span class="meta-prep meta-prep-author"><?php _e('Posted on ', 'twentyten'); ?></span> 
    3838                        <a href="<?php 
    39         the_permalink(); ?>" title="<?php the_time('Y-m-d\TH:i:sO') ?>" rel="bookmark"><span class="entry-date"><?php the_time(); ?></span></a> 
     39        the_permalink(); ?>" title="<?php the_time('Y-m-d\TH:i:sO') ?>" rel="bookmark"><span class="entry-date"><?php echo get_the_date(); ?></span></a> 
    4040                    </div><!-- .entry-meta --> 
    4141 
  • trunk/wp-content/themes/twentyten/category.php

    r13109 r13111  
    2727                        <span class="meta-prep meta-prep-author"><?php _e('Posted on ', 'twentyten'); ?></span> 
    2828                        <a href="<?php 
    29         the_permalink(); ?>" title="<?php the_time('Y-m-d\TH:i:sO') ?>" rel="bookmark"><span class="entry-date"><?php the_time(); ?></span></a> 
     29        the_permalink(); ?>" title="<?php the_time('Y-m-d\TH:i:sO') ?>" rel="bookmark"><span class="entry-date"><?php echo get_the_date(); ?></span></a> 
    3030                        <span class="meta-sep"> <?php _e('by ', 'twentyten'); ?> </span> 
    3131                        <span class="author vcard"><a class="url fn n" href="<?php echo get_author_posts_url( $authordata->ID, $authordata->user_nicename ); ?>" title="<?php printf( esc_attr__( 'View all posts by %s', 'twentyten' ), $authordata->display_name ); ?>"><?php the_author(); ?></a></span> 
  • trunk/wp-content/themes/twentyten/index.php

    r13109 r13111  
    1919                <span class="meta-prep meta-prep-author"><?php _e('Posted on ', 'twentyten'); ?></span> 
    2020                <a href="<?php 
    21 the_permalink(); ?>" title="<?php the_time('Y-m-d\TH:i:sO') ?>" rel="bookmark"><span class="entry-date"><?php the_time(); ?></span></a> 
     21the_permalink(); ?>" title="<?php the_time('Y-m-d\TH:i:sO') ?>" rel="bookmark"><span class="entry-date"><?php echo get_the_date(); ?></span></a> 
    2222                <span class="meta-sep"> <?php _e('by ', 'twentyten'); ?> </span> 
    2323                <span class="author vcard"><a class="url fn n" href="<?php echo get_author_posts_url( $authordata->ID, $authordata->user_nicename ); ?>" title="<?php printf( esc_attr__( 'View all posts by %s', 'twentyten' ), $authordata->display_name ); ?>"><?php the_author(); ?></a></span> 
     
    6161                <span class="meta-prep meta-prep-author"><?php _e('Posted on ', 'twentyten'); ?></span> 
    6262                <a href="<?php 
    63 the_permalink(); ?>" title="<?php the_time('Y-m-d\TH:i:sO') ?>" rel="bookmark"><span class="entry-date"><?php the_time(); ?></span></a> 
     63the_permalink(); ?>" title="<?php the_time('Y-m-d\TH:i:sO') ?>" rel="bookmark"><span class="entry-date"><?php echo get_the_date(); ?></span></a> 
    6464                <span class="meta-sep"> <?php _e('by ', 'twentyten'); ?> </span> 
    6565                <span class="author vcard"><a class="url fn n" href="<?php echo get_author_posts_url( $authordata->ID, $authordata->user_nicename ); ?>" title="<?php printf( esc_attr__( 'View all posts by %s', 'twentyten' ), $authordata->display_name ); ?>"><?php the_author(); ?></a></span> 
     
    7878                <span class="meta-prep meta-prep-author"><?php _e('Posted on ', 'twentyten'); ?></span> 
    7979                <a href="<?php 
    80 the_permalink(); ?>" title="<?php the_time('Y-m-d\TH:i:sO') ?>" rel="bookmark"><span class="entry-date"><?php the_time( get_option( 'date_format' ) ); ?></span></a> 
     80the_permalink(); ?>" title="<?php the_time('Y-m-d\TH:i:sO') ?>" rel="bookmark"><span class="entry-date"><?php echo get_the_date(); ?></span></a> 
    8181                <span class="meta-sep"> <?php _e('by ', 'twentyten'); ?> </span> 
    8282                <span class="author vcard"><a class="url fn n" href="<?php echo get_author_posts_url( $authordata->ID, $authordata->user_nicename ); ?>" title="<?php printf( esc_attr__( 'View all posts by %s', 'twentyten' ), $authordata->display_name ); ?>"><?php the_author(); ?></a></span> 
  • trunk/wp-content/themes/twentyten/search.php

    r13109 r13111  
    2424                        <span class="meta-prep meta-prep-author"><?php _e('Posted on ', 'twentyten'); ?></span> 
    2525                        <a href="<?php 
    26         the_permalink(); ?>" title="<?php the_time('Y-m-d\TH:i:sO') ?>" rel="bookmark"><span class="entry-date"><?php the_time(); ?></span></a> 
     26        the_permalink(); ?>" title="<?php the_time('Y-m-d\TH:i:sO') ?>" rel="bookmark"><span class="entry-date"><?php echo get_the_date(); ?></span></a> 
    2727                        <span class="meta-sep"> <?php _e('by ', 'twentyten'); ?> </span> 
    2828                        <span class="author vcard"><a class="url fn n" href="<?php echo get_author_posts_url( $authordata->ID, $authordata->user_nicename ); ?>" title="<?php printf( esc_attr__( 'View all posts by %s', 'twentyten' ), $authordata->display_name ); ?>"><?php the_author(); ?></a></span> 
  • trunk/wp-content/themes/twentyten/single.php

    r13109 r13111  
    1919                        <span class="meta-sep"> <?php _e('on ', 'twentyten'); ?> </span> 
    2020                        <a href="<?php 
    21 the_permalink(); ?>" title="<?php the_time('Y-m-d\TH:i:sO') ?>" rel="bookmark"><span class="entry-date"><?php the_time(); ?></span></a> 
     21the_permalink(); ?>" title="<?php the_time('Y-m-d\TH:i:sO') ?>" rel="bookmark"><span class="entry-date"><?php echo get_the_date(); ?></span></a> 
    2222                        <?php edit_post_link( __( 'Edit', 'twentyten' ), "<span class=\"meta-sep\">|</span>\n\t\t\t\t\t\t<span class=\"edit-link\">", "</span>\n\t\t\t\t\t" ) ?> 
    2323                    </div><!-- .entry-meta --> 
  • trunk/wp-content/themes/twentyten/tag.php

    r13109 r13111  
    2424                    <div class="entry-meta"> 
    2525                        <span class="meta-prep meta-prep-author"><?php _e('Posted on ', 'twentyten'); ?></span> 
    26                         <a href="<?php the_permalink(); ?>" title="<?php the_time('Y-m-d\TH:i:sO') ?>" rel="bookmark"><span class="entry-date"><?php the_time(); ?></span></a> 
     26                        <a href="<?php the_permalink(); ?>" title="<?php the_time('Y-m-d\TH:i:sO') ?>" rel="bookmark"><span class="entry-date"><?php echo get_the_date(); ?></span></a> 
    2727                        <span class="meta-sep"> <?php _e('by ', 'twentyten'); ?> </span> 
    2828                        <span class="author vcard"><a class="url fn n" href="<?php echo get_author_posts_url( $authordata->ID, $authordata->user_nicename ); ?>" title="<?php printf( esc_attr__( 'View all posts by %s', 'twentyten' ), $authordata->display_name ); ?>"><?php the_author(); ?></a></span> 
Note: See TracChangeset for help on using the changeset viewer.