Twenty Seventeen: Remove duplicate `global $post` declaration in `twentyseventeen_front_page_section()`.

Props ixkaito.
Fixes #39590.
Built from https://develop.svn.wordpress.org/trunk@39909


git-svn-id: http://core.svn.wordpress.org/trunk@39846 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2017-01-15 12:50:39 +00:00
parent 4d546a12cf
commit 1ba4484186
2 changed files with 1 additions and 2 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 );

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.8-alpha-39908';
$wp_version = '4.8-alpha-39909';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.