Make WordPress Core

Changeset 56012

Timestamp:
06/24/2023 05:12:28 AM (13 months ago)
Author:
audrasjb
Message:

Twenty Seventeen: Make twentyseventeen_is_static_front_page() an alias of twentyseventeen_is_frontpage().

Since both functions return the exact same thing, this changeset makes twentyseventeen_is_static_front_page() an alias of twentyseventeen_is_frontpage()
and updates the related docblocks and function callback.

Props mukesh27, soulseekah, swissspidy, sabernhardt, audrasjb, SergeyBiryukov, hareesh-pillai.
Fixes #43515.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentyseventeen/inc/customizer.php

    r48782 r56012  
    145145                'type'            => 'dropdown-pages',
    146146                'allow_addition'  => true,
    147                 'active_callback' => 'twentyseventeen_is_static_front_page',
     147                'active_callback' => 'twentyseventeen_is_page',
    148148            )
    149149        );
     
    222222/**
    223223 * Return whether we're previewing the front page and it's a static page.
     224
     225
     226
     227
     228
     229
     230
    224231 */
    225232function twentyseventeen_is_static_front_page() {
    226     return ( is_front_page() && ! is_home() );
     233    return );
    227234}
    228235
Note: See TracChangeset for help on using the changeset viewer.