mirror of
https://github.com/woocommerce/storefront.git
synced 2025-08-21 04:11:59 +08:00
Controls only apply to homepage when a featured image is set
This commit is contained in:
parent
35a575c4ab
commit
b5d14ef898
1 changed files with 1 additions and 1 deletions
|
@ -988,7 +988,7 @@ if ( ! class_exists( 'Storefront_Customizer' ) ) :
|
|||
public function is_homepage_template() {
|
||||
$template = get_post_meta( get_the_ID(), '_wp_page_template', true );
|
||||
|
||||
if ( ! $template || 'template-homepage.php' !== $template ) {
|
||||
if ( ! $template || 'template-homepage.php' !== $template || ! has_post_thumbnail( get_the_ID() ) ) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue