Help/About: Do not show the "Keep it Classic" section and the link to it at the top when the Classic Editor plugin is already installed.
See #45178. Built from https://develop.svn.wordpress.org/branches/5.0@43947 git-svn-id: http://core.svn.wordpress.org/branches/5.0@43779 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
625cae3537
commit
98b042e189
|
@ -45,7 +45,7 @@ include( ABSPATH . 'wp-admin/admin-header.php' );
|
|||
);
|
||||
?>
|
||||
</div>
|
||||
<?php else : ?>
|
||||
<?php elseif ( ! file_exists( WP_PLUGIN_DIR . '/classic-editor/classic-editor.php' ) ) : ?>
|
||||
<p class="about-text">
|
||||
<a href="#classic-editor"><?php _e( 'Learn how to keep using the old editor.' ); ?></a>
|
||||
</p>
|
||||
|
@ -317,30 +317,32 @@ include( ABSPATH . 'wp-admin/admin-header.php' );
|
|||
|
||||
<hr />
|
||||
|
||||
<div class="feature-section one-col" id="classic-editor">
|
||||
<div class="col">
|
||||
<h2><?php _e( 'Keep it Classic' ); ?></h2>
|
||||
<?php if ( ! file_exists( WP_PLUGIN_DIR . '/classic-editor/classic-editor.php' ) ) : ?>
|
||||
<div class="feature-section one-col" id="classic-editor">
|
||||
<div class="col">
|
||||
<h2><?php _e( 'Keep it Classic' ); ?></h2>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="full-width">
|
||||
<img src="https://wordpress.org/gutenberg/files/2018/11/Classic-2.png" alt="">
|
||||
</div>
|
||||
|
||||
<div class="feature-section one-col">
|
||||
<div class="col">
|
||||
<p><?php _e( 'Prefer to stick with the familiar Classic Editor? No problem! Support for the Classic Editor plugin will remain in WordPress until 2021.' ); ?></p>
|
||||
<p><?php _e( 'The Classic Editor plugin restores the previous WordPress editor and the Edit Post screen. It lets you keep using plugins that extend it, add old-style meta boxes, or otherwise depend on the previous editor. To install, visit your plugins page and click the “Install Now” button next to “Classic Editor.” After the plugin finishes installing, click “Activate.” That’s it! ' ); ?></p>
|
||||
<p><?php _e( 'Note to users of assistive technology: if you experience usability issues with the block editor, we recommend you continue to use the Classic Editor.' ); ?></p>
|
||||
<?php if ( current_user_can( 'install_plugins' ) ) { ?>
|
||||
<div class="col cta">
|
||||
<a class="button button-primary button-hero" href="<?php echo esc_url( wp_nonce_url( self_admin_url( 'plugin-install.php?tab=favorites&user=wordpressdotorg' ), 'save_wporg_username_' . get_current_user_id() ) ); ?>"><?php _e( 'Install the Classic Editor' ); ?></a>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<div class="full-width">
|
||||
<img src="https://wordpress.org/gutenberg/files/2018/11/Classic-2.png" alt="">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<hr />
|
||||
<div class="feature-section one-col">
|
||||
<div class="col">
|
||||
<p><?php _e( 'Prefer to stick with the familiar Classic Editor? No problem! Support for the Classic Editor plugin will remain in WordPress until 2021.' ); ?></p>
|
||||
<p><?php _e( 'The Classic Editor plugin restores the previous WordPress editor and the Edit Post screen. It lets you keep using plugins that extend it, add old-style meta boxes, or otherwise depend on the previous editor. To install, visit your plugins page and click the “Install Now” button next to “Classic Editor”. After the plugin finishes installing, click “Activate”. That’s it!' ); ?></p>
|
||||
<p><?php _e( 'Note to users of assistive technology: if you experience usability issues with the block editor, we recommend you continue to use the Classic Editor.' ); ?></p>
|
||||
<?php if ( current_user_can( 'install_plugins' ) ) { ?>
|
||||
<div class="col cta">
|
||||
<a class="button button-primary button-hero" href="<?php echo esc_url( wp_nonce_url( self_admin_url( 'plugin-install.php?tab=favorites&user=wordpressdotorg' ), 'save_wporg_username_' . get_current_user_id() ) ); ?>"><?php _e( 'Install the Classic Editor' ); ?></a>
|
||||
</div>
|
||||
<?php } ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<hr />
|
||||
<?php endif; ?>
|
||||
|
||||
<div class="return-to-dashboard">
|
||||
<?php if ( current_user_can( 'update_core' ) && isset( $_GET['updated'] ) ) : ?>
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '5.0-RC1-43946';
|
||||
$wp_version = '5.0-RC1-43947';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue