From cba1eb5db49fa80292471e31e9d19be0e17c2915 Mon Sep 17 00:00:00 2001 From: dd32 Date: Sat, 13 Feb 2010 11:09:51 +0000 Subject: [PATCH] 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 git-svn-id: http://svn.automattic.com/wordpress/trunk@13109 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-content/themes/twentyten/archive.php | 4 ++-- wp-content/themes/twentyten/attachment.php | 11 ++++++----- wp-content/themes/twentyten/author.php | 2 +- wp-content/themes/twentyten/category.php | 2 +- wp-content/themes/twentyten/index.php | 6 +++--- wp-content/themes/twentyten/search.php | 2 +- wp-content/themes/twentyten/single.php | 2 +- wp-content/themes/twentyten/tag.php | 2 +- 8 files changed, 16 insertions(+), 15 deletions(-) diff --git a/wp-content/themes/twentyten/archive.php b/wp-content/themes/twentyten/archive.php index 7804e8d1d..d221ad742 100644 --- a/wp-content/themes/twentyten/archive.php +++ b/wp-content/themes/twentyten/archive.php @@ -6,7 +6,7 @@ -

%s', 'twentyten' ), get_the_time(get_option('date_format')) ) ?>

+

%s', 'twentyten' ), get_the_time() ) ?>

%s', 'twentyten' ), get_the_time('F Y') ) ?>

@@ -32,7 +32,7 @@
+ the_permalink(); ?>" title="" rel="bookmark">
diff --git a/wp-content/themes/twentyten/attachment.php b/wp-content/themes/twentyten/attachment.php index c7bb9c285..dad566222 100644 --- a/wp-content/themes/twentyten/attachment.php +++ b/wp-content/themes/twentyten/attachment.php @@ -15,15 +15,16 @@ | - + |\n\t\t\t\t\t\t", "\n\t\t\t\t\t" ) ?>
-ID ) ) : $att_image = wp_get_attachment_image_src( $post->ID, array(640, 640)); ?> -

<?php $post->post_excerpt; ?> -

+ID ) ) : ?> +

ID, array($content_width, $content_width) ); // max $content_width wide or high. + ?>

- guid) ?> +
post_excerpt) ) the_excerpt() ?>
diff --git a/wp-content/themes/twentyten/author.php b/wp-content/themes/twentyten/author.php index 5d2062d77..087004b77 100644 --- a/wp-content/themes/twentyten/author.php +++ b/wp-content/themes/twentyten/author.php @@ -36,7 +36,7 @@
diff --git a/wp-content/themes/twentyten/category.php b/wp-content/themes/twentyten/category.php index 7b8870f4e..a82145629 100644 --- a/wp-content/themes/twentyten/category.php +++ b/wp-content/themes/twentyten/category.php @@ -26,7 +26,7 @@ diff --git a/wp-content/themes/twentyten/index.php b/wp-content/themes/twentyten/index.php index d691d9e1a..8339d6757 100644 --- a/wp-content/themes/twentyten/index.php +++ b/wp-content/themes/twentyten/index.php @@ -18,13 +18,13 @@
-