Warning: session_start(): Session cannot be started after headers have already been sent in /home/tvrreohg/public_html/manga.php on line 13
Rewind transition by deactivating VaultPress when needed.
*
* @package automattic/jetpack
*/
use Automattic\Jetpack\Redirect;
/**
* Notify user that VaultPress has been disabled. Hide VaultPress notice that requested attention.
*
* @since 5.8
*/
function jetpack_vaultpress_rewind_enabled_notice() {
// The deactivation is performed here because there may be pages that admin_init runs on,
// such as admin_ajax, that could deactivate the plugin without showing this notification.
deactivate_plugins( 'vaultpress/vaultpress.php' );
// Remove WP core notice that says that the plugin was activated.
unset( $_GET['activate'] ); // phpcs:ignore WordPress.Security.NonceVerification
$message = sprintf(
wp_kses(
/* Translators: first variable is the full URL to the new dashboard */
__( 'Jetpack is now handling your backups.
VaultPress is no longer needed and has been deactivated. You can access your backups at this dashboard.
', 'jetpack' ),
array(
'a' => array(
'href' => array(),
'target' => array(),
'rel' => array(),
),
'p' => array(
'style' => array(),
),
'strong' => array(),
)
),
esc_url( Redirect::get_url( 'calypso-backups' ) )
);
wp_admin_notice(
$message,
array(
'type' => 'success',
'dismissible' => true,
'additional_classes' => array( 'vp-deactivated' ),
'paragraph_wrap' => false,
)
);
?>