Make WordPress Core

Changeset 56012


Ignore:
Timestamp:
06/24/2023 05:12:28 AM (11 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_frontpage',
    148148            )
    149149        );
     
    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
Note: See TracChangeset for help on using the changeset viewer.