diff --git a/wp-content/themes/twentyfourteen/functions.php b/wp-content/themes/twentyfourteen/functions.php index bc6bf1315f..6f797f784b 100644 --- a/wp-content/themes/twentyfourteen/functions.php +++ b/wp-content/themes/twentyfourteen/functions.php @@ -97,24 +97,18 @@ function twentyfourteen_setup() { 'aside', 'image', 'video', 'audio', 'quote', 'link', 'gallery', ) ); - /* - * This theme allows users to set a custom background. - */ + // This theme allows users to set a custom background. add_theme_support( 'custom-background', apply_filters( 'twentyfourteen_custom_background_args', array( 'default-color' => 'f5f5f5', ) ) ); - /* - * Add support for featured content. - */ + // Add support for featured content. add_theme_support( 'featured-content', array( 'featured_content_filter' => 'twentyfourteen_get_featured_posts', 'max_posts' => 6, ) ); - /* - * This theme uses its own gallery styles. - */ + // This theme uses its own gallery styles. add_filter( 'use_default_gallery_style', '__return_false' ); } endif; // twentyfourteen_setup diff --git a/wp-content/themes/twentyfourteen/header.php b/wp-content/themes/twentyfourteen/header.php index e331db884a..00b2dca0d5 100644 --- a/wp-content/themes/twentyfourteen/header.php +++ b/wp-content/themes/twentyfourteen/header.php @@ -32,8 +32,6 @@ >
- - ', 'twentyfourteen' ) ); ?> +
+
diff --git a/wp-content/themes/twentyfourteen/inc/customizer.php b/wp-content/themes/twentyfourteen/inc/customizer.php index 72a6cc6882..d63e83a0e8 100644 --- a/wp-content/themes/twentyfourteen/inc/customizer.php +++ b/wp-content/themes/twentyfourteen/inc/customizer.php @@ -34,7 +34,7 @@ function twentyfourteen_customize_register( $wp_customize ) { 'section' => 'colors', ) ) ); - add_filter( 'theme_mod_accent_mid', 'twentyfourteen_accent_mid' ); + add_filter( 'theme_mod_accent_mid', 'twentyfourteen_accent_mid' ); add_filter( 'theme_mod_accent_light', 'twentyfourteen_accent_light' ); // Add the featured content section in case it's not already there. @@ -138,7 +138,7 @@ function twentyfourteen_accent_light() { * @return void */ function twentyfourteen_rebuild_accent_colors() { - set_theme_mod( 'accent_mid', twentyfourteen_accent_mid() ); + set_theme_mod( 'accent_mid', twentyfourteen_accent_mid() ); set_theme_mod( 'accent_light', twentyfourteen_accent_light() ); } add_action( 'update_option_theme_mods_twentyfourteen', 'twentyfourteen_rebuild_accent_colors' ); @@ -157,7 +157,7 @@ function twentyfourteen_customizer_styles() { if ( '#24890d' === $accent_color ) return; - $accent_mid = get_theme_mod( 'accent_mid' ); + $accent_mid = get_theme_mod( 'accent_mid' ); $accent_light = get_theme_mod( 'accent_light' ); $css = '/* Custom accent color. */ @@ -317,7 +317,6 @@ function twentyfourteen_customizer_styles() { color: ' . $accent_light . '; }'; - wp_add_inline_style( 'twentyfourteen-style', $css ); } add_action( 'wp_enqueue_scripts', 'twentyfourteen_customizer_styles' ); diff --git a/wp-content/themes/twentyfourteen/inc/template-tags.php b/wp-content/themes/twentyfourteen/inc/template-tags.php index ed9c017770..22845a3306 100644 --- a/wp-content/themes/twentyfourteen/inc/template-tags.php +++ b/wp-content/themes/twentyfourteen/inc/template-tags.php @@ -162,6 +162,8 @@ add_action( 'save_post', 'twentyfourteen_category_transient_flusher' ); * Displays an optional post thumbnail, with an anchor element * when on index views, and a div element when on a single view. * + * @since Twenty Fourteen 1.0 + * * @return void */ function twentyfourteen_post_thumbnail() { diff --git a/wp-content/themes/twentyfourteen/js/functions.js b/wp-content/themes/twentyfourteen/js/functions.js index 67c858e0eb..fac6f334cc 100644 --- a/wp-content/themes/twentyfourteen/js/functions.js +++ b/wp-content/themes/twentyfourteen/js/functions.js @@ -110,7 +110,7 @@ _window.load( function() { if ( body.is( '.slider' ) ) { $( '.featured-content' ).featuredslider( { - selector: '.featured-content-inner > article', + selector: '.featured-content-inner > article', controlsContainer: '.featured-content' } ); } diff --git a/wp-content/themes/twentyfourteen/search.php b/wp-content/themes/twentyfourteen/search.php index 240c2d0d46..2ee2bbf06d 100644 --- a/wp-content/themes/twentyfourteen/search.php +++ b/wp-content/themes/twentyfourteen/search.php @@ -39,4 +39,3 @@ get_header(); ?> get_sidebar( 'content' ); get_sidebar(); get_footer(); - diff --git a/wp-content/themes/twentyfourteen/sidebar-content.php b/wp-content/themes/twentyfourteen/sidebar-content.php index 162e8791c3..440ead960f 100644 --- a/wp-content/themes/twentyfourteen/sidebar-content.php +++ b/wp-content/themes/twentyfourteen/sidebar-content.php @@ -11,7 +11,5 @@ if ( ! is_active_sidebar( 'sidebar-2' ) ) return; ?> diff --git a/wp-content/themes/twentyfourteen/sidebar.php b/wp-content/themes/twentyfourteen/sidebar.php index 3f64cfa877..97e01862f9 100644 --- a/wp-content/themes/twentyfourteen/sidebar.php +++ b/wp-content/themes/twentyfourteen/sidebar.php @@ -23,10 +23,7 @@ + +