Re-add text underline and justify - Version 0.1.2

Version Description

  • 11/14/2016 =
  • Change mce button hook priority to prevent errors with other plugins adding extra buttons
  • readme.txt update
Download this release

Release Info

Developer briKou
Plugin Icon Re-add text underline and justify
Version 0.1.2
Comparing to
See all releases

Code changes from version 0.1.1 to 0.1.2

Files changed (2) hide show
  1. re-add-underline-justify.php +6 -6
  2. readme.txt +10 -5
re-add-underline-justify.php CHANGED
@@ -4,7 +4,7 @@
4
  * Plugin URI: http://b-website.com/re-add-text-underline-and-justify
5
  * Description: This very simple plugin re-adds the Editor text underline, text justify and rearrange buttons as they were before WordPress 4.7.
6
  * Author: Brice Capobianco
7
- * Version: 0.1.1
8
  * Author URI: http:// b-website.com/
9
  * Domain Path: /langs
10
  * Text Domain: re-add-underline-justify
@@ -130,19 +130,19 @@ function ratb_buttons_lines_tiny_mce(){
130
  // Conditionnal MCE display
131
  if ( isset( $options['ratb_mce_style'] ) && $options['ratb_mce_style'] == 2 ) {
132
 
133
- add_filter( 'mce_buttons', 'ratb_tiny_mce_buttons' );
134
- add_filter( 'mce_buttons_2', 'ratb_tiny_mce_buttons_2' );
135
 
136
  } else if ( isset( $options['ratb_mce_style'] ) && $options['ratb_mce_style'] == 3 ) {
137
 
138
- add_filter( 'mce_buttons', 'ratb_tiny_mce_buttons_rearrange' );
139
- add_filter( 'mce_buttons_2', 'ratb_tiny_mce_buttons_2_rearrange' );
140
 
141
  }
142
  //Else, do nothing... use the default editor style
143
 
144
  }
145
- add_action( 'admin_head', 'ratb_buttons_lines_tiny_mce' );
146
 
147
 
148
  /***************************************************************
4
  * Plugin URI: http://b-website.com/re-add-text-underline-and-justify
5
  * Description: This very simple plugin re-adds the Editor text underline, text justify and rearrange buttons as they were before WordPress 4.7.
6
  * Author: Brice Capobianco
7
+ * Version: 0.1.2
8
  * Author URI: http:// b-website.com/
9
  * Domain Path: /langs
10
  * Text Domain: re-add-underline-justify
130
  // Conditionnal MCE display
131
  if ( isset( $options['ratb_mce_style'] ) && $options['ratb_mce_style'] == 2 ) {
132
 
133
+ add_filter( 'mce_buttons', 'ratb_tiny_mce_buttons', 5 );
134
+ add_filter( 'mce_buttons_2', 'ratb_tiny_mce_buttons_2', 5 );
135
 
136
  } else if ( isset( $options['ratb_mce_style'] ) && $options['ratb_mce_style'] == 3 ) {
137
 
138
+ add_filter( 'mce_buttons', 'ratb_tiny_mce_buttons_rearrange', 5 );
139
+ add_filter( 'mce_buttons_2', 'ratb_tiny_mce_buttons_2_rearrange', 5 );
140
 
141
  }
142
  //Else, do nothing... use the default editor style
143
 
144
  }
145
+ add_action( 'admin_head', 'ratb_buttons_lines_tiny_mce', 5 );
146
 
147
 
148
  /***************************************************************
readme.txt CHANGED
@@ -4,17 +4,17 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_i
4
  Tags: mce, editor, underline, justify, tinyMCE, 4.7, wysiwyg, visual editor
5
  Requires at least: 4.7
6
  Tested up to: 4.7
7
- Stable tag: 0.1.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
11
- This very simple plugin re-adds the Editor text underline, text justify and rearrange buttons as they were before WordPress 4.7.
12
 
13
 
14
  == Description ==
15
 
16
- In WordPress 4.7, the core developper team decided to make various changes in the editor, including removing the **underline and justify buttons** and rearranging some of the toolbar buttons.
17
- If you don't want to change the way you edit your content and/or don't want to confuse your customers with a new contribution interface, this simple and lightweight plugin will set the editor style back to its previous state.
18
 
19
  **You may change the Editor style from the Writing option page.**
20
 
@@ -24,7 +24,8 @@ If you don't want to change the way you edit your content and/or don't want to c
24
  * Re-add underline & justify buttons
25
  * Re-add underline & justify + rearrange
26
 
27
- Please note, the third option is, in my opinion, a good compromise between the 4.6 and 4.7 editor versions.
 
28
 
29
  [DOCUMENTATION](http://b-website.com/re-add-text-underline-and-justify "Plugin documentation")
30
 
@@ -56,6 +57,10 @@ Just go to Settings -> Writing and select the option you want under "Editor styl
56
 
57
  == Changelog ==
58
 
 
 
 
 
59
  = 0.1.1 - 11/10/2016 =
60
  * Fix an issue hidding Editor content.
61
 
4
  Tags: mce, editor, underline, justify, tinyMCE, 4.7, wysiwyg, visual editor
5
  Requires at least: 4.7
6
  Tested up to: 4.7
7
+ Stable tag: 0.1.2
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
11
+ This tiny plugin re-adds the Editor text underline, text justify and rearrange buttons in the WYSIWYG as they were before WordPress 4.7.
12
 
13
 
14
  == Description ==
15
 
16
+ In WordPress 4.7, the core developper team decided to make various changes in the editor (TinyMce WYSIWYG), including removing the **underline and justify buttons** and rearranging some of the toolbar buttons.
17
+ If you don't want to change the way you edit your content and/or don't want to confuse your customers with a new contribution interface, this very lightweight plugin will set the editor style back to its previous state (like in WordPress 4.6 and above versions).
18
 
19
  **You may change the Editor style from the Writing option page.**
20
 
24
  * Re-add underline & justify buttons
25
  * Re-add underline & justify + rearrange
26
 
27
+ In my opinion, the third option is a fair compromise between versions 4.6 and 4.7 of the editor. It moves up the style select to the first line, and moves the underline button after the other text position buttons.
28
+
29
 
30
  [DOCUMENTATION](http://b-website.com/re-add-text-underline-and-justify "Plugin documentation")
31
 
57
 
58
  == Changelog ==
59
 
60
+ = 0.1.2 - 11/14/2016 =
61
+ * Change mce button hook priority to prevent errors with other plugins adding extra buttons
62
+ * readme.txt update
63
+
64
  = 0.1.1 - 11/10/2016 =
65
  * Fix an issue hidding Editor content.
66