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:
parent
4d546a12cf
commit
1ba4484186
|
@ -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.
|
global $post; // Modify the global post object before setting up post data.
|
||||||
if ( get_theme_mod( 'panel_' . $id ) ) {
|
if ( get_theme_mod( 'panel_' . $id ) ) {
|
||||||
global $post;
|
|
||||||
$post = get_post( get_theme_mod( 'panel_' . $id ) );
|
$post = get_post( get_theme_mod( 'panel_' . $id ) );
|
||||||
setup_postdata( $post );
|
setup_postdata( $post );
|
||||||
set_query_var( 'panel', $id );
|
set_query_var( 'panel', $id );
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @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.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
Loading…
Reference in New Issue