From 04a149375723eba4c382ffcdd676a6499889ab2a Mon Sep 17 00:00:00 2001 From: Dion Hulse 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: https://develop.svn.wordpress.org/trunk@13109 602fd350-edb4-49c9-b593-d223f7449a82 --- 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 7804e8d1d9..d221ad742b 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 c7bb9c285b..dad5662221 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 5d2062d77c..087004b77c 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 7b8870f4ed..a821456297 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 d691d9e1a3..8339d67572 100644 --- a/wp-content/themes/twentyten/index.php +++ b/wp-content/themes/twentyten/index.php @@ -18,13 +18,13 @@
-