From ff5628169e9ac04ad7d339b44028e760a4a660f5 Mon Sep 17 00:00:00 2001 From: Lance Willett Date: Thu, 22 Jan 2015 00:42:44 +0000 Subject: [PATCH] Twenty Ten: fix escaping and minor code style issues. See #29127. Built from https://develop.svn.wordpress.org/trunk@31266 git-svn-id: http://core.svn.wordpress.org/trunk@31247 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-content/themes/twentyten/archive.php | 2 +- wp-content/themes/twentyten/author.php | 4 ++-- wp-content/themes/twentyten/footer.php | 2 +- wp-content/themes/twentyten/functions.php | 2 +- wp-content/themes/twentyten/header.php | 6 +++--- wp-content/themes/twentyten/index.php | 2 +- wp-content/themes/twentyten/loop-attachment.php | 6 +++--- wp-content/themes/twentyten/loop-single.php | 2 +- wp-content/themes/twentyten/loop.php | 6 +++--- wp-content/themes/twentyten/onecolumn-page.php | 2 +- wp-content/themes/twentyten/search.php | 2 +- wp-content/themes/twentyten/style.css | 2 +- wp-content/themes/twentyten/tag.php | 2 +- wp-includes/version.php | 2 +- 14 files changed, 21 insertions(+), 21 deletions(-) diff --git a/wp-content/themes/twentyten/archive.php b/wp-content/themes/twentyten/archive.php index 83d1397f7b..8a8eb2a8b2 100644 --- a/wp-content/themes/twentyten/archive.php +++ b/wp-content/themes/twentyten/archive.php @@ -54,7 +54,7 @@ get_header(); ?> * If you want to overload this in a child theme then include a file * called loop-archive.php and that will be used instead. */ - get_template_part( 'loop', 'archive' ); + get_template_part( 'loop', 'archive' ); ?> diff --git a/wp-content/themes/twentyten/author.php b/wp-content/themes/twentyten/author.php index 8b42064e31..2b221b57f2 100644 --- a/wp-content/themes/twentyten/author.php +++ b/wp-content/themes/twentyten/author.php @@ -25,7 +25,7 @@ get_header(); ?> the_post(); ?> -

" . get_the_author() . "" ); ?>

+

' . get_the_author() . '' ); ?>

* If you want to overload this in a child theme then include a file * called loop-author.php and that will be used instead. */ - get_template_part( 'loop', 'author' ); + get_template_part( 'loop', 'author' ); ?> diff --git a/wp-content/themes/twentyten/footer.php b/wp-content/themes/twentyten/footer.php index de19556f3b..90368af364 100644 --- a/wp-content/themes/twentyten/footer.php +++ b/wp-content/themes/twentyten/footer.php @@ -24,7 +24,7 @@ ?>
- +
diff --git a/wp-content/themes/twentyten/functions.php b/wp-content/themes/twentyten/functions.php index 75b6ba46d4..efd69f260a 100644 --- a/wp-content/themes/twentyten/functions.php +++ b/wp-content/themes/twentyten/functions.php @@ -570,7 +570,7 @@ function twentyten_get_gallery_images() { if ( function_exists( 'get_post_galleries' ) ) { $galleries = get_post_galleries( get_the_ID(), false ); if ( isset( $galleries[0]['ids'] ) ) - $images = explode( ',', $galleries[0]['ids'] ); + $images = explode( ',', $galleries[0]['ids'] ); } else { $pattern = get_shortcode_regex(); preg_match( "/$pattern/s", get_the_content(), $match ); diff --git a/wp-content/themes/twentyten/header.php b/wp-content/themes/twentyten/header.php index 494b866191..1ff063b8f0 100644 --- a/wp-content/themes/twentyten/header.php +++ b/wp-content/themes/twentyten/header.php @@ -30,7 +30,7 @@ // Add a page number if necessary: if ( ( $paged >= 2 || $page >= 2 ) && ! is_404() ) - echo ' | ' . sprintf( __( 'Page %s', 'twentyten' ), max( $paged, $page ) ); + echo esc_html( ' | ' . sprintf( __( 'Page %s', 'twentyten' ), max( $paged, $page ) ) ); ?> @@ -62,7 +62,7 @@ < id="site-title"> - + >
@@ -96,7 +96,7 @@ $header_image_height = HEADER_IMAGE_HEIGHT; } ?> - + diff --git a/wp-content/themes/twentyten/index.php b/wp-content/themes/twentyten/index.php index 4017f15957..0f02b6054c 100644 --- a/wp-content/themes/twentyten/index.php +++ b/wp-content/themes/twentyten/index.php @@ -24,7 +24,7 @@ get_header(); ?> * If you want to overload this in a child theme then include a file * called loop-index.php and that will be used instead. */ - get_template_part( 'loop', 'index' ); + get_template_part( 'loop', 'index' ); ?> diff --git a/wp-content/themes/twentyten/loop-attachment.php b/wp-content/themes/twentyten/loop-attachment.php index 26e213eec0..9c89cbbe03 100644 --- a/wp-content/themes/twentyten/loop-attachment.php +++ b/wp-content/themes/twentyten/loop-attachment.php @@ -80,7 +80,7 @@ $next_attachment_url = get_attachment_link( $attachments[ $k ]->ID ); else // or get the URL of the first image attachment - $next_attachment_url = get_attachment_link( $attachments[ 0 ]->ID ); + $next_attachment_url = get_attachment_link( $attachments[0]->ID ); } else { // or, if there's only 1 image attachment, get the URL of the image $next_attachment_url = wp_get_attachment_url(); @@ -111,10 +111,10 @@ - + -
post_excerpt ) ) the_excerpt(); ?>
+
post_excerpt ) ) the_excerpt(); ?>
→', 'twentyten' ) ); ?> '' ) ); ?> diff --git a/wp-content/themes/twentyten/loop-single.php b/wp-content/themes/twentyten/loop-single.php index a894b37da4..e135660bbd 100644 --- a/wp-content/themes/twentyten/loop-single.php +++ b/wp-content/themes/twentyten/loop-single.php @@ -46,7 +46,7 @@

