mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 01:27:36 +01:00
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. Built from https://develop.svn.wordpress.org/trunk@56012 git-svn-id: http://core.svn.wordpress.org/trunk@55524 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
58341e16ce
commit
62416ac9ce
@ -144,7 +144,7 @@ function twentyseventeen_customize_register( $wp_customize ) {
|
||||
'section' => 'theme_options',
|
||||
'type' => 'dropdown-pages',
|
||||
'allow_addition' => true,
|
||||
'active_callback' => 'twentyseventeen_is_static_front_page',
|
||||
'active_callback' => 'twentyseventeen_is_frontpage',
|
||||
)
|
||||
);
|
||||
|
||||
@ -221,9 +221,16 @@ function twentyseventeen_customize_partial_blogdescription() {
|
||||
|
||||
/**
|
||||
* Return whether we're previewing the front page and it's a static page.
|
||||
*
|
||||
* This function is an alias for twentyseventeen_is_frontpage().
|
||||
*
|
||||
* @since Twenty Seventeen 1.0
|
||||
* @since Twenty Seventeen 3.3 Converted function to an alias.
|
||||
*
|
||||
* @return bool Whether the current page is the front page and static.
|
||||
*/
|
||||
function twentyseventeen_is_static_front_page() {
|
||||
return ( is_front_page() && ! is_home() );
|
||||
return twentyseventeen_is_frontpage();
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -16,7 +16,7 @@
|
||||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '6.3-alpha-56011';
|
||||
$wp_version = '6.3-alpha-56012';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
Loading…
Reference in New Issue
Block a user