X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/874d2a2f468a0d1e69aab49b1fe2d9d79d3e1142..af50974463450c98503e763a7836a50e260461a9:/wp-content/themes/twentyfourteen/inc/featured-content.php diff --git a/wp-content/themes/twentyfourteen/inc/featured-content.php b/wp-content/themes/twentyfourteen/inc/featured-content.php index ccff4cac..8bc7dc5b 100644 --- a/wp-content/themes/twentyfourteen/inc/featured-content.php +++ b/wp-content/themes/twentyfourteen/inc/featured-content.php @@ -97,7 +97,7 @@ class Featured_Content { /** * Hide "featured" tag from the front-end. * - * Has to run on wp_loaded so that the preview filters of the customizer + * Has to run on wp_loaded so that the preview filters of the Customizer * have a chance to alter the value. * * @static @@ -235,10 +235,8 @@ class Featured_Content { return; } - $page_on_front = get_option( 'page_on_front' ); - // Bail if the blog page is not the front page. - if ( ! empty( $page_on_front ) ) { + if ( 'posts' !== get_option( 'show_on_front' ) ) { return; } @@ -398,7 +396,7 @@ class Featured_Content { * @access public * @since Twenty Fourteen 1.0 * - * @param WP_Customize_Manager $wp_customize Theme Customizer object. + * @param WP_Customize_Manager $wp_customize Customizer object. */ public static function customize_register( $wp_customize ) { $wp_customize->add_section( 'featured_content', array(