diff --git a/wp-content/themes/twentyten/loop.php b/wp-content/themes/twentyten/loop.php index 2d675b6684..bae55f0462 100644 --- a/wp-content/themes/twentyten/loop.php +++ b/wp-content/themes/twentyten/loop.php @@ -81,7 +81,7 @@

%2$s photo.', 'This gallery contains %2$s photos.', $total_images, 'twentyten' ), - 'href="' . get_permalink() . '" title="' . esc_attr( sprintf( __( 'Permalink to %s', 'twentyten' ), the_title_attribute( 'echo=0' ) ) ) . '" rel="bookmark"', + 'href="' . esc_url( get_permalink() ) . '" title="' . esc_attr( sprintf( __( 'Permalink to %s', 'twentyten' ), the_title_attribute( 'echo=0' ) ) ) . '" rel="bookmark"', number_format_i18n( $total_images ) ); ?>

@@ -91,10 +91,10 @@
ID ) ) : ?> - + | term_id ) ) : ?> - + | diff --git a/wp-content/themes/twentyten/onecolumn-page.php b/wp-content/themes/twentyten/onecolumn-page.php index 5693232aa1..457e04bbda 100644 --- a/wp-content/themes/twentyten/onecolumn-page.php +++ b/wp-content/themes/twentyten/onecolumn-page.php @@ -23,7 +23,7 @@ get_header(); ?> * If you want to overload this in a child theme then include a file * called loop-page.php and that will be used instead. */ - get_template_part( 'loop', 'page' ); + get_template_part( 'loop', 'page' ); ?>
diff --git a/wp-content/themes/twentyten/search.php b/wp-content/themes/twentyten/search.php index 973ca77a44..a3fa97bd67 100644 --- a/wp-content/themes/twentyten/search.php +++ b/wp-content/themes/twentyten/search.php @@ -20,7 +20,7 @@ get_header(); ?> * If you want to overload this in a child theme then include a file * called loop-search.php and that will be used instead. */ - get_template_part( 'loop', 'search' ); + get_template_part( 'loop', 'search' ); ?>
diff --git a/wp-content/themes/twentyten/style.css b/wp-content/themes/twentyten/style.css index 9f6668ff74..9a3749fbd7 100644 --- a/wp-content/themes/twentyten/style.css +++ b/wp-content/themes/twentyten/style.css @@ -7,7 +7,7 @@ Author URI: http://wordpress.org/ Version: 1.8 License: GNU General Public License v2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html -Tags: black, blue, white, two-columns, fixed-layout, custom-header, custom-background, threaded-comments, sticky-post, translation-ready, microformats, rtl-language-support, editor-style, custom-menu, flexible-header +Tags: black, blue, white, two-columns, fixed-layout, custom-header, custom-background, threaded-comments, sticky-post, translation-ready, microformats, rtl-language-support, editor-style, custom-menu, flexible-header, featured-images, featured-image-header Text Domain: twentyten */ diff --git a/wp-content/themes/twentyten/tag.php b/wp-content/themes/twentyten/tag.php index 7ad81db6bd..01ae6cd36c 100644 --- a/wp-content/themes/twentyten/tag.php +++ b/wp-content/themes/twentyten/tag.php @@ -22,7 +22,7 @@ get_header(); ?> * If you want to overload this in a child theme then include a file * called loop-tag.php and that will be used instead. */ - get_template_part( 'loop', 'tag' ); +get_template_part( 'loop', 'tag' ); ?>
diff --git a/wp-includes/version.php b/wp-includes/version.php index 4b9e898c72..1615098876 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.2-alpha-31265'; +$wp_version = '4.2-alpha-31266'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.