Customizer: Replicate behavior from options-reading.php and hide front page options if there are no pages.
props Clorith. fixes #27630. git-svn-id: https://develop.svn.wordpress.org/trunk@31234 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
68283f5fb3
commit
2b4099c6bd
@ -1199,6 +1199,8 @@ final class WP_Customize_Manager {
|
||||
/* Static Front Page */
|
||||
// #WP19627
|
||||
|
||||
// Replicate behavior from options-reading.php and hide front page options if there are no pages
|
||||
if ( get_pages() ) {
|
||||
$this->add_section( 'static_front_page', array(
|
||||
'title' => __( 'Static Front Page' ),
|
||||
// 'theme_supports' => 'static-front-page',
|
||||
@ -1247,6 +1249,7 @@ final class WP_Customize_Manager {
|
||||
'type' => 'dropdown-pages',
|
||||
) );
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Callback for validating the header_textcolor value.
|
||||
|
Loading…
Reference in New Issue
Block a user