WordPress.org

Make WordPress Core

Ticket #43515: 43515.patch

File 43515.patch, 924 bytes (added by mukesh27, 4 years ago)
  • twentyseventeen/inc/customizer.php

    diff -Naur twentyseventeen/inc/customizer.php twentyseventeen/inc/customizer.php
     
    109109                        'section'        => 'theme_options',
    110110                        'type'           => 'dropdown-pages',
    111111                        'allow_addition' => true,
    112                         'active_callback' => 'twentyseventeen_is_static_front_page',
     112                        'active_callback' => 'twentyseventeen_is_frontpage',
    113113                ) );
    114114
    115115                $wp_customize->selective_refresh->add_partial( 'panel_' . $i, array(
     
    179179}
    180180
    181181/**
    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 /**
    189182 * Return whether we're on a view that supports a one or two column layout.
    190183 */
    191184function twentyseventeen_is_view_with_layout_option() {