new Core() ]
);
}
/**
* Print settings section blurb.
*
* @return void
*/
public function print_core_rollback() {
global $wp_version;
echo '
';
echo '
' . wp_kses_post( __( 'WARNING: Downgrading WordPress Core may leave your site in an unusable state.', 'core-rollback' ) ) . '
';
echo '
';
echo '
';
echo '
' . wp_kses_post( __( 'INFO: Depending upon your current PHP version, some versions of WordPress core will not be available for rollback.', 'core-rollback' ) ) . '
';
echo '
';
esc_html_e( 'Rollback to latest release or any outdated, secure release version of WordPress Core.', 'core-rollback' );
if ( function_exists( 'wp_is_block_theme' ) && wp_is_block_theme() ) {
echo '
';
echo '
' . wp_kses_post( __( 'INFO: Your site is currently using a block theme. Block themes require at least WordPress 5.9.', 'core-rollback' ) ) . '
';
echo '
';
}
echo '';
echo( '
' . esc_html__( 'Select the rollback version from the dropdown menu.', 'core-rollback' ) . '
' );
echo( '
' . esc_html__( 'Click the `Rollback` button. You will be automatically re-directed to the `update-core.php` page.', 'core-rollback' ) . '
' );
echo( '
' . esc_html__( 'Use the `Re-install` button to rollback to the selected version.', 'core-rollback' ) . '