Make WordPress Core

Ticket #43515: 43515.1.patch

File 43515.1.patch, 1.0 KB (added by sabernhardt, 2 years ago)

makes twentyseventeen_is_static_front_page() an alias of twentyseventeen_is_frontpage()

  • src/wp-content/themes/twentyseventeen/inc/customizer.php

     
    144144                                'section'         => 'theme_options',
    145145                                'type'            => 'dropdown-pages',
    146146                                'allow_addition'  => true,
    147                                 'active_callback' => 'twentyseventeen_is_static_front_page',
     147                                'active_callback' => 'twentyseventeen_is_frontpage',
    148148                        )
    149149                );
    150150
     
    221221
    222222/**
    223223 * Return whether we're previewing the front page and it's a static page.
     224 *
     225 * This function is an alias for twentyseventeen_is_frontpage().
     226 *
     227 * @since Twenty Seventeen 1.0
     228 * @since Twenty Seventeen 3.3 Converted function to an alias.
     229 *
     230 * @return bool Whether the current page is the front page and static.
    224231 */
    225232function twentyseventeen_is_static_front_page() {
    226         return ( is_front_page() && ! is_home() );
     233        return twentyseventeen_is_frontpage();
    227234}
    228235
    229236/**