mirror of
https://github.com/oblakstudio/wp-plugin-installer.git
synced 2026-03-03 23:57:22 +08:00
38 lines
1.2 KiB
PHP
38 lines
1.2 KiB
PHP
<?php
|
|
/**
|
|
* Admin View: Notice - Updating
|
|
*
|
|
* @package Plugin Installer
|
|
*/
|
|
|
|
use Automattic\Jetpack\Constants;
|
|
|
|
defined( 'ABSPATH' ) || exit;
|
|
|
|
$cron_disabled = Constants::is_true( 'DISABLE_WP_CRON' );
|
|
$cron_cta = $cron_disabled ? __( 'You can manually run queued updates here.', 'oblak-plugin-installer' ) : __( 'View progress →', 'oblak-plugin-installer' );
|
|
?>
|
|
<p>
|
|
<strong>
|
|
<?php
|
|
printf(
|
|
/* translators: %s: plugin name */
|
|
esc_html__( '%s database update', 'oblak-plugin-installer' ),
|
|
esc_html( $plugin_name )
|
|
);
|
|
?>
|
|
</strong>
|
|
</p>
|
|
<p>
|
|
<?php
|
|
printf(
|
|
/* translators: %s: plugin name */
|
|
esc_html__( '%s is updating the database in the background. The database update process may take a little while, so please be patient.', 'oblak-plugin-installer' ),
|
|
esc_html( $plugin_name )
|
|
);
|
|
if ( $cron_disabled ) {
|
|
echo '<br>' . esc_html__( 'Note: WP CRON has been disabled on your install which may prevent this update from completing.', 'oblak-plugin-installer' );
|
|
}
|
|
?>
|
|
<a href="<?php echo esc_url( $scheduler_url ); ?>"><?php echo esc_html( $cron_cta ); ?></a>
|
|
</p>
|