diff -Naur twentyseventeen/inc/customizer.php twentyseventeen/inc/customizer.php
|
|
|
|
| 109 | 109 | 'section' => 'theme_options', |
| 110 | 110 | 'type' => 'dropdown-pages', |
| 111 | 111 | 'allow_addition' => true, |
| 112 | | 'active_callback' => 'twentyseventeen_is_static_front_page', |
| | 112 | 'active_callback' => 'twentyseventeen_is_frontpage', |
| 113 | 113 | ) ); |
| 114 | 114 | |
| 115 | 115 | $wp_customize->selective_refresh->add_partial( 'panel_' . $i, array( |
| … |
… |
|
| 179 | 179 | } |
| 180 | 180 | |
| 181 | 181 | /** |
| 182 | | * Return whether we're previewing the front page and it's a static page. |
| 183 | | */ |
| 184 | | function twentyseventeen_is_static_front_page() { |
| 185 | | return ( is_front_page() && ! is_home() ); |
| 186 | | } |
| 187 | | |
| 188 | | /** |
| 189 | 182 | * Return whether we're on a view that supports a one or two column layout. |
| 190 | 183 | */ |
| 191 | 184 | function twentyseventeen_is_view_with_layout_option() { |