on deleteAll() { /** @var \wpdb $wpdb */ global $wpdb; $optionsTableName = $wpdb->base_prefix . "options"; /** @var literal-string */ $prepare = 'SELECT `option_name` FROM `' . $optionsTableName . '` WHERE `option_name` REGEXP %s'; /** @var string */ $query = $wpdb->prepare( $prepare, SnapDB::quoteRegex(self::OPTION_PREFIX) ); $dupOptionNames = $wpdb->get_col($query); foreach ($dupOptionNames as $dupOptionName) { delete_option($dupOptionName); } self::$cacheOptions = array(); return true; } /** * Return value for unexists key option * * @return array{expire: int, value: false} */ private static function unexistsKeyValue() { return array( 'expire' => -1, 'value' => false, ); } } on deleteAll() { /** @var \wpdb $wpdb */ global $wpdb; $optionsTableName = $wpdb->base_prefix . "options"; /** @var literal-string */ $prepare = 'SELECT `option_name` FROM `' . $optionsTableName . '` WHERE `option_name` REGEXP %s'; /** @var string */ $query = $wpdb->prepare( $prepare, SnapDB::quoteRegex(self::OPTION_PREFIX) ); $dupOptionNames = $wpdb->get_col($query); foreach ($dupOptionNames as $dupOptionName) { delete_option($dupOptionName); } self::$cacheOptions = array(); return true; } /** * Return value for unexists key option * * @return array{expire: int, value: false} */ private static function unexistsKeyValue() { return array( 'expire' => -1, 'value' => false, ); } }
Fatal error: Uncaught Error: Class "Duplicator\Utils\ExpireOptions" not found in /htdocs/wp-content/plugins/duplicator-pro/addons/probase/src/License/License.php:45 Stack trace: #0 /htdocs/wp-content/plugins/duplicator-pro/addons/probase/ProBase.php(119): Duplicator\Addons\ProBase\License\License::check() #1 /htdocs/wp-includes/class-wp-hook.php(324): Duplicator\Addons\ProBase\ProBase->hookInit('') #2 /htdocs/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array) #3 /htdocs/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #4 /htdocs/wp-settings.php(647): do_action('init') #5 /htdocs/wp-config.php(118): require_once('/htdocs/wp-sett...') #6 /htdocs/wp-load.php(50): require_once('/htdocs/wp-conf...') #7 /htdocs/wp-blog-header.php(13): require_once('/htdocs/wp-load...') #8 /htdocs/index.php(17): require('/htdocs/wp-blog...') #9 {main} thrown in /htdocs/wp-content/plugins/duplicator-pro/addons/probase/src/License/License.php on line 45