From 19ca7cb0224a07a0ebe001374b254b72e63d47fc Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Sun, 15 Jan 2017 12:49:25 +0000 Subject: [PATCH] Twenty Seventeen: Remove duplicate `global $post` declaration in `twentyseventeen_front_page_section()`. Props ixkaito. Fixes #39590. git-svn-id: https://develop.svn.wordpress.org/trunk@39909 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-content/themes/twentyseventeen/inc/template-tags.php | 1 - 1 file changed, 1 deletion(-) diff --git a/src/wp-content/themes/twentyseventeen/inc/template-tags.php b/src/wp-content/themes/twentyseventeen/inc/template-tags.php index 1fc405772c..f94e3c9c87 100644 --- a/src/wp-content/themes/twentyseventeen/inc/template-tags.php +++ b/src/wp-content/themes/twentyseventeen/inc/template-tags.php @@ -141,7 +141,6 @@ function twentyseventeen_front_page_section( $partial = null, $id = 0 ) { global $post; // Modify the global post object before setting up post data. if ( get_theme_mod( 'panel_' . $id ) ) { - global $post; $post = get_post( get_theme_mod( 'panel_' . $id ) ); setup_postdata( $post ); set_query_var( 'panel', $id );