From cc6a0a5d419a7b38832dcd40cb008dfb298cfcce Mon Sep 17 00:00:00 2001 From: Dion Hulse Date: Sun, 14 Feb 2010 21:39:20 +0000 Subject: [PATCH] Twentyten whitespace cleanup, Wrap functions in function_exists() call to allow child themes to override them. Props sivel. See #9015 git-svn-id: https://develop.svn.wordpress.org/trunk@13157 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-content/themes/twentyten/attachment.php | 26 ++-- wp-content/themes/twentyten/functions.php | 152 +++++++++++++-------- wp-content/themes/twentyten/header.php | 8 +- 3 files changed, 111 insertions(+), 75 deletions(-) diff --git a/wp-content/themes/twentyten/attachment.php b/wp-content/themes/twentyten/attachment.php index 4d9d5fc9db..3218369ee9 100644 --- a/wp-content/themes/twentyten/attachment.php +++ b/wp-content/themes/twentyten/attachment.php @@ -21,23 +21,23 @@
- -

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

+ +

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

- - - - + + + +
post_excerpt) ) the_excerpt(); ?>
- →', 'twentyten' ) ); ?> - ' . __( 'Pages:', 'twentyten' ) . '&after=
' ); ?> +→', 'twentyten' ) ); ?> +' . __( 'Pages:', 'twentyten' ) . '&after=' ); ?> diff --git a/wp-content/themes/twentyten/functions.php b/wp-content/themes/twentyten/functions.php index 4c22741fee..9a23cceaa3 100644 --- a/wp-content/themes/twentyten/functions.php +++ b/wp-content/themes/twentyten/functions.php @@ -1,16 +1,47 @@ ' . 'Continue reading ' . ''; } -add_filter( 'excerpt_more', 'twentyten_new_excerpt_more' ); +endif; +add_filter( 'excerpt_more', 'twentyten_excerpt_more' ); // Template for comments and pingbacks -function twentyten_list_comment( $comment, $args, $depth ) { - $GLOBALS['comment'] = $comment; ?> - comment_type ) { ?> +if ( ! function_exists( 'twentyten_comment' ) ) : +function twentyten_comment( $comment, $args, $depth ) { + $GLOBALS ['comment'] = $comment; ?> + comment_type ) : ?>
  • id="li-comment-">
    - %s says:'), get_comment_author_link() ); ?> + %s says:' ), get_comment_author_link() ); ?>
    comment_approved == '0' ) : ?>
    - +
    - $depth, 'max_depth' => $args['max_depth'])) ); ?> + $depth, 'max_depth' => $args['max_depth'] ) ) ); ?>
    - +
  • - "; + return "\t\t