Skip to content

Commit

Permalink
chore: add another check for child-themes
Browse files Browse the repository at this point in the history
  • Loading branch information
cristian-ungureanu committed Sep 7, 2023
1 parent a353eec commit 9f9be46
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Modules/Promotions.php
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,8 @@ private function get_promotions() {
$has_ppom = defined( 'PPOM_VERSION' ) || $this->is_plugin_installed( 'woocommerce-product-addon' );
$is_min_req_v = version_compare( get_bloginfo( 'version' ), '5.8', '>=' );
$is_min_fse_v = version_compare( get_bloginfo( 'version' ), '6.2', '>=' );
$has_neve_fse = get_template() === 'neve-fse';
$current_theme = wp_get_theme();
$has_neve_fse = $current_theme->template === 'neve-fse' || $current_theme->parent() === 'neve-fse';
$has_enough_attachments = $this->has_min_media_attachments();
$has_enough_old_posts = $this->has_old_posts();

Expand Down

0 comments on commit 9f9be46

Please sign in to comment.