_name = $this->get_option_name();
if ( ! $option_name ) {
return false;
}
$paused_extensions = (array) get_option( $option_name, array() );
unset( $paused_extensions[ $this->type ] );
if ( ! $paused_extensions ) {
return delete_option( $option_name );
}
return update_option( $option_name, $paused_extensions, false );
}
/**
* Checks whether the underlying API to store paused extensions is loaded.
*
* @since 5.2.0
*
* @return bool True if the API is loaded, false otherwise.
*/
protected function is_api_loaded() {
return function_exists( 'get_option' );
}
/**
* Get the option name for storing paused extensions.
*
* @since 5.2.0
*
* @return string
*/
protected function get_option_name() {
if ( ! wp_recovery_mode()->is_active() ) {
return '';
}
$session_id = wp_recovery_mode()->get_session_id();
if ( empty( $session_id ) ) {
return '';
}
return "{$session_id}_paused_extensions";
}
}
Fatal error: Uncaught Error: Class "WP_Paused_Extensions_Storage" not found in /home/parkwood/public_html/wp-includes/error-protection.php:33
Stack trace:
#0 /home/parkwood/public_html/wp-includes/class-wp-theme.php(521): wp_paused_themes()
#1 /home/parkwood/public_html/wp-includes/theme.php(133): WP_Theme->__construct('betheme', '/home/parkwood/...')
#2 /home/parkwood/public_html/wp-settings.php(734): wp_get_theme('betheme')
#3 /home/parkwood/public_html/wp-config.php(95): require_once('/home/parkwood/...')
#4 /home/parkwood/public_html/wp-load.php(50): require_once('/home/parkwood/...')
#5 /home/parkwood/public_html/wp-blog-header.php(13): require_once('/home/parkwood/...')
#6 /home/parkwood/public_html/index.php(17): require('/home/parkwood/...')
#7 {main}
thrown in /home/parkwood/public_html/wp-includes/error-protection.php on line 33