// Load the theme's functions.php to test whether it throws a fatal error.
ob_start();
if ( !
defined( 'WP_SANDBOX_SCRAPING'
) ) { define( 'WP_SANDBOX_SCRAPING', true
);
} include $functions_path;
ob_clean();
} } $result =
wp_paused_themes()->
delete( $extension );
if ( !
$result ) { return new WP_Error( 'could_not_resume_theme',
__( 'Could not resume the theme.'
) );
} return true;
}