loaded() ) {
return false;
}
$option_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";
}
}
Parse error: syntax error, unexpected '}', expecting end of file in /home/kordian1/domains/ostrabrama.pl/public_html/wp-includes/theme.php on line 493
Fatal error: Uncaught Error: Call to a member function set() on null in /home/kordian1/domains/ostrabrama.pl/public_html/wp-includes/l10n.php:856
Stack trace:
#0 /home/kordian1/domains/ostrabrama.pl/public_html/wp-includes/l10n.php(959): load_textdomain('default', '/home/kordian1/...', 'pl_PL')
#1 /home/kordian1/domains/ostrabrama.pl/public_html/wp-includes/class-wp-fatal-error-handler.php(49): load_default_textdomain()
#2 [internal function]: WP_Fatal_Error_Handler->handle()
#3 {main}
thrown in /home/kordian1/domains/ostrabrama.pl/public_html/wp-includes/l10n.php on line 856