Ticket #45178: 45178.21.diff
File 45178.21.diff, 3.5 KB (added by , 2 years ago) |
---|
-
src/wp-admin/about.php
45 45 ); 46 46 ?> 47 47 </div> 48 <?php elseif ( ! file_exists( WP_PLUGIN_DIR . '/classic-editor/classic-editor.php' ) ) : ?>48 <?php elseif ( ! is_plugin_active( 'classic-editor/classic-editor.php' ) ) : ?> 49 49 <p class="about-text"> 50 50 <a href="#classic-editor"><?php _e( 'Learn how to keep using the old editor.' ); ?></a> 51 51 </p> … … 317 317 318 318 <hr /> 319 319 320 <?php if ( ! file_exists( WP_PLUGIN_DIR . '/classic-editor/classic-editor.php' ) ) : ?>320 <?php if ( ! is_plugin_active( 'classic-editor/classic-editor.php' ) ) : ?> 321 321 <div class="feature-section one-col" id="classic-editor"> 322 322 <div class="col"> 323 323 <h2><?php _e( 'Keep it Classic' ); ?></h2> … … 331 331 <div class="feature-section one-col"> 332 332 <div class="col"> 333 333 <p><?php _e( 'Prefer to stick with the familiar Classic Editor? No problem! Support for the Classic Editor plugin will remain in WordPress through 2021.' ); ?></p> 334 <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> 334 <p> 335 <?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.' ); ?> 336 <?php if ( ! file_exists( WP_PLUGIN_DIR . '/classic-editor/classic-editor.php' ) ) { ?> 337 <?php _e( '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!' ); ?> 338 <?php } else { ?> 339 <?php _e( 'The Classic Editor plugin is already installed. Visit your plugins page and click “Activate” under “Classic Editor”. That’s it!' ); ?> 340 <?php } ?> 341 </p> 335 342 <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> 336 <?php if ( current_user_can( 'install_plugins' ) ) { ?>343 <?php if ( ! file_exists( WP_PLUGIN_DIR . '/classic-editor/classic-editor.php' ) && current_user_can( 'install_plugins' ) ) { ?> 337 344 <div class="col cta"> 338 345 <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=0' ), 'save_wporg_username_' . get_current_user_id() ) ); ?>"><?php _e( 'Install the Classic Editor' ); ?></a> 339 346 </div> 347 <?php } elseif ( current_user_can( 'activate_plugins' ) ) { ?> 348 <?php $activate_url = wp_nonce_url( self_admin_url( 'plugins.php?action=activate&plugin=classic-editor/classic-editor.php' ), 'activate-plugin_classic-editor/classic-editor.php' ); ?> 349 <div class="col cta"> 350 <a class="button button-primary button-hero" href="<?php echo esc_url( $activate_url ); ?>"><?php _e( 'Activate the Classic Editor' ); ?></a> 351 </div> 340 352 <?php } ?> 341 353 </div> 342 354 </div>