From e958c7ca496ec6c46881193986d6e264e8b6b987 Mon Sep 17 00:00:00 2001 From: Lance Willett Date: Mon, 1 Jul 2013 17:27:41 +0000 Subject: [PATCH] Twenty Thirteen: cleanup for functions.php file, props obenland. See #24653. git-svn-id: http://core.svn.wordpress.org/trunk@24537 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- .../themes/twentythirteen/functions.php | 31 ++++++++++--------- 1 file changed, 17 insertions(+), 14 deletions(-) diff --git a/wp-content/themes/twentythirteen/functions.php b/wp-content/themes/twentythirteen/functions.php index 2e6d3bfbed..1502227e92 100644 --- a/wp-content/themes/twentythirteen/functions.php +++ b/wp-content/themes/twentythirteen/functions.php @@ -34,13 +34,13 @@ if ( ! isset( $content_width ) ) /** * Adds support for a custom header image. */ -require( get_template_directory() . '/inc/custom-header.php' ); +require get_template_directory() . '/inc/custom-header.php'; /** * Twenty Thirteen only works in WordPress 3.6 or later. */ if ( version_compare( $GLOBALS['wp_version'], '3.6-alpha', '<' ) ) - require( get_template_directory() . '/inc/back-compat.php' ); + require get_template_directory() . '/inc/back-compat.php'; /** * Sets up theme defaults and registers the various WordPress features that @@ -274,7 +274,7 @@ function twentythirteen_widgets_init() { register_sidebar( array( 'name' => __( 'Main Widget Area', 'twentythirteen' ), 'id' => 'sidebar-1', - 'description' => __( 'Appears in the footer section of the site', 'twentythirteen' ), + 'description' => __( 'Appears in the footer section of the site.', 'twentythirteen' ), 'before_widget' => '', 'before_title' => '

', @@ -305,7 +305,7 @@ function twentythirteen_paging_nav() { global $wp_query; // Don't print empty markup if there's only one page. - if ( $wp_query->max_num_pages < 2 && ( is_home() || is_archive() || is_search() ) ) + if ( $wp_query->max_num_pages < 2 ) return; ?>