<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[26260] trunk/src/wp-content/themes/twentyfourteen: Twenty Fourteen: updates all PHP files to meet new brace style in WP coding standards.</title>
</head>
<body>
<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; }
#msg dl a { font-weight: bold}
#msg dl a:link { color:#fc3; }
#msg dl a:active { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta">
<dt>Revision</dt> <dd><a href="http://core.trac.wordpress.org/changeset/26260">26260</a></dd>
<dt>Author</dt> <dd>lancewillett</dd>
<dt>Date</dt> <dd>2013-11-18 23:11:01 +0000 (Mon, 18 Nov 2013)</dd>
</dl>
<h3>Log Message</h3>
<pre>Twenty Fourteen: updates all PHP files to meet new brace style in WP coding standards. Props rickalee for initial patch, fixes <a href="http://core.trac.wordpress.org/ticket/26093">#26093</a>.</pre>
<h3>Modified Paths</h3>
<ul>
<li><a href="#trunksrcwpcontentthemestwentyfourteencommentsphp">trunk/src/wp-content/themes/twentyfourteen/comments.php</a></li>
<li><a href="#trunksrcwpcontentthemestwentyfourteencontentfeaturedpostphp">trunk/src/wp-content/themes/twentyfourteen/content-featured-post.php</a></li>
<li><a href="#trunksrcwpcontentthemestwentyfourteenfunctionsphp">trunk/src/wp-content/themes/twentyfourteen/functions.php</a></li>
<li><a href="#trunksrcwpcontentthemestwentyfourteeninccustomizerphp">trunk/src/wp-content/themes/twentyfourteen/inc/customizer.php</a></li>
<li><a href="#trunksrcwpcontentthemestwentyfourteenincfeaturedcontentphp">trunk/src/wp-content/themes/twentyfourteen/inc/featured-content.php</a></li>
<li><a href="#trunksrcwpcontentthemestwentyfourteeninctemplatetagsphp">trunk/src/wp-content/themes/twentyfourteen/inc/template-tags.php</a></li>
<li><a href="#trunksrcwpcontentthemestwentyfourteenincwidgetsphp">trunk/src/wp-content/themes/twentyfourteen/inc/widgets.php</a></li>
<li><a href="#trunksrcwpcontentthemestwentyfourteenindexphp">trunk/src/wp-content/themes/twentyfourteen/index.php</a></li>
<li><a href="#trunksrcwpcontentthemestwentyfourteenpagetemplatescontributorsphp">trunk/src/wp-content/themes/twentyfourteen/page-templates/contributors.php</a></li>
<li><a href="#trunksrcwpcontentthemestwentyfourteenpagetemplatesfullwidthphp">trunk/src/wp-content/themes/twentyfourteen/page-templates/full-width.php</a></li>
<li><a href="#trunksrcwpcontentthemestwentyfourteenpagephp">trunk/src/wp-content/themes/twentyfourteen/page.php</a></li>
<li><a href="#trunksrcwpcontentthemestwentyfourteensidebarcontentphp">trunk/src/wp-content/themes/twentyfourteen/sidebar-content.php</a></li>
<li><a href="#trunksrcwpcontentthemestwentyfourteensidebarfooterphp">trunk/src/wp-content/themes/twentyfourteen/sidebar-footer.php</a></li>
<li><a href="#trunksrcwpcontentthemestwentyfourteensinglephp">trunk/src/wp-content/themes/twentyfourteen/single.php</a></li>
</ul>
</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunksrcwpcontentthemestwentyfourteencommentsphp"></a>
<div class="modfile"><h4>Modified: trunk/src/wp-content/themes/twentyfourteen/comments.php (26259 => 26260)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/src/wp-content/themes/twentyfourteen/comments.php 2013-11-18 23:05:31 UTC (rev 26259)
+++ trunk/src/wp-content/themes/twentyfourteen/comments.php 2013-11-18 23:11:01 UTC (rev 26260)
</span><span class="lines">@@ -13,8 +13,9 @@
</span><span class="cx"> * If the current post is protected by a password and the visitor has not yet
</span><span class="cx"> * entered the password we will return early without loading the comments.
</span><span class="cx"> */
</span><del>-if ( post_password_required() )
</del><ins>+if ( post_password_required() ) {
</ins><span class="cx"> return;
</span><ins>+}
</ins><span class="cx"> ?>
</span><span class="cx">
</span><span class="cx"> <div id="comments" class="comments-area">
</span></span></pre></div>
<a id="trunksrcwpcontentthemestwentyfourteencontentfeaturedpostphp"></a>
<div class="modfile"><h4>Modified: trunk/src/wp-content/themes/twentyfourteen/content-featured-post.php (26259 => 26260)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/src/wp-content/themes/twentyfourteen/content-featured-post.php 2013-11-18 23:05:31 UTC (rev 26259)
+++ trunk/src/wp-content/themes/twentyfourteen/content-featured-post.php 2013-11-18 23:11:01 UTC (rev 26260)
</span><span class="lines">@@ -12,10 +12,11 @@
</span><span class="cx"> <a class="post-thumbnail" href="<?php the_permalink(); ?>" rel="<?php the_ID(); ?>">
</span><span class="cx"> <?php
</span><span class="cx"> if ( has_post_thumbnail() ) :
</span><del>- if ( 'grid' == get_theme_mod( 'featured_content_layout' ) )
</del><ins>+ if ( 'grid' == get_theme_mod( 'featured_content_layout' ) ) {
</ins><span class="cx"> the_post_thumbnail();
</span><del>- else
</del><ins>+ } else {
</ins><span class="cx"> the_post_thumbnail( 'twentyfourteen-full-width' );
</span><ins>+ }
</ins><span class="cx"> endif;
</span><span class="cx"> ?>
</span><span class="cx"> </a>
</span></span></pre></div>
<a id="trunksrcwpcontentthemestwentyfourteenfunctionsphp"></a>
<div class="modfile"><h4>Modified: trunk/src/wp-content/themes/twentyfourteen/functions.php (26259 => 26260)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/src/wp-content/themes/twentyfourteen/functions.php 2013-11-18 23:05:31 UTC (rev 26259)
+++ trunk/src/wp-content/themes/twentyfourteen/functions.php 2013-11-18 23:11:01 UTC (rev 26260)
</span><span class="lines">@@ -31,14 +31,16 @@
</span><span class="cx"> *
</span><span class="cx"> * @since Twenty Fourteen 1.0
</span><span class="cx"> */
</span><del>-if ( ! isset( $content_width ) )
</del><ins>+if ( ! isset( $content_width ) ) {
</ins><span class="cx"> $content_width = 474;
</span><ins>+}
</ins><span class="cx">
</span><span class="cx"> /**
</span><span class="cx"> * Twenty Fourteen only works in WordPress 3.6 or later.
</span><span class="cx"> */
</span><del>-if ( version_compare( $GLOBALS['wp_version'], '3.6', '<' ) )
</del><ins>+if ( version_compare( $GLOBALS['wp_version'], '3.6', '<' ) ) {
</ins><span class="cx"> require get_template_directory() . '/inc/back-compat.php';
</span><ins>+}
</ins><span class="cx">
</span><span class="cx"> if ( ! function_exists( 'twentyfourteen_setup' ) ) :
</span><span class="cx"> /**
</span><span class="lines">@@ -122,8 +124,9 @@
</span><span class="cx"> * @return void
</span><span class="cx"> */
</span><span class="cx"> function twentyfourteen_content_width() {
</span><del>- if ( is_attachment() && wp_attachment_is_image() )
</del><ins>+ if ( is_attachment() && wp_attachment_is_image() ) {
</ins><span class="cx"> $GLOBALS['content_width'] = 810;
</span><ins>+ }
</ins><span class="cx"> }
</span><span class="cx"> add_action( 'template_redirect', 'twentyfourteen_content_width' );
</span><span class="cx">
</span><span class="lines">@@ -203,8 +206,9 @@
</span><span class="cx"> * Translators: If there are characters in your language that are not supported
</span><span class="cx"> * by Lato, translate this to 'off'. Do not translate into your own language.
</span><span class="cx"> */
</span><del>- if ( 'off' !== _x( 'on', 'Lato font: on or off', 'twentyfourteen' ) )
</del><ins>+ if ( 'off' !== _x( 'on', 'Lato font: on or off', 'twentyfourteen' ) ) {
</ins><span class="cx"> $font_url = add_query_arg( 'family', urlencode( 'Lato:300,400,700,900,300italic,400italic,700italic' ), "//fonts.googleapis.com/css" );
</span><ins>+ }
</ins><span class="cx">
</span><span class="cx"> return $font_url;
</span><span class="cx"> }
</span><span class="lines">@@ -230,14 +234,17 @@
</span><span class="cx"> wp_enqueue_style( 'twentyfourteen-ie', get_template_directory_uri() . '/css/ie.css', array( 'twentyfourteen-style' ), '20131110' );
</span><span class="cx"> wp_style_add_data( 'twentyfourteen-ie', 'conditional', 'lt IE 9' );
</span><span class="cx">
</span><del>- if ( is_singular() && comments_open() && get_option( 'thread_comments' ) )
</del><ins>+ if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) {
</ins><span class="cx"> wp_enqueue_script( 'comment-reply' );
</span><ins>+ }
</ins><span class="cx">
</span><del>- if ( is_singular() && wp_attachment_is_image() )
</del><ins>+ if ( is_singular() && wp_attachment_is_image() ) {
</ins><span class="cx"> wp_enqueue_script( 'twentyfourteen-keyboard-image-navigation', get_template_directory_uri() . '/js/keyboard-image-navigation.js', array( 'jquery' ), '20130402' );
</span><ins>+ }
</ins><span class="cx">
</span><del>- if ( is_active_sidebar( 'sidebar-3' ) )
</del><ins>+ if ( is_active_sidebar( 'sidebar-3' ) ) {
</ins><span class="cx"> wp_enqueue_script( 'jquery-masonry' );
</span><ins>+ }
</ins><span class="cx">
</span><span class="cx"> if ( is_front_page() && 'slider' == get_theme_mod( 'featured_content_layout' ) ) {
</span><span class="cx"> wp_enqueue_script( 'twentyfourteen-slider', get_template_directory_uri() . '/js/slider.js', array( 'jquery' ), '20131109', true );
</span><span class="lines">@@ -303,12 +310,14 @@
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> // get the URL of the next image attachment...
</span><del>- if ( $next_id )
</del><ins>+ if ( $next_id ) {
</ins><span class="cx"> $next_attachment_url = get_attachment_link( $next_id );
</span><ins>+ }
</ins><span class="cx">
</span><span class="cx"> // or get the URL of the first image attachment.
</span><del>- else
</del><ins>+ else {
</ins><span class="cx"> $next_attachment_url = get_attachment_link( array_shift( $attachment_ids ) );
</span><ins>+ }
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> printf( '<a href="%1$s" rel="attachment">%2$s</a>',
</span><span class="lines">@@ -337,8 +346,9 @@
</span><span class="cx"> $post_count = count_user_posts( $contributor_id );
</span><span class="cx">
</span><span class="cx"> // Move on if user has not published a post (yet).
</span><del>- if ( ! $post_count )
</del><ins>+ if ( ! $post_count ) {
</ins><span class="cx"> continue;
</span><ins>+ }
</ins><span class="cx"> ?>
</span><span class="cx">
</span><span class="cx"> <div class="contributor">
</span><span class="lines">@@ -379,33 +389,40 @@
</span><span class="cx"> * @return array The filtered body class list.
</span><span class="cx"> */
</span><span class="cx"> function twentyfourteen_body_classes( $classes ) {
</span><del>- if ( is_multi_author() )
</del><ins>+ if ( is_multi_author() ) {
</ins><span class="cx"> $classes[] = 'group-blog';
</span><ins>+ }
</ins><span class="cx">
</span><del>- if ( get_header_image() )
</del><ins>+ if ( get_header_image() ) {
</ins><span class="cx"> $classes[] = 'header-image';
</span><del>- else
</del><ins>+ } else {
</ins><span class="cx"> $classes[] = 'masthead-fixed';
</span><ins>+ }
</ins><span class="cx">
</span><del>- if ( is_archive() || is_search() || is_home() )
</del><ins>+ if ( is_archive() || is_search() || is_home() ) {
</ins><span class="cx"> $classes[] = 'list-view';
</span><ins>+ }
</ins><span class="cx">
</span><span class="cx"> if ( ( ! is_active_sidebar( 'sidebar-2' ) )
</span><span class="cx"> || is_page_template( 'page-templates/full-width.php' )
</span><span class="cx"> || is_page_template( 'page-templates/contributors.php' )
</span><del>- || is_attachment() )
</del><ins>+ || is_attachment() ) {
</ins><span class="cx"> $classes[] = 'full-width';
</span><ins>+ }
</ins><span class="cx">
</span><del>- if ( is_active_sidebar( 'sidebar-3' ) )
</del><ins>+ if ( is_active_sidebar( 'sidebar-3' ) ) {
</ins><span class="cx"> $classes[] = 'footer-widgets';
</span><ins>+ }
</ins><span class="cx">
</span><del>- if ( is_singular() && ! is_front_page() )
</del><ins>+ if ( is_singular() && ! is_front_page() ) {
</ins><span class="cx"> $classes[] = 'singular';
</span><ins>+ }
</ins><span class="cx">
</span><del>- if ( is_front_page() && 'slider' == get_theme_mod( 'featured_content_layout' ) )
</del><ins>+ if ( is_front_page() && 'slider' == get_theme_mod( 'featured_content_layout' ) ) {
</ins><span class="cx"> $classes[] = 'slider';
</span><del>- elseif ( is_front_page() )
</del><ins>+ } elseif ( is_front_page() ) {
</ins><span class="cx"> $classes[] = 'grid';
</span><ins>+ }
</ins><span class="cx">
</span><span class="cx"> return $classes;
</span><span class="cx"> }
</span><span class="lines">@@ -423,8 +440,9 @@
</span><span class="cx"> * @return array The filtered post class list.
</span><span class="cx"> */
</span><span class="cx"> function twentyfourteen_post_classes( $classes ) {
</span><del>- if ( ! post_password_required() && has_post_thumbnail() )
</del><ins>+ if ( ! post_password_required() && has_post_thumbnail() ) {
</ins><span class="cx"> $classes[] = 'has-post-thumbnail';
</span><ins>+ }
</ins><span class="cx">
</span><span class="cx"> return $classes;
</span><span class="cx"> }
</span><span class="lines">@@ -443,20 +461,23 @@
</span><span class="cx"> function twentyfourteen_wp_title( $title, $sep ) {
</span><span class="cx"> global $paged, $page;
</span><span class="cx">
</span><del>- if ( is_feed() )
</del><ins>+ if ( is_feed() ) {
</ins><span class="cx"> return $title;
</span><ins>+ }
</ins><span class="cx">
</span><span class="cx"> // Add the site name.
</span><span class="cx"> $title .= get_bloginfo( 'name' );
</span><span class="cx">
</span><span class="cx"> // Add the site description for the home/front page.
</span><span class="cx"> $site_description = get_bloginfo( 'description', 'display' );
</span><del>- if ( $site_description && ( is_home() || is_front_page() ) )
</del><ins>+ if ( $site_description && ( is_home() || is_front_page() ) ) {
</ins><span class="cx"> $title = "$title $sep $site_description";
</span><ins>+ }
</ins><span class="cx">
</span><span class="cx"> // Add a page number if necessary.
</span><del>- if ( $paged >= 2 || $page >= 2 )
</del><ins>+ if ( $paged >= 2 || $page >= 2 ) {
</ins><span class="cx"> $title = "$title $sep " . sprintf( __( 'Page %s', 'twentyfourteen' ), max( $paged, $page ) );
</span><ins>+ }
</ins><span class="cx">
</span><span class="cx"> return $title;
</span><span class="cx"> }
</span><span class="lines">@@ -477,5 +498,6 @@
</span><span class="cx"> * To overwrite in a plugin, define your own Featured_Content class on or
</span><span class="cx"> * before the 'setup_theme' hook.
</span><span class="cx"> */
</span><del>-if ( ! class_exists( 'Featured_Content' ) && 'plugins.php' !== $GLOBALS['pagenow'] )
</del><ins>+if ( ! class_exists( 'Featured_Content' ) && 'plugins.php' !== $GLOBALS['pagenow'] ) {
</ins><span class="cx"> require get_template_directory() . '/inc/featured-content.php';
</span><ins>+}
</ins></span></pre></div>
<a id="trunksrcwpcontentthemestwentyfourteeninccustomizerphp"></a>
<div class="modfile"><h4>Modified: trunk/src/wp-content/themes/twentyfourteen/inc/customizer.php (26259 => 26260)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/src/wp-content/themes/twentyfourteen/inc/customizer.php 2013-11-18 23:05:31 UTC (rev 26259)
+++ trunk/src/wp-content/themes/twentyfourteen/inc/customizer.php 2013-11-18 23:11:01 UTC (rev 26260)
</span><span class="lines">@@ -97,10 +97,11 @@
</span><span class="cx"> $hex = '#';
</span><span class="cx"> foreach ( $rgb as $value ) {
</span><span class="cx"> $value += $steps;
</span><del>- if ( $value > 255 )
</del><ins>+ if ( $value > 255 ) {
</ins><span class="cx"> $value = 255;
</span><del>- elseif ( $value < 0 )
</del><ins>+ } elseif ( $value < 0 ) {
</ins><span class="cx"> $value = 0;
</span><ins>+ }
</ins><span class="cx"> $hex .= str_pad( dechex( $value ), 2, '0', STR_PAD_LEFT);
</span><span class="cx"> }
</span><span class="cx">
</span><span class="lines">@@ -154,8 +155,9 @@
</span><span class="cx"> $accent_color = get_theme_mod( 'accent_color', '#24890d' );
</span><span class="cx">
</span><span class="cx"> // Don't do anything if the current color is the default.
</span><del>- if ( '#24890d' === $accent_color )
</del><ins>+ if ( '#24890d' === $accent_color ) {
</ins><span class="cx"> return;
</span><ins>+ }
</ins><span class="cx">
</span><span class="cx"> $accent_mid = get_theme_mod( 'accent_mid' );
</span><span class="cx"> $accent_light = get_theme_mod( 'accent_light' );
</span></span></pre></div>
<a id="trunksrcwpcontentthemestwentyfourteenincfeaturedcontentphp"></a>
<div class="modfile"><h4>Modified: trunk/src/wp-content/themes/twentyfourteen/inc/featured-content.php (26259 => 26260)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/src/wp-content/themes/twentyfourteen/inc/featured-content.php 2013-11-18 23:05:31 UTC (rev 26259)
+++ trunk/src/wp-content/themes/twentyfourteen/inc/featured-content.php 2013-11-18 23:11:01 UTC (rev 26260)
</span><span class="lines">@@ -46,25 +46,29 @@
</span><span class="cx"> $theme_support = get_theme_support( 'featured-content' );
</span><span class="cx">
</span><span class="cx"> // Return early if theme does not support Featured Content.
</span><del>- if ( ! $theme_support )
</del><ins>+ if ( ! $theme_support ) {
</ins><span class="cx"> return;
</span><ins>+ }
</ins><span class="cx">
</span><span class="cx"> /*
</span><span class="cx"> * An array of named arguments must be passed as the second parameter
</span><span class="cx"> * of add_theme_support().
</span><span class="cx"> */
</span><del>- if ( ! isset( $theme_support[0] ) )
</del><ins>+ if ( ! isset( $theme_support[0] ) ) {
</ins><span class="cx"> return;
</span><ins>+ }
</ins><span class="cx">
</span><span class="cx"> // Return early if "featured_content_filter" has not been defined.
</span><del>- if ( ! isset( $theme_support[0]['featured_content_filter'] ) )
</del><ins>+ if ( ! isset( $theme_support[0]['featured_content_filter'] ) ) {
</ins><span class="cx"> return;
</span><ins>+ }
</ins><span class="cx">
</span><span class="cx"> $filter = $theme_support[0]['featured_content_filter'];
</span><span class="cx">
</span><span class="cx"> // Theme can override the number of max posts.
</span><del>- if ( isset( $theme_support[0]['max_posts'] ) )
</del><ins>+ if ( isset( $theme_support[0]['max_posts'] ) ) {
</ins><span class="cx"> self::$max_posts = absint( $theme_support[0]['max_posts'] );
</span><ins>+ }
</ins><span class="cx">
</span><span class="cx"> add_filter( $filter, array( __CLASS__, 'get_featured_posts' ) );
</span><span class="cx"> add_action( 'customize_register', array( __CLASS__, 'customize_register' ), 9 );
</span><span class="lines">@@ -100,8 +104,9 @@
</span><span class="cx"> $post_ids = self::get_featured_post_ids();
</span><span class="cx">
</span><span class="cx"> // No need to query if there is are no featured posts.
</span><del>- if ( empty( $post_ids ) )
</del><ins>+ if ( empty( $post_ids ) ) {
</ins><span class="cx"> return array();
</span><ins>+ }
</ins><span class="cx">
</span><span class="cx"> $featured_posts = get_posts( array(
</span><span class="cx"> 'include' => $post_ids,
</span><span class="lines">@@ -124,17 +129,19 @@
</span><span class="cx"> public static function get_featured_post_ids() {
</span><span class="cx"> // Return array of cached results if they exist.
</span><span class="cx"> $featured_ids = get_transient( 'featured_content_ids' );
</span><del>- if ( ! empty( $featured_ids ) )
</del><ins>+ if ( ! empty( $featured_ids ) ) {
</ins><span class="cx"> return array_map( 'absint', (array) $featured_ids );
</span><ins>+ }
</ins><span class="cx">
</span><span class="cx"> $settings = self::get_setting();
</span><span class="cx">
</span><span class="cx"> // Return sticky post ids if no tag name is set.
</span><span class="cx"> $term = get_term_by( 'name', $settings['tag-name'], 'post_tag' );
</span><del>- if ( $term )
</del><ins>+ if ( $term ) {
</ins><span class="cx"> $tag = $term->term_id;
</span><del>- else
</del><ins>+ } else {
</ins><span class="cx"> return self::get_sticky_posts();
</span><ins>+ }
</ins><span class="cx">
</span><span class="cx"> // Query for featured posts.
</span><span class="cx"> $featured = get_posts( array(
</span><span class="lines">@@ -149,8 +156,9 @@
</span><span class="cx"> ) );
</span><span class="cx">
</span><span class="cx"> // Return array with sticky posts if no Featured Content exists.
</span><del>- if ( ! $featured )
</del><ins>+ if ( ! $featured ) {
</ins><span class="cx"> return self::get_sticky_posts();
</span><ins>+ }
</ins><span class="cx">
</span><span class="cx"> // Ensure correct format before save/return.
</span><span class="cx"> $featured_ids = wp_list_pluck( (array) $featured, 'ID' );
</span><span class="lines">@@ -195,20 +203,23 @@
</span><span class="cx"> public static function pre_get_posts( $query ) {
</span><span class="cx">
</span><span class="cx"> // Bail if not home or not main query.
</span><del>- if ( ! $query->is_home() || ! $query->is_main_query() )
</del><ins>+ if ( ! $query->is_home() || ! $query->is_main_query() ) {
</ins><span class="cx"> return;
</span><ins>+ }
</ins><span class="cx">
</span><span class="cx"> $page_on_front = get_option( 'page_on_front' );
</span><span class="cx">
</span><span class="cx"> // Bail if the blog page is not the front page.
</span><del>- if ( ! empty( $page_on_front ) )
</del><ins>+ if ( ! empty( $page_on_front ) ) {
</ins><span class="cx"> return;
</span><ins>+ }
</ins><span class="cx">
</span><span class="cx"> $featured = self::get_featured_post_ids();
</span><span class="cx">
</span><span class="cx"> // Bail if no featured posts.
</span><del>- if ( ! $featured )
</del><ins>+ if ( ! $featured ) {
</ins><span class="cx"> return;
</span><ins>+ }
</ins><span class="cx">
</span><span class="cx"> // We need to respect post ids already in the blacklist.
</span><span class="cx"> $post__not_in = $query->get( 'post__not_in' );
</span><span class="lines">@@ -237,8 +248,9 @@
</span><span class="cx"> public static function delete_post_tag( $tag_id ) {
</span><span class="cx"> $settings = self::get_setting();
</span><span class="cx">
</span><del>- if ( empty( $settings['tag-id'] ) || $tag_id != $settings['tag-id'] )
</del><ins>+ if ( empty( $settings['tag-id'] ) || $tag_id != $settings['tag-id'] ) {
</ins><span class="cx"> return;
</span><ins>+ }
</ins><span class="cx">
</span><span class="cx"> $settings['tag-id'] = 0;
</span><span class="cx"> $settings = self::validate_settings( $settings );
</span><span class="lines">@@ -259,20 +271,24 @@
</span><span class="cx"> public static function hide_featured_term( $terms, $taxonomies ) {
</span><span class="cx">
</span><span class="cx"> // This filter is only appropriate on the front-end.
</span><del>- if ( is_admin() )
</del><ins>+ if ( is_admin() ) {
</ins><span class="cx"> return $terms;
</span><ins>+ }
</ins><span class="cx">
</span><span class="cx"> // We only want to hide the featured tag.
</span><del>- if ( ! in_array( 'post_tag', $taxonomies ) )
</del><ins>+ if ( ! in_array( 'post_tag', $taxonomies ) ) {
</ins><span class="cx"> return $terms;
</span><ins>+ }
</ins><span class="cx">
</span><span class="cx"> // Bail if no terms were returned.
</span><del>- if ( empty( $terms ) )
</del><ins>+ if ( empty( $terms ) ) {
</ins><span class="cx"> return $terms;
</span><ins>+ }
</ins><span class="cx">
</span><span class="cx"> foreach( $terms as $order => $term ) {
</span><del>- if ( self::get_setting( 'tag-id' ) == $term->term_id && 'post_tag' == $term->taxonomy )
</del><ins>+ if ( self::get_setting( 'tag-id' ) == $term->term_id && 'post_tag' == $term->taxonomy ) {
</ins><span class="cx"> unset( $terms[ $order ] );
</span><ins>+ }
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> return $terms;
</span><span class="lines">@@ -293,20 +309,24 @@
</span><span class="cx"> public static function hide_the_featured_term( $terms, $id, $taxonomy ) {
</span><span class="cx">
</span><span class="cx"> // This filter is only appropriate on the front-end.
</span><del>- if ( is_admin() )
</del><ins>+ if ( is_admin() ) {
</ins><span class="cx"> return $terms;
</span><ins>+ }
</ins><span class="cx">
</span><span class="cx"> // Make sure we are in the correct taxonomy.
</span><del>- if ( 'post_tag' != $taxonomy )
</del><ins>+ if ( 'post_tag' != $taxonomy ) {
</ins><span class="cx"> return $terms;
</span><ins>+ }
</ins><span class="cx">
</span><span class="cx"> // No terms? Return early!
</span><del>- if ( empty( $terms ) )
</del><ins>+ if ( empty( $terms ) ) {
</ins><span class="cx"> return $terms;
</span><ins>+ }
</ins><span class="cx">
</span><span class="cx"> foreach( $terms as $order => $term ) {
</span><del>- if ( self::get_setting( 'tag-id' ) == $term->term_id )
</del><ins>+ if ( self::get_setting( 'tag-id' ) == $term->term_id ) {
</ins><span class="cx"> unset( $terms[ $term->term_id ] );
</span><ins>+ }
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> return $terms;
</span><span class="lines">@@ -401,8 +421,9 @@
</span><span class="cx"> $options = array_intersect_key( $options, $defaults );
</span><span class="cx"> $options['quantity'] = self::sanitize_quantity( $options['quantity'] );
</span><span class="cx">
</span><del>- if ( 'all' != $key )
</del><ins>+ if ( 'all' != $key ) {
</ins><span class="cx"> return isset( $options[ $key ] ) ? $options[ $key ] : false;
</span><ins>+ }
</ins><span class="cx">
</span><span class="cx"> return $options;
</span><span class="cx"> }
</span><span class="lines">@@ -437,8 +458,9 @@
</span><span class="cx"> $output['tag-name'] = $input['tag-name'];
</span><span class="cx"> }
</span><span class="cx">
</span><del>- if ( isset( $input['quantity'] ) )
</del><ins>+ if ( isset( $input['quantity'] ) ) {
</ins><span class="cx"> $output['quantity'] = self::sanitize_quantity( $input['quantity'] );
</span><ins>+ }
</ins><span class="cx">
</span><span class="cx"> $output['hide-tag'] = isset( $input['hide-tag'] ) && $input['hide-tag'] ? 1 : 0;
</span><span class="cx">
</span><span class="lines">@@ -458,10 +480,11 @@
</span><span class="cx"> public static function sanitize_quantity( $input ) {
</span><span class="cx"> $quantity = absint( $input );
</span><span class="cx">
</span><del>- if ( $quantity > self::$max_posts )
</del><ins>+ if ( $quantity > self::$max_posts ) {
</ins><span class="cx"> $quantity = self::$max_posts;
</span><del>- else if ( 1 > $quantity )
</del><ins>+ } else if ( 1 > $quantity ) {
</ins><span class="cx"> $quantity = 1;
</span><ins>+ }
</ins><span class="cx">
</span><span class="cx"> return $quantity;
</span><span class="cx"> }
</span></span></pre></div>
<a id="trunksrcwpcontentthemestwentyfourteeninctemplatetagsphp"></a>
<div class="modfile"><h4>Modified: trunk/src/wp-content/themes/twentyfourteen/inc/template-tags.php (26259 => 26260)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/src/wp-content/themes/twentyfourteen/inc/template-tags.php 2013-11-18 23:05:31 UTC (rev 26259)
+++ trunk/src/wp-content/themes/twentyfourteen/inc/template-tags.php 2013-11-18 23:11:01 UTC (rev 26260)
</span><span class="lines">@@ -17,16 +17,18 @@
</span><span class="cx"> */
</span><span class="cx"> function twentyfourteen_paging_nav() {
</span><span class="cx"> // Don't print empty markup if there's only one page.
</span><del>- if ( $GLOBALS['wp_query']->max_num_pages < 2 )
</del><ins>+ if ( $GLOBALS['wp_query']->max_num_pages < 2 ) {
</ins><span class="cx"> return;
</span><ins>+ }
</ins><span class="cx">
</span><span class="cx"> $paged = get_query_var( 'paged' ) ? intval( get_query_var( 'paged' ) ) : 1;
</span><span class="cx"> $pagenum_link = html_entity_decode( get_pagenum_link() );
</span><span class="cx"> $query_args = array();
</span><span class="cx"> $url_parts = explode( '?', $pagenum_link );
</span><span class="cx">
</span><del>- if ( isset( $url_parts[1] ) )
</del><ins>+ if ( isset( $url_parts[1] ) ) {
</ins><span class="cx"> wp_parse_str( $url_parts[1], $query_args );
</span><ins>+ }
</ins><span class="cx">
</span><span class="cx"> $pagenum_link = remove_query_arg( array_keys( $query_args ), $pagenum_link );
</span><span class="cx"> $pagenum_link = trailingslashit( $pagenum_link ) . '%_%';
</span><span class="lines">@@ -72,8 +74,9 @@
</span><span class="cx"> $previous = ( is_attachment() ) ? get_post( get_post()->post_parent ) : get_adjacent_post( false, '', true );
</span><span class="cx"> $next = get_adjacent_post( false, '', false );
</span><span class="cx">
</span><del>- if ( ! $next && ! $previous )
</del><ins>+ if ( ! $next && ! $previous ) {
</ins><span class="cx"> return;
</span><ins>+ }
</ins><span class="cx">
</span><span class="cx"> ?>
</span><span class="cx"> <nav class="navigation post-navigation" role="navigation">
</span><span class="lines">@@ -102,8 +105,9 @@
</span><span class="cx"> * @return void
</span><span class="cx"> */
</span><span class="cx"> function twentyfourteen_posted_on() {
</span><del>- if ( is_sticky() && is_home() && ! is_paged() )
</del><ins>+ if ( is_sticky() && is_home() && ! is_paged() ) {
</ins><span class="cx"> echo '<span class="featured-post">' . __( 'Sticky', 'twentyfourteen' ) . '</span>';
</span><ins>+ }
</ins><span class="cx">
</span><span class="cx"> printf( __( '<span class="entry-date"><a href="%1$s" rel="bookmark"><time class="entry-date" datetime="%2$s">%3$s</time></a></span> <span class="byline"><span class="author vcard"><a class="url fn n" href="%4$s" rel="author">%5$s</a></span></span>', 'twentyfourteen' ),
</span><span class="cx"> esc_url( get_permalink() ),
</span><span class="lines">@@ -167,18 +171,20 @@
</span><span class="cx"> * @return void
</span><span class="cx"> */
</span><span class="cx"> function twentyfourteen_post_thumbnail() {
</span><del>- if ( post_password_required() || ! has_post_thumbnail() )
</del><ins>+ if ( post_password_required() || ! has_post_thumbnail() ) {
</ins><span class="cx"> return;
</span><ins>+ }
</ins><span class="cx">
</span><span class="cx"> if ( is_singular() ) :
</span><span class="cx"> ?>
</span><span class="cx">
</span><span class="cx"> <div class="post-thumbnail">
</span><span class="cx"> <?php
</span><del>- if ( ( ! is_active_sidebar( 'sidebar-2' ) || is_page_template( 'page-templates/full-width.php' ) ) && ! wp_is_mobile() )
</del><ins>+ if ( ( ! is_active_sidebar( 'sidebar-2' ) || is_page_template( 'page-templates/full-width.php' ) ) && ! wp_is_mobile() ) {
</ins><span class="cx"> the_post_thumbnail( 'twentyfourteen-full-width' );
</span><del>- else
</del><ins>+ } else {
</ins><span class="cx"> the_post_thumbnail();
</span><ins>+ }
</ins><span class="cx"> ?>
</span><span class="cx"> </div>
</span><span class="cx">
</span><span class="lines">@@ -186,10 +192,11 @@
</span><span class="cx">
</span><span class="cx"> <a class="post-thumbnail" href="<?php the_permalink(); ?>" rel="<?php the_ID(); ?>">
</span><span class="cx"> <?php
</span><del>- if ( ( ! is_active_sidebar( 'sidebar-2' ) || is_page_template( 'page-templates/full-width.php' ) ) && ! wp_is_mobile() )
</del><ins>+ if ( ( ! is_active_sidebar( 'sidebar-2' ) || is_page_template( 'page-templates/full-width.php' ) ) && ! wp_is_mobile() ) {
</ins><span class="cx"> the_post_thumbnail( 'twentyfourteen-full-width' );
</span><del>- else
</del><ins>+ } else {
</ins><span class="cx"> the_post_thumbnail();
</span><ins>+ }
</ins><span class="cx"> ?>
</span><span class="cx"> </a>
</span><span class="cx">
</span></span></pre></div>
<a id="trunksrcwpcontentthemestwentyfourteenincwidgetsphp"></a>
<div class="modfile"><h4>Modified: trunk/src/wp-content/themes/twentyfourteen/inc/widgets.php (26259 => 26260)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/src/wp-content/themes/twentyfourteen/inc/widgets.php 2013-11-18 23:05:31 UTC (rev 26259)
+++ trunk/src/wp-content/themes/twentyfourteen/inc/widgets.php 2013-11-18 23:11:01 UTC (rev 26260)
</span><span class="lines">@@ -231,8 +231,9 @@
</span><span class="cx"> function update( $new_instance, $instance ) {
</span><span class="cx"> $instance['title'] = strip_tags( $new_instance['title'] );
</span><span class="cx"> $instance['number'] = empty( $new_instance['number'] ) ? 2 : absint( $new_instance['number'] );
</span><del>- if ( in_array( $new_instance['format'], $this->formats ) )
</del><ins>+ if ( in_array( $new_instance['format'], $this->formats ) ) {
</ins><span class="cx"> $instance['format'] = $new_instance['format'];
</span><ins>+ }
</ins><span class="cx">
</span><span class="cx"> $this->flush_widget_cache();
</span><span class="cx">
</span></span></pre></div>
<a id="trunksrcwpcontentthemestwentyfourteenindexphp"></a>
<div class="modfile"><h4>Modified: trunk/src/wp-content/themes/twentyfourteen/index.php (26259 => 26260)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/src/wp-content/themes/twentyfourteen/index.php 2013-11-18 23:05:31 UTC (rev 26259)
+++ trunk/src/wp-content/themes/twentyfourteen/index.php 2013-11-18 23:11:01 UTC (rev 26260)
</span><span class="lines">@@ -18,8 +18,9 @@
</span><span class="cx"> <div id="main-content" class="main-content">
</span><span class="cx">
</span><span class="cx"> <?php
</span><del>- if ( is_front_page() && twentyfourteen_has_featured_posts() )
</del><ins>+ if ( is_front_page() && twentyfourteen_has_featured_posts() ) {
</ins><span class="cx"> get_template_part( 'featured-content' );
</span><ins>+ }
</ins><span class="cx"> ?>
</span><span class="cx">
</span><span class="cx"> <div id="primary" class="content-area">
</span></span></pre></div>
<a id="trunksrcwpcontentthemestwentyfourteenpagetemplatescontributorsphp"></a>
<div class="modfile"><h4>Modified: trunk/src/wp-content/themes/twentyfourteen/page-templates/contributors.php (26259 => 26260)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/src/wp-content/themes/twentyfourteen/page-templates/contributors.php 2013-11-18 23:05:31 UTC (rev 26259)
+++ trunk/src/wp-content/themes/twentyfourteen/page-templates/contributors.php 2013-11-18 23:11:01 UTC (rev 26260)
</span><span class="lines">@@ -12,8 +12,9 @@
</span><span class="cx"> <div id="main-content" class="main-content">
</span><span class="cx">
</span><span class="cx"> <?php
</span><del>- if ( is_front_page() && twentyfourteen_has_featured_posts() )
</del><ins>+ if ( is_front_page() && twentyfourteen_has_featured_posts() ) {
</ins><span class="cx"> get_template_part( 'featured-content' );
</span><ins>+ }
</ins><span class="cx"> ?>
</span><span class="cx">
</span><span class="cx"> <div id="primary" class="content-area">
</span><span class="lines">@@ -35,8 +36,9 @@
</span><span class="cx">
</span><span class="cx"> <?php
</span><span class="cx"> // If comments are open or we have at least one comment, load up the comment template.
</span><del>- if ( comments_open() || get_comments_number() )
</del><ins>+ if ( comments_open() || get_comments_number() ) {
</ins><span class="cx"> comments_template();
</span><ins>+ }
</ins><span class="cx"> endwhile;
</span><span class="cx"> ?>
</span><span class="cx"> </div><!-- #content -->
</span></span></pre></div>
<a id="trunksrcwpcontentthemestwentyfourteenpagetemplatesfullwidthphp"></a>
<div class="modfile"><h4>Modified: trunk/src/wp-content/themes/twentyfourteen/page-templates/full-width.php (26259 => 26260)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/src/wp-content/themes/twentyfourteen/page-templates/full-width.php 2013-11-18 23:05:31 UTC (rev 26259)
+++ trunk/src/wp-content/themes/twentyfourteen/page-templates/full-width.php 2013-11-18 23:11:01 UTC (rev 26260)
</span><span class="lines">@@ -12,8 +12,9 @@
</span><span class="cx"> <div id="main-content" class="main-content">
</span><span class="cx">
</span><span class="cx"> <?php
</span><del>- if ( is_front_page() && twentyfourteen_has_featured_posts() )
</del><ins>+ if ( is_front_page() && twentyfourteen_has_featured_posts() ) {
</ins><span class="cx"> get_template_part( 'featured-content' );
</span><ins>+ }
</ins><span class="cx"> ?>
</span><span class="cx">
</span><span class="cx"> <div id="primary" class="content-area">
</span><span class="lines">@@ -25,8 +26,9 @@
</span><span class="cx"> get_template_part( 'content', 'page' );
</span><span class="cx">
</span><span class="cx"> // If comments are open or we have at least one comment, load up the comment template.
</span><del>- if ( comments_open() || get_comments_number() )
</del><ins>+ if ( comments_open() || get_comments_number() ) {
</ins><span class="cx"> comments_template();
</span><ins>+ }
</ins><span class="cx"> endwhile;
</span><span class="cx"> ?>
</span><span class="cx"> </div><!-- #content -->
</span></span></pre></div>
<a id="trunksrcwpcontentthemestwentyfourteenpagephp"></a>
<div class="modfile"><h4>Modified: trunk/src/wp-content/themes/twentyfourteen/page.php (26259 => 26260)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/src/wp-content/themes/twentyfourteen/page.php 2013-11-18 23:05:31 UTC (rev 26259)
+++ trunk/src/wp-content/themes/twentyfourteen/page.php 2013-11-18 23:11:01 UTC (rev 26260)
</span><span class="lines">@@ -16,8 +16,9 @@
</span><span class="cx"> <div id="main-content" class="main-content">
</span><span class="cx">
</span><span class="cx"> <?php
</span><del>- if ( is_front_page() && twentyfourteen_has_featured_posts() )
</del><ins>+ if ( is_front_page() && twentyfourteen_has_featured_posts() ) {
</ins><span class="cx"> get_template_part( 'featured-content' );
</span><ins>+ }
</ins><span class="cx"> ?>
</span><span class="cx"> <div id="primary" class="content-area">
</span><span class="cx"> <div id="content" class="site-content" role="main">
</span><span class="lines">@@ -29,8 +30,9 @@
</span><span class="cx"> get_template_part( 'content', 'page' );
</span><span class="cx">
</span><span class="cx"> // If comments are open or we have at least one comment, load up the comment template.
</span><del>- if ( comments_open() || get_comments_number() )
</del><ins>+ if ( comments_open() || get_comments_number() ) {
</ins><span class="cx"> comments_template();
</span><ins>+ }
</ins><span class="cx"> endwhile;
</span><span class="cx"> ?>
</span><span class="cx">
</span></span></pre></div>
<a id="trunksrcwpcontentthemestwentyfourteensidebarcontentphp"></a>
<div class="modfile"><h4>Modified: trunk/src/wp-content/themes/twentyfourteen/sidebar-content.php (26259 => 26260)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/src/wp-content/themes/twentyfourteen/sidebar-content.php 2013-11-18 23:05:31 UTC (rev 26259)
+++ trunk/src/wp-content/themes/twentyfourteen/sidebar-content.php 2013-11-18 23:11:01 UTC (rev 26260)
</span><span class="lines">@@ -7,8 +7,9 @@
</span><span class="cx"> * @since Twenty Fourteen 1.0
</span><span class="cx"> */
</span><span class="cx">
</span><del>-if ( ! is_active_sidebar( 'sidebar-2' ) )
</del><ins>+if ( ! is_active_sidebar( 'sidebar-2' ) ) {
</ins><span class="cx"> return;
</span><ins>+}
</ins><span class="cx"> ?>
</span><span class="cx"> <div id="content-sidebar" class="content-sidebar widget-area" role="complementary">
</span><span class="cx"> <?php dynamic_sidebar( 'sidebar-2' ); ?>
</span></span></pre></div>
<a id="trunksrcwpcontentthemestwentyfourteensidebarfooterphp"></a>
<div class="modfile"><h4>Modified: trunk/src/wp-content/themes/twentyfourteen/sidebar-footer.php (26259 => 26260)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/src/wp-content/themes/twentyfourteen/sidebar-footer.php 2013-11-18 23:05:31 UTC (rev 26259)
+++ trunk/src/wp-content/themes/twentyfourteen/sidebar-footer.php 2013-11-18 23:11:01 UTC (rev 26260)
</span><span class="lines">@@ -7,8 +7,9 @@
</span><span class="cx"> * @since Twenty Fourteen 1.0
</span><span class="cx"> */
</span><span class="cx">
</span><del>-if ( ! is_active_sidebar( 'sidebar-3' ) )
</del><ins>+if ( ! is_active_sidebar( 'sidebar-3' ) ) {
</ins><span class="cx"> return;
</span><ins>+}
</ins><span class="cx"> ?>
</span><span class="cx">
</span><span class="cx"> <div id="supplementary">
</span></span></pre></div>
<a id="trunksrcwpcontentthemestwentyfourteensinglephp"></a>
<div class="modfile"><h4>Modified: trunk/src/wp-content/themes/twentyfourteen/single.php (26259 => 26260)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/src/wp-content/themes/twentyfourteen/single.php 2013-11-18 23:05:31 UTC (rev 26259)
+++ trunk/src/wp-content/themes/twentyfourteen/single.php 2013-11-18 23:11:01 UTC (rev 26260)
</span><span class="lines">@@ -20,8 +20,9 @@
</span><span class="cx"> twentyfourteen_post_nav();
</span><span class="cx">
</span><span class="cx"> // If comments are open or we have at least one comment, load up the comment template.
</span><del>- if ( comments_open() || get_comments_number() )
</del><ins>+ if ( comments_open() || get_comments_number() ) {
</ins><span class="cx"> comments_template();
</span><ins>+ }
</ins><span class="cx"> endwhile;
</span><span class="cx"> ?>
</span><span class="cx"> </div><!-- #content -->
</span></span></pre>
</div>
</div>
</body>
</html>