Version Description
- On network installations removed the restriction for only network activation.
- Added support for network administrators to choose the default network-wide editor.
- Fixed the settings link in the warning on network About screen.
- Properly added the "Switch to Classic Editor" menu item to the Block Editor menu.
Download this release
Release Info
Developer | azaozz |
Plugin | Classic Editor |
Version | 1.4 |
Comparing to | |
See all releases |
Code changes from version 1.3 to 1.4
- LICENSE.md +1 -1
- classic-editor.php +63 -36
- js/block-editor-plugin.js +11 -11
- readme.txt +29 -3
- screenshot-1.png +0 -0
- screenshot-2.png +0 -0
- screenshot-3.png +0 -0
- screenshot-4.png +0 -0
- screenshot-5.png +0 -0
- screenshot-6.png +0 -0
LICENSE.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
### WordPress - Web publishing software
|
2 |
|
3 |
-
Copyright 2011-
|
4 |
|
5 |
This program is free software; you can redistribute it and/or modify
|
6 |
it under the terms of the GNU General Public License as published by
|
1 |
### WordPress - Web publishing software
|
2 |
|
3 |
+
Copyright 2011-2019 by the contributors
|
4 |
|
5 |
This program is free software; you can redistribute it and/or modify
|
6 |
it under the terms of the GNU General Public License as published by
|
classic-editor.php
CHANGED
@@ -5,14 +5,13 @@
|
|
5 |
* Plugin Name: Classic Editor
|
6 |
* Plugin URI: https://wordpress.org/plugins/classic-editor/
|
7 |
* Description: Enables the WordPress classic editor and the old-style Edit Post screen with TinyMCE, Meta Boxes, etc. Supports the older plugins that extend this screen.
|
8 |
-
* Version: 1.
|
9 |
* Author: WordPress Contributors
|
10 |
* Author URI: https://github.com/WordPress/classic-editor/
|
11 |
* License: GPLv2 or later
|
12 |
* License URI: http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
|
13 |
* Text Domain: classic-editor
|
14 |
* Domain Path: /languages
|
15 |
-
* Network: true
|
16 |
*
|
17 |
* This program is free software; you can redistribute it and/or modify it under the terms of the GNU
|
18 |
* General Public License version 2, as published by the Free Software Foundation. You may NOT assume
|
@@ -28,7 +27,6 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
28 |
|
29 |
if ( ! class_exists( 'Classic_Editor' ) ) :
|
30 |
class Classic_Editor {
|
31 |
-
const plugin_version = 1.2;
|
32 |
private static $settings;
|
33 |
private static $supported_post_types = array();
|
34 |
|
@@ -49,8 +47,10 @@ class Classic_Editor {
|
|
49 |
}
|
50 |
|
51 |
if ( ! $settings['hide-settings-ui'] ) {
|
52 |
-
//
|
53 |
add_filter( 'plugin_action_links', array( __CLASS__, 'add_settings_link' ), 10, 2 );
|
|
|
|
|
54 |
add_action( 'admin_init', array( __CLASS__, 'register_settings' ) );
|
55 |
|
56 |
if ( $settings['allow-users'] ) {
|
@@ -95,8 +95,7 @@ class Classic_Editor {
|
|
95 |
|
96 |
// Switch editors while editing a post
|
97 |
add_action( 'add_meta_boxes', array( __CLASS__, 'add_meta_box' ), 10, 2 );
|
98 |
-
|
99 |
-
// add_action( 'enqueue_block_editor_assets', array( __CLASS__, 'enqueue_block_editor_scripts' ) );
|
100 |
} else {
|
101 |
if ( $settings['editor'] === 'classic' ) {
|
102 |
if ( $block_editor ) {
|
@@ -200,7 +199,7 @@ class Classic_Editor {
|
|
200 |
|
201 |
if ( is_multisite() ) {
|
202 |
$defaults = array(
|
203 |
-
'editor' => 'classic',
|
204 |
'allow-users' => false,
|
205 |
);
|
206 |
|
@@ -422,7 +421,7 @@ class Classic_Editor {
|
|
422 |
?>
|
423 |
<table class="form-table">
|
424 |
<tr class="classic-editor-user-options">
|
425 |
-
<th scope="row"><?php _e( 'Editor', 'classic-editor' ); ?></th>
|
426 |
<td>
|
427 |
<?php wp_nonce_field( 'allow-user-settings', 'classic-editor-user-settings' ); ?>
|
428 |
<?php self::settings_1(); ?>
|
@@ -434,17 +433,32 @@ class Classic_Editor {
|
|
434 |
}
|
435 |
|
436 |
public static function network_settings() {
|
437 |
-
$
|
|
|
438 |
|
439 |
?>
|
|
|
440 |
<table class="form-table">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
441 |
<tr>
|
442 |
-
<th scope="row"><?php
|
443 |
<td>
|
444 |
-
|
445 |
-
|
446 |
-
|
447 |
-
<p class="description"><?php _e( 'By default the Block Editor is replaced with the Classic Editor and users cannot switch editors.', 'classic-editor' ); ?></p>
|
448 |
</td>
|
449 |
</tr>
|
450 |
</table>
|
@@ -457,6 +471,11 @@ class Classic_Editor {
|
|
457 |
current_user_can( 'manage_network_options' ) &&
|
458 |
wp_verify_nonce( $_POST['classic-editor-network-settings'], 'allow-site-admin-settings' )
|
459 |
) {
|
|
|
|
|
|
|
|
|
|
|
460 |
if ( isset( $_POST['classic-editor-allow-sites'] ) && $_POST['classic-editor-allow-sites'] === 'allow' ) {
|
461 |
update_network_option( null, 'classic-editor-allow-sites', 'allow' );
|
462 |
} else {
|
@@ -472,7 +491,7 @@ class Classic_Editor {
|
|
472 |
if (
|
473 |
$pagenow !== 'about.php' ||
|
474 |
$settings['hide-settings-ui'] ||
|
475 |
-
$settings['editor'] === 'block' ||
|
476 |
$settings['allow-users'] ||
|
477 |
! current_user_can( 'edit_posts' )
|
478 |
) {
|
@@ -485,7 +504,13 @@ class Classic_Editor {
|
|
485 |
$message = __( 'The Classic Editor plugin prevents use of the new Block Editor.', 'classic-editor' );
|
486 |
|
487 |
if ( current_user_can( 'manage_options' ) ) {
|
488 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
489 |
}
|
490 |
|
491 |
$margin = is_rtl() ? 'margin: 1em 0 0 160px;' : 'margin: 1em 160px 0 0;';
|
@@ -618,33 +643,25 @@ class Classic_Editor {
|
|
618 |
$id = 'classic-editor-switch-editor';
|
619 |
$title = __( 'Editor', 'classic-editor' );
|
620 |
$callback = array( __CLASS__, 'do_meta_box' );
|
621 |
-
/* Add when the Block Editor plugin is enabled.
|
622 |
$args = array(
|
623 |
'__back_compat_meta_box' => true,
|
624 |
);
|
625 |
-
*/
|
626 |
|
627 |
-
add_meta_box( $id, $title, $callback, null, 'side', 'default' );
|
628 |
}
|
629 |
|
630 |
public static function do_meta_box( $post ) {
|
631 |
$edit_url = get_edit_post_link( $post->ID, 'raw' );
|
632 |
|
633 |
-
|
634 |
-
|
635 |
-
$edit_url = add_query_arg( 'classic-editor', '', $edit_url );
|
636 |
-
$link_text = __( 'Switch to Classic Editor', 'classic-editor' );
|
637 |
-
} else {
|
638 |
-
// Switch to Block Editor.
|
639 |
-
$edit_url = remove_query_arg( 'classic-editor', $edit_url );
|
640 |
-
$link_text = __( 'Switch to Block Editor', 'classic-editor' );
|
641 |
-
}
|
642 |
-
|
643 |
// Forget the previous value when going to a specific editor.
|
644 |
$edit_url = add_query_arg( 'classic-editor__forget', '', $edit_url );
|
645 |
|
646 |
?>
|
647 |
-
<p style="margin: 1em 0;"
|
|
|
|
|
648 |
<?php
|
649 |
}
|
650 |
|
@@ -657,15 +674,15 @@ class Classic_Editor {
|
|
657 |
}
|
658 |
|
659 |
wp_enqueue_script(
|
660 |
-
'classic-editor-
|
661 |
plugins_url( 'js/block-editor-plugin.js', __FILE__ ),
|
662 |
array( 'wp-element', 'wp-components', 'lodash' ),
|
663 |
-
|
664 |
true
|
665 |
);
|
666 |
|
667 |
wp_localize_script(
|
668 |
-
'classic-editor-
|
669 |
'classicEditorPluginL10n',
|
670 |
array( 'linkText' => __( 'Switch to Classic Editor', 'classic-editor' ) )
|
671 |
);
|
@@ -678,7 +695,15 @@ class Classic_Editor {
|
|
678 |
$settings = self::get_settings();
|
679 |
|
680 |
if ( $file === 'classic-editor/classic-editor.php' && ! $settings['hide-settings-ui'] && current_user_can( 'manage_options' ) ) {
|
681 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
682 |
}
|
683 |
|
684 |
return $links;
|
@@ -793,14 +818,14 @@ class Classic_Editor {
|
|
793 |
|
794 |
// Link to the Block Editor.
|
795 |
$url = remove_query_arg( 'classic-editor', $edit_url );
|
796 |
-
$text = _x( 'Block Editor', 'Editor Name', 'classic-editor' );
|
797 |
/* translators: %s: post title */
|
798 |
$label = sprintf( __( 'Edit “%s” in the Block Editor', 'classic-editor' ), $title );
|
799 |
$edit_block = sprintf( '<a href="%s" aria-label="%s">%s</a>', esc_url( $url ), esc_attr( $label ), $text );
|
800 |
|
801 |
// Link to the Classic Editor.
|
802 |
$url = add_query_arg( 'classic-editor', '', $edit_url );
|
803 |
-
$text = _x( 'Classic Editor', 'Editor Name', 'classic-editor' );
|
804 |
/* translators: %s: post title */
|
805 |
$label = sprintf( __( 'Edit “%s” in the Classic Editor', 'classic-editor' ), $title );
|
806 |
$edit_classic = sprintf( '<a href="%s" aria-label="%s">%s</a>', esc_url( $url ), esc_attr( $label ), $text );
|
@@ -884,6 +909,7 @@ class Classic_Editor {
|
|
884 |
*/
|
885 |
public static function activate() {
|
886 |
if ( is_multisite() ) {
|
|
|
887 |
add_network_option( null, 'classic-editor-allow-sites', 'disallow' );
|
888 |
}
|
889 |
|
@@ -896,6 +922,7 @@ class Classic_Editor {
|
|
896 |
*/
|
897 |
public static function uninstall() {
|
898 |
if ( is_multisite() ) {
|
|
|
899 |
delete_network_option( null, 'classic-editor-allow-sites' );
|
900 |
}
|
901 |
|
5 |
* Plugin Name: Classic Editor
|
6 |
* Plugin URI: https://wordpress.org/plugins/classic-editor/
|
7 |
* Description: Enables the WordPress classic editor and the old-style Edit Post screen with TinyMCE, Meta Boxes, etc. Supports the older plugins that extend this screen.
|
8 |
+
* Version: 1.4
|
9 |
* Author: WordPress Contributors
|
10 |
* Author URI: https://github.com/WordPress/classic-editor/
|
11 |
* License: GPLv2 or later
|
12 |
* License URI: http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
|
13 |
* Text Domain: classic-editor
|
14 |
* Domain Path: /languages
|
|
|
15 |
*
|
16 |
* This program is free software; you can redistribute it and/or modify it under the terms of the GNU
|
17 |
* General Public License version 2, as published by the Free Software Foundation. You may NOT assume
|
27 |
|
28 |
if ( ! class_exists( 'Classic_Editor' ) ) :
|
29 |
class Classic_Editor {
|
|
|
30 |
private static $settings;
|
31 |
private static $supported_post_types = array();
|
32 |
|
47 |
}
|
48 |
|
49 |
if ( ! $settings['hide-settings-ui'] ) {
|
50 |
+
// Add a link to the plugin's settings and/or network admin settings in the plugins list table.
|
51 |
add_filter( 'plugin_action_links', array( __CLASS__, 'add_settings_link' ), 10, 2 );
|
52 |
+
add_filter( 'network_admin_plugin_action_links', array( __CLASS__, 'add_settings_link' ), 10, 2 );
|
53 |
+
|
54 |
add_action( 'admin_init', array( __CLASS__, 'register_settings' ) );
|
55 |
|
56 |
if ( $settings['allow-users'] ) {
|
95 |
|
96 |
// Switch editors while editing a post
|
97 |
add_action( 'add_meta_boxes', array( __CLASS__, 'add_meta_box' ), 10, 2 );
|
98 |
+
add_action( 'enqueue_block_editor_assets', array( __CLASS__, 'enqueue_block_editor_scripts' ) );
|
|
|
99 |
} else {
|
100 |
if ( $settings['editor'] === 'classic' ) {
|
101 |
if ( $block_editor ) {
|
199 |
|
200 |
if ( is_multisite() ) {
|
201 |
$defaults = array(
|
202 |
+
'editor' => get_network_option( null, 'classic-editor-replace' ) === 'block' ? 'block' : 'classic',
|
203 |
'allow-users' => false,
|
204 |
);
|
205 |
|
421 |
?>
|
422 |
<table class="form-table">
|
423 |
<tr class="classic-editor-user-options">
|
424 |
+
<th scope="row"><?php _e( 'Default Editor', 'classic-editor' ); ?></th>
|
425 |
<td>
|
426 |
<?php wp_nonce_field( 'allow-user-settings', 'classic-editor-user-settings' ); ?>
|
427 |
<?php self::settings_1(); ?>
|
433 |
}
|
434 |
|
435 |
public static function network_settings() {
|
436 |
+
$editor = get_network_option( null, 'classic-editor-replace' );
|
437 |
+
$is_checked = ( get_network_option( null, 'classic-editor-allow-sites' ) === 'allow' );
|
438 |
|
439 |
?>
|
440 |
+
<h2 id="classic-editor-options"><?php _e( 'Editor Settings', 'classic-editor' ); ?></h2>
|
441 |
<table class="form-table">
|
442 |
+
<?php wp_nonce_field( 'allow-site-admin-settings', 'classic-editor-network-settings' ); ?>
|
443 |
+
<tr>
|
444 |
+
<th scope="row"><?php _e( 'Default editor for all sites', 'classic-editor' ); ?></th>
|
445 |
+
<td>
|
446 |
+
<p>
|
447 |
+
<input type="radio" name="classic-editor-replace" id="classic-editor-classic" value="classic"<?php if ( $editor !== 'block' ) echo ' checked'; ?> />
|
448 |
+
<label for="classic-editor-classic"><?php _ex( 'Classic Editor', 'Editor Name', 'classic-editor' ); ?></label>
|
449 |
+
</p>
|
450 |
+
<p>
|
451 |
+
<input type="radio" name="classic-editor-replace" id="classic-editor-block" value="block"<?php if ( $editor === 'block' ) echo ' checked'; ?> />
|
452 |
+
<label for="classic-editor-block"><?php _ex( 'Block Editor', 'Editor Name', 'classic-editor' ); ?></label>
|
453 |
+
</p>
|
454 |
+
</td>
|
455 |
+
</tr>
|
456 |
<tr>
|
457 |
+
<th scope="row"><?php _e( 'Change settings', 'classic-editor' ); ?></th>
|
458 |
<td>
|
459 |
+
<input type="checkbox" name="classic-editor-allow-sites" id="classic-editor-allow-sites" value="allow"<?php if ( $is_checked ) echo ' checked'; ?>>
|
460 |
+
<label for="classic-editor-allow-sites"><?php _e( 'Allow site admins to change settings', 'classic-editor' ); ?></label>
|
461 |
+
<p class="description"><?php _e( 'By default the Block Editor is replaced with the Classic Editor and users cannot switch editors.', 'classic-editor' ); ?></p>
|
|
|
462 |
</td>
|
463 |
</tr>
|
464 |
</table>
|
471 |
current_user_can( 'manage_network_options' ) &&
|
472 |
wp_verify_nonce( $_POST['classic-editor-network-settings'], 'allow-site-admin-settings' )
|
473 |
) {
|
474 |
+
if ( isset( $_POST['classic-editor-replace'] ) && $_POST['classic-editor-replace'] === 'block' ) {
|
475 |
+
update_network_option( null, 'classic-editor-replace', 'block' );
|
476 |
+
} else {
|
477 |
+
update_network_option( null, 'classic-editor-replace', 'classic' );
|
478 |
+
}
|
479 |
if ( isset( $_POST['classic-editor-allow-sites'] ) && $_POST['classic-editor-allow-sites'] === 'allow' ) {
|
480 |
update_network_option( null, 'classic-editor-allow-sites', 'allow' );
|
481 |
} else {
|
491 |
if (
|
492 |
$pagenow !== 'about.php' ||
|
493 |
$settings['hide-settings-ui'] ||
|
494 |
+
$settings['editor'] === 'block' ||
|
495 |
$settings['allow-users'] ||
|
496 |
! current_user_can( 'edit_posts' )
|
497 |
) {
|
504 |
$message = __( 'The Classic Editor plugin prevents use of the new Block Editor.', 'classic-editor' );
|
505 |
|
506 |
if ( current_user_can( 'manage_options' ) ) {
|
507 |
+
if ( is_network_admin() ) {
|
508 |
+
$url = 'settings.php#classic-editor-options';
|
509 |
+
} else {
|
510 |
+
$url = 'options-writing.php#classic-editor-options';
|
511 |
+
}
|
512 |
+
|
513 |
+
$message .= ' ' . sprintf( __( 'Change the %1$sClassic Editor settings%2$s.', 'classic-editor' ), sprintf( '<a href="%s">', $url ), '</a>' );
|
514 |
}
|
515 |
|
516 |
$margin = is_rtl() ? 'margin: 1em 0 0 160px;' : 'margin: 1em 160px 0 0;';
|
643 |
$id = 'classic-editor-switch-editor';
|
644 |
$title = __( 'Editor', 'classic-editor' );
|
645 |
$callback = array( __CLASS__, 'do_meta_box' );
|
|
|
646 |
$args = array(
|
647 |
'__back_compat_meta_box' => true,
|
648 |
);
|
|
|
649 |
|
650 |
+
add_meta_box( $id, $title, $callback, null, 'side', 'default', $args );
|
651 |
}
|
652 |
|
653 |
public static function do_meta_box( $post ) {
|
654 |
$edit_url = get_edit_post_link( $post->ID, 'raw' );
|
655 |
|
656 |
+
// Switching to Block Editor.
|
657 |
+
$edit_url = remove_query_arg( 'classic-editor', $edit_url );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
658 |
// Forget the previous value when going to a specific editor.
|
659 |
$edit_url = add_query_arg( 'classic-editor__forget', '', $edit_url );
|
660 |
|
661 |
?>
|
662 |
+
<p style="margin: 1em 0;">
|
663 |
+
<a href="<?php echo esc_url( $edit_url ); ?>"><?php _e( 'Switch to Block Editor', 'classic-editor' ); ?></a>
|
664 |
+
</p>
|
665 |
<?php
|
666 |
}
|
667 |
|
674 |
}
|
675 |
|
676 |
wp_enqueue_script(
|
677 |
+
'classic-editor-plugin',
|
678 |
plugins_url( 'js/block-editor-plugin.js', __FILE__ ),
|
679 |
array( 'wp-element', 'wp-components', 'lodash' ),
|
680 |
+
'1.4',
|
681 |
true
|
682 |
);
|
683 |
|
684 |
wp_localize_script(
|
685 |
+
'classic-editor-plugin',
|
686 |
'classicEditorPluginL10n',
|
687 |
array( 'linkText' => __( 'Switch to Classic Editor', 'classic-editor' ) )
|
688 |
);
|
695 |
$settings = self::get_settings();
|
696 |
|
697 |
if ( $file === 'classic-editor/classic-editor.php' && ! $settings['hide-settings-ui'] && current_user_can( 'manage_options' ) ) {
|
698 |
+
if ( current_filter() === 'plugin_action_links' ) {
|
699 |
+
$url = admin_url( 'options-writing.php#classic-editor-options' );
|
700 |
+
} else {
|
701 |
+
$url = admin_url( '/network/settings.php#classic-editor-options' );
|
702 |
+
}
|
703 |
+
|
704 |
+
// Prevent warnings in PHP 7.0+ when a plugin uses this filter incorrectly.
|
705 |
+
$links = (array) $links;
|
706 |
+
$links[] = sprintf( '<a href="%s">%s</a>', $url, __( 'Settings', 'classic-editor' ) );
|
707 |
}
|
708 |
|
709 |
return $links;
|
818 |
|
819 |
// Link to the Block Editor.
|
820 |
$url = remove_query_arg( 'classic-editor', $edit_url );
|
821 |
+
$text = _x( 'Edit (Block Editor)', 'Editor Name', 'classic-editor' );
|
822 |
/* translators: %s: post title */
|
823 |
$label = sprintf( __( 'Edit “%s” in the Block Editor', 'classic-editor' ), $title );
|
824 |
$edit_block = sprintf( '<a href="%s" aria-label="%s">%s</a>', esc_url( $url ), esc_attr( $label ), $text );
|
825 |
|
826 |
// Link to the Classic Editor.
|
827 |
$url = add_query_arg( 'classic-editor', '', $edit_url );
|
828 |
+
$text = _x( 'Edit (Classic Editor)', 'Editor Name', 'classic-editor' );
|
829 |
/* translators: %s: post title */
|
830 |
$label = sprintf( __( 'Edit “%s” in the Classic Editor', 'classic-editor' ), $title );
|
831 |
$edit_classic = sprintf( '<a href="%s" aria-label="%s">%s</a>', esc_url( $url ), esc_attr( $label ), $text );
|
909 |
*/
|
910 |
public static function activate() {
|
911 |
if ( is_multisite() ) {
|
912 |
+
add_network_option( null, 'classic-editor-replace', 'classic' );
|
913 |
add_network_option( null, 'classic-editor-allow-sites', 'disallow' );
|
914 |
}
|
915 |
|
922 |
*/
|
923 |
public static function uninstall() {
|
924 |
if ( is_multisite() ) {
|
925 |
+
delete_network_option( null, 'classic-editor-replace' );
|
926 |
delete_network_option( null, 'classic-editor-allow-sites' );
|
927 |
}
|
928 |
|
js/block-editor-plugin.js
CHANGED
@@ -1,23 +1,23 @@
|
|
1 |
-
( function() {
|
2 |
-
|
3 |
-
|
4 |
-
|
5 |
-
const { addQueryArgs } = wp.url;
|
6 |
-
const { registerPlugin } = wp.plugins;
|
7 |
|
8 |
-
registerPlugin( 'classic-editor-
|
9 |
render() {
|
10 |
-
|
11 |
-
|
|
|
|
|
12 |
|
13 |
return createElement(
|
14 |
PluginMoreMenuItem,
|
15 |
{
|
16 |
icon: 'editor-kitchensink',
|
17 |
-
|
18 |
},
|
19 |
linkText
|
20 |
);
|
21 |
},
|
22 |
} );
|
23 |
-
} )();
|
1 |
+
( function( wp ) {
|
2 |
+
if ( ! wp ) {
|
3 |
+
return;
|
4 |
+
}
|
|
|
|
|
5 |
|
6 |
+
wp.plugins.registerPlugin( 'classic-editor-plugin', {
|
7 |
render() {
|
8 |
+
var createElement = wp.element.createElement;
|
9 |
+
var PluginMoreMenuItem = wp.editPost.PluginMoreMenuItem;
|
10 |
+
var url = wp.url.addQueryArgs( document.location.href, { 'classic-editor': '', 'classic-editor__forget': '' } );
|
11 |
+
var linkText = lodash.get( window, [ 'classicEditorPluginL10n', 'linkText' ] ) || 'Switch to Classic Editor';
|
12 |
|
13 |
return createElement(
|
14 |
PluginMoreMenuItem,
|
15 |
{
|
16 |
icon: 'editor-kitchensink',
|
17 |
+
href: url,
|
18 |
},
|
19 |
linkText
|
20 |
);
|
21 |
},
|
22 |
} );
|
23 |
+
} )( window.wp );
|
readme.txt
CHANGED
@@ -2,8 +2,8 @@
|
|
2 |
Contributors: wordpressdotorg, azaozz, melchoyce, chanthaboune, alexislloyd, pento, youknowriad, desrosj, luciano-croce
|
3 |
Tags: gutenberg, disable, disable gutenberg, editor, classic editor, block editor
|
4 |
Requires at least: 4.9
|
5 |
-
Tested up to: 5.
|
6 |
-
Stable tag: 1.
|
7 |
Requires PHP: 5.2.4
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
@@ -29,6 +29,12 @@ By default, this plugin hides all functionality available in the new Block Edito
|
|
29 |
|
30 |
== Changelog ==
|
31 |
|
|
|
|
|
|
|
|
|
|
|
|
|
32 |
= 1.3 =
|
33 |
* Fixed removal of the "Try Gutenberg" dashboard widget.
|
34 |
* Fixed condition for displaying of the after upgrade notice on the "What's New" screen. Shown when the Classic Editor is selected and users cannot switch editors.
|
@@ -79,10 +85,30 @@ Fixed a bug where it may attempt to load the Block Editor for post types that do
|
|
79 |
= 0.1 =
|
80 |
Initial release.
|
81 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
82 |
== Screenshots ==
|
83 |
1. Admin settings on the Settings -> Writing screen.
|
84 |
2. User settings on the Profile screen. Visible when the users are allowed to switch editors.
|
85 |
3. "Action links" to choose alternative editor. Visible when the users are allowed to switch editors.
|
86 |
4. Link to switch to the Block Editor while editing a post in the Classic Editor. Visible when the users are allowed to switch editors.
|
87 |
5. Link to switch to the Classic Editor while editing a post in the Block Editor. Visible when the users are allowed to switch editors.
|
88 |
-
6. Network
|
|
2 |
Contributors: wordpressdotorg, azaozz, melchoyce, chanthaboune, alexislloyd, pento, youknowriad, desrosj, luciano-croce
|
3 |
Tags: gutenberg, disable, disable gutenberg, editor, classic editor, block editor
|
4 |
Requires at least: 4.9
|
5 |
+
Tested up to: 5.1
|
6 |
+
Stable tag: 1.4
|
7 |
Requires PHP: 5.2.4
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
29 |
|
30 |
== Changelog ==
|
31 |
|
32 |
+
= 1.4 =
|
33 |
+
* On network installations removed the restriction for only network activation.
|
34 |
+
* Added support for network administrators to choose the default network-wide editor.
|
35 |
+
* Fixed the settings link in the warning on network About screen.
|
36 |
+
* Properly added the "Switch to Classic Editor" menu item to the Block Editor menu.
|
37 |
+
|
38 |
= 1.3 =
|
39 |
* Fixed removal of the "Try Gutenberg" dashboard widget.
|
40 |
* Fixed condition for displaying of the after upgrade notice on the "What's New" screen. Shown when the Classic Editor is selected and users cannot switch editors.
|
85 |
= 0.1 =
|
86 |
Initial release.
|
87 |
|
88 |
+
== Frequently Asked Questions ==
|
89 |
+
|
90 |
+
= Default settings =
|
91 |
+
|
92 |
+
When activated this plugin will restore the previous ("classic") WordPress editor and hide the new Block Editor ("Gutenberg").
|
93 |
+
These settings can be changed at the Settings => Writing screen.
|
94 |
+
|
95 |
+
= Default settings for network installation =
|
96 |
+
|
97 |
+
There are two options:
|
98 |
+
|
99 |
+
* When network-activated this plugin will set the Classic Editor as default and prevent site administrators and users from changing editors.
|
100 |
+
The settings can be changed and default network-wide editor can be selected on the Network Settings screen.
|
101 |
+
* When not network-activated each site administrator will be able to activate the plugin and choose options for their users.
|
102 |
+
|
103 |
+
= Cannot find the "Switch to Classic Editor" link =
|
104 |
+
|
105 |
+
It is in the main Block Editor menu, see this [screenshot](https://ps.w.org/classic-editor/assets/screenshot-7.png?rev=2023480).
|
106 |
+
|
107 |
== Screenshots ==
|
108 |
1. Admin settings on the Settings -> Writing screen.
|
109 |
2. User settings on the Profile screen. Visible when the users are allowed to switch editors.
|
110 |
3. "Action links" to choose alternative editor. Visible when the users are allowed to switch editors.
|
111 |
4. Link to switch to the Block Editor while editing a post in the Classic Editor. Visible when the users are allowed to switch editors.
|
112 |
5. Link to switch to the Classic Editor while editing a post in the Block Editor. Visible when the users are allowed to switch editors.
|
113 |
+
6. Network settings to select the default editor for the network and allow site admins to change it.
|
114 |
+
7. The "Switch to Classic Editor" link.
|
screenshot-1.png
DELETED
Binary file
|
screenshot-2.png
DELETED
Binary file
|
screenshot-3.png
DELETED
Binary file
|
screenshot-4.png
DELETED
Binary file
|
screenshot-5.png
DELETED
Binary file
|
screenshot-6.png
DELETED
Binary file
|