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
This commit is contained in:
Sergey Biryukov 2017-01-15 12:49:25 +00:00
parent 2904099432
commit 19ca7cb022
1 changed files with 0 additions and 1 deletions

View File

@ -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 );