Classic Editor Addon - Version 1.4.0

Version Description

  • July 12, 2018
  • fix issue #2
  • adjust readme text and FAQs
Download this release

Release Info

Developer senlin
Plugin Icon wp plugin Classic Editor Addon
Version 1.4.0
Comparing to
See all releases

Version 1.4.0

Files changed (2) hide show
  1. classic-editor-addon.php +69 -0
  2. readme.txt +81 -0
classic-editor-addon.php ADDED
@@ -0,0 +1,69 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Plugin Name: Classic Editor Addon
4
+ * Description: This free "Classic Editor Addon" plugin changes the default behaviour of the "Classic Editor" plugin; and then some. See readme.txt for more details.
5
+
6
+ * Author: <a href="https://so-wp.com">Pieter Bos</a>, <a href="https://gschoppe.com">Greg Schoppe</a>
7
+ * Version: 1.4.0
8
+
9
+ * Requires at least: 4.9
10
+ * Tested up to: 4.9.7
11
+
12
+ * License: GPL-3.0+
13
+ * License URI: http://www.gnu.org/licenses/gpl-3.0.txt
14
+
15
+ * Text Domain: classic-editor-addon
16
+
17
+ * GitHub Plugin URI: https://github.com/senlin/classic-editor-addon
18
+ * GitHub Branch: master
19
+
20
+ * @package WordPress
21
+ * @author Pieter Bos &amp; GSchoppe
22
+ * @since 1.0.0
23
+ */
24
+
25
+ // don't load the plugin file directly
26
+ if ( ! defined( 'ABSPATH' ) ) exit;
27
+
28
+ add_action( 'plugins_loaded', 'classic_editor_addon_pre_init', 1, 0 );
29
+
30
+ function classic_editor_addon_pre_init() {
31
+
32
+ if ( function_exists( 'classic_editor_init_actions' ) ) {
33
+ /**
34
+ * Change the default option of "no-replace" to "replace",
35
+ * which means the checkbox will be unticked and the plugin
36
+ * does what it says from the get-go (L336).
37
+ */
38
+ add_filter( 'pre_option_classic-editor-replace', 'classic_editor_addon_hardcode_replace' );
39
+ }
40
+
41
+ }
42
+
43
+ add_action( 'plugins_loaded', 'classic_editor_addon_post_init', 20, 0 );
44
+
45
+ function classic_editor_addon_post_init() {
46
+
47
+ /**
48
+ * Remove the Try Gutenberg Panel, slated for WordPress 4.9.8
49
+ */
50
+ remove_action( 'try_gutenberg_panel', 'wp_try_gutenberg_panel' );
51
+
52
+ /**
53
+ * Remove the "Add New" Dropdown from post type screens; fixes [issue #2](https://github.com/senlin/classic-editor-addon/issues/2)
54
+ */
55
+ remove_action( 'admin_print_scripts-edit.php', 'gutenberg_replace_default_add_new_button' );
56
+
57
+ if ( function_exists( 'classic_editor_init_actions' ) ) {
58
+ /**
59
+ * Remove Settings link to the settings from the Plugins screen (L277).
60
+ */
61
+ remove_filter( 'plugin_action_links', 'classic_editor_add_settings_link' );
62
+ remove_action( 'admin_init', 'classic_editor_admin_init' );
63
+ }
64
+
65
+ }
66
+
67
+ function classic_editor_addon_hardcode_replace( $value ) {
68
+ return 'replace';
69
+ }
readme.txt ADDED
@@ -0,0 +1,81 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ === Classic Editor Addon ===
2
+ Contributors: senlin, gschoppe
3
+ Tags: gutenberg, classic editor, addon
4
+ Requires at least: 4.9
5
+ Requires PHP: 5.2
6
+ Tested up to: 4.9.7
7
+ Stable tag: 1.4.0
8
+ License: GPL-3.0+
9
+ License URI: http://www.gnu.org/licenses/gpl-3.0.txt
10
+
11
+ This free "Classic Editor Addon" plugin changes the default behaviour of the "Classic Editor" plugin; and then some.
12
+
13
+ == Description ==
14
+
15
+ > GDPR-compliant: does not collect any user data
16
+
17
+ The "Classic Editor" plugin doesn't remove Gutenberg by default. With this free addon we set the option that controls this from no-replace to replace, so no additional action is needed anymore. This is what the Classic Editor should have done out of the box.
18
+
19
+ In addition to this most basic requirement, the "Classic Editor Addon" removes the Settings link from the main Plugins page and removes the plugin's Settings from the Settings > Writing screen. Also the drop down buttons Gutenberg adds to the post type screens is replaced with the regular "Add New" button.
20
+
21
+ Last but not least the Classic Editor Addon suppresses the Nag screen that is slated to arrive in the Dashboard with WP version 4.9.8.
22
+
23
+ The free Classic Editor Addon plugin is targeted at everyone who is not yet ready for Gutenberg and/or who does not want to bother clients with Gutenberg. Install it now on sites and by the time WP 4.9.8 and eventually 5.0 are released, the UX remains the same as you are used to!
24
+
25
+ We support this plugin exclusively through [Github](https://github.com/senlin/classic-editor-addon/issues). Therefore, if you have any questions, need help and/or want to make a feature request, please open an issue over at Github. You can also browse through open and closed issues to find what you are looking for and perhaps even help others.
26
+
27
+ Thanks for your understanding and cooperation.
28
+
29
+ If you like the Classic Editor Addon plugin, please consider leaving a [review](https://wordpress.org/support/view/plugin-reviews/classic-editor-addon?rate=5#postform). Thanks!
30
+
31
+ Classic Editor Addon by [Pieter Bos](https://so-wp.com/plugin/classic-editor-addon) and [Greg Schoppe](https://gschoppe.com).
32
+
33
+ == Frequently Asked Questions ==
34
+
35
+ = What is Gutenberg? =
36
+
37
+ Gutenberg is a new editing experience that will drop with WordPress 5.0, whether we like it or not. More information can be found on the [Gutenberg FAQ](https://wordpress.org/gutenberg/handbook/reference/faq/).
38
+
39
+ = Why this addon? Isn't the purpose of the Classic Editor plugin to disable Gutenberg? =
40
+
41
+ The "Classic Editor" plugin, by Andrew Ozz, doesn't completely disable Gutenberg without changing settings. "Classic Editor Addon" is a second plugin that fixes both of these behaviors in "Classic Editor". If you install both plugins, Gutenberg will be completely disabled, and you will not see a nag screen.
42
+
43
+ = How does this compare to other plugins that disable Gutenberg? =
44
+
45
+ Great question! Classic editor is the official plugin for removing Gutenberg, and the install count is apparently being used as a metric to gauge success of the Gutenberg project. So, although other plugins exist to force-disable Gutenberg, using them doesn't properly notify the WP Core team of the number of issues users are having, that is why "Classic Editor Addon" doesn't disable Gutenberg itself, it just properly sets the options for "Classic Editor" and disables the Gutenberg Nag notice, making it easier to mass-install classic editor.
46
+
47
+ = The plugin doesn't do anything! =
48
+
49
+ Is Gutenberg active on the site and do you have the Classic Editor plugin installed? Those two are requirements for this addon plugin to do anything. If you have and the plugin still doesn't do anything, then please open a [support ticket](https://github.com/senlin/classic-editor-addon/issues).
50
+
51
+ = I have an issue with this plugin, where can I get support? =
52
+
53
+ Please open an issue on [Github](https://github.com/senlin/classic-editor-addon/issues)
54
+
55
+ == Changelog ==
56
+
57
+ = 1.4.0 =
58
+
59
+ * July 12, 2018
60
+ * fix [issue #2](https://github.com/senlin/classic-editor-addon/issues/2)
61
+ * adjust readme text and FAQs
62
+
63
+ = 1.3.0 =
64
+
65
+ * July 8, 2018
66
+ * release of plugin on WordPress Plugin Directory, ready for the world :)
67
+
68
+ = 1.2.0 =
69
+
70
+ * early July, 2018
71
+ * more feature/function/code improvements by both Pieter &amp; Greg
72
+
73
+ = 1.1.0 =
74
+
75
+ * March 25-30, 2018
76
+ * [Forked and improved](https://gist.github.com/gschoppe/ce88a7821764ef11803a5c64350078b6/570ed7cdad511d896dbd510e281aed796b3672e2) by Greg
77
+
78
+ = 1.0.0 =
79
+
80
+ * February 3, 2018
81
+ * Released as [code snippet](https://gist.github.com/senlin/691c5f06459857f57247dc92f7ec1406/6f4091caf458fbec70b33df5d136d66e8e3b6b29)