We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1043075 + a68094f commit a234930Copy full SHA for a234930
php/media/class-woocommercegallery.php
@@ -68,9 +68,7 @@ public static function woocommerce_active() {
68
* @return bool
69
*/
70
public function enabled() {
71
- return ! empty( $this->gallery->media->plugin->settings->get_value( 'gallery_woocommerce_enabled' ) ) ?
72
- (bool) $this->gallery->media->plugin->settings->get_value( 'gallery_woocommerce_enabled' ) :
73
- false;
+ return 'on' === $this->gallery->media->plugin->settings->get_value( 'gallery_woocommerce_enabled' );
74
}
75
76
/**
0 commit comments