| @@ -7,9 +7,8 @@ | ||
| 7 | 7 | exit( 'This script cannot be accessed directly.' ); |
| 8 | 8 | } |
| 9 | 9 | |
| 10 | 10 | |
| 11 | -use RadiusTheme\SB\Models\ExtraSettings; | |
| 12 | 11 | use RadiusTheme\SB\Traits\SingletonTrait; |
| 13 | 12 | |
| 14 | 13 | final class Compare { |
| 15 | 14 | |
| @@ -24,18 +23,12 @@ | ||
| 24 | 23 | use SingletonTrait; |
| 25 | 24 | |
| 26 | 25 | function __construct() { |
| 27 | 26 | |
| 28 | - if( ! ExtraSettings::instance()->get_option( $this->compare_db_key, get_option( $this->compare_db_key, false ) ) ){ | |
| 27 | + if ( ! get_option( $this->compare_db_key, '' ) ) { | |
| 29 | 28 | add_action( 'wp_loaded', [ $this, 'activate' ] ); |
| 30 | - ExtraSettings::instance()->set_option( $this->compare_db_key, $this->compare_db_version ); | |
| 29 | + update_option( $this->compare_db_key, $this->compare_db_version ); | |
| 31 | 30 | } |
| 32 | - | |
| 33 | - //if ( ! get_option( $this->compare_db_key, '' ) ) { | |
| 34 | - // add_action( 'wp_loaded', [ $this, 'activate' ] ); | |
| 35 | - // update_option( $this->compare_db_key, $this->compare_db_version ); | |
| 36 | - //} | |
| 37 | - | |
| 38 | 31 | CompareFrontEnd::instance(); |
| 39 | 32 | |
| 40 | 33 | new CompareRouteV1(); |
| 41 | 34 | |