Make WordPress Core


Ignore:
Timestamp:
02/13/2010 11:09:51 AM (15 years ago)
Author:
dd32
Message:

Remove extra get_option() calls (the functions default to that), Use the Media API for attachment image HTML, Replace deprecated function use(1.2~2.9 deprecated). See #9015

File:
1 edited

Legend:

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

    r13105 r13109  
    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( get_option( 'date_format' ) ); ?></span></a>
     21the_permalink(); ?>" title="<?php the_time('Y-m-d\TH:i:sO') ?>" rel="bookmark"><span class="entry-date"><?php the_time(); ?></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>
     
    2525
    2626            <div class="entry-content">
    27                 <div class="gallery-thumb"><a class="size-thumbnail" href="<?php permalink_link() ?>"><?php
     27                <div class="gallery-thumb"><a class="size-thumbnail" href="<?php the_permalink() ?>"><?php
    2828                $images =& get_children( array('post_parent' => $post->ID, 'post_type' => 'attachment', 'post_mime_type' => 'image', 'orderby' => 'menu_order', 'order' => 'ASC', 'numberposts' => 999) );
    2929                $total_images = count($images);
     
    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( get_option( 'date_format' ) ); ?></span></a>
     63the_permalink(); ?>" title="<?php the_time('Y-m-d\TH:i:sO') ?>" rel="bookmark"><span class="entry-date"><?php the_time(); ?></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>
Note: See TracChangeset for help on using the changeset viewer.