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:
parent
2904099432
commit
19ca7cb022
|
@ -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 );
|
||||
|
|
Loading…
Reference in New Issue