From 37ea642f69ddac235f7150659582c1d7cfa537da Mon Sep 17 00:00:00 2001 From: Lance Willett Date: Tue, 20 Jan 2015 19:02:53 +0000 Subject: [PATCH] Twenty Fourteen: fix escaping and minor code style issues. See #29127. git-svn-id: https://develop.svn.wordpress.org/trunk@31250 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-content/themes/twentyfourteen/comments.php | 6 +++--- src/wp-content/themes/twentyfourteen/featured-content.php | 2 +- src/wp-content/themes/twentyfourteen/image.php | 2 +- src/wp-content/themes/twentyfourteen/inc/custom-header.php | 2 +- .../themes/twentyfourteen/inc/featured-content.php | 4 ++-- src/wp-content/themes/twentyfourteen/inc/widgets.php | 4 ++-- .../themes/twentyfourteen/js/keyboard-image-navigation.js | 2 +- src/wp-content/themes/twentyfourteen/js/slider.js | 2 +- 8 files changed, 12 insertions(+), 12 deletions(-) diff --git a/src/wp-content/themes/twentyfourteen/comments.php b/src/wp-content/themes/twentyfourteen/comments.php index 9802a2440a..781c06d4c7 100644 --- a/src/wp-content/themes/twentyfourteen/comments.php +++ b/src/wp-content/themes/twentyfourteen/comments.php @@ -40,9 +40,9 @@ if ( post_password_required() ) {
    'ol', - 'short_ping' => true, - 'avatar_size'=> 34, + 'style' => 'ol', + 'short_ping' => true, + 'avatar_size' => 34, ) ); ?>
diff --git a/src/wp-content/themes/twentyfourteen/featured-content.php b/src/wp-content/themes/twentyfourteen/featured-content.php index 1a623acfd8..c56edf3e24 100644 --- a/src/wp-content/themes/twentyfourteen/featured-content.php +++ b/src/wp-content/themes/twentyfourteen/featured-content.php @@ -22,7 +22,7 @@ foreach ( (array) $featured_posts as $order => $post ) : setup_postdata( $post ); - // Include the featured content template. + // Include the featured content template. get_template_part( 'content', 'featured-post' ); endforeach; diff --git a/src/wp-content/themes/twentyfourteen/image.php b/src/wp-content/themes/twentyfourteen/image.php index 4e7fb82ac2..83ac67f68d 100644 --- a/src/wp-content/themes/twentyfourteen/image.php +++ b/src/wp-content/themes/twentyfourteen/image.php @@ -28,7 +28,7 @@ get_header(); - × + × post_parent ); ?> ', '' ); ?> diff --git a/src/wp-content/themes/twentyfourteen/inc/custom-header.php b/src/wp-content/themes/twentyfourteen/inc/custom-header.php index c922e641b9..287b10682d 100644 --- a/src/wp-content/themes/twentyfourteen/inc/custom-header.php +++ b/src/wp-content/themes/twentyfourteen/inc/custom-header.php @@ -140,7 +140,7 @@ function twentyfourteen_admin_header_image() { -

onclick="return false;" href="" tabindex="-1">

+

$term ) { + foreach ( $terms as $order => $term ) { if ( ( $settings['tag-id'] === $term->term_id || $settings['tag-name'] === $term->name ) && 'post_tag' === $term->taxonomy ) { unset( $terms[ $order ] ); } @@ -369,7 +369,7 @@ class Featured_Content { } $settings = self::get_setting(); - foreach( $terms as $order => $term ) { + foreach ( $terms as $order => $term ) { if ( ( $settings['tag-id'] === $term->term_id || $settings['tag-name'] === $term->name ) && 'post_tag' === $term->taxonomy ) { unset( $terms[ $term->term_id ] ); } diff --git a/src/wp-content/themes/twentyfourteen/inc/widgets.php b/src/wp-content/themes/twentyfourteen/inc/widgets.php index 9bd1e79efd..c495d2924d 100644 --- a/src/wp-content/themes/twentyfourteen/inc/widgets.php +++ b/src/wp-content/themes/twentyfourteen/inc/widgets.php @@ -107,7 +107,7 @@ class Twenty_Fourteen_Ephemera_Widget extends WP_Widget { echo $args['before_widget']; ?>

- +

    @@ -261,7 +261,7 @@ class Twenty_Fourteen_Ephemera_Widget extends WP_Widget {