Disable Emojis - Version 1.5

Version Description

Download this release

Release Info

Developer ryanhellyer
Plugin Icon wp plugin Disable Emojis
Version 1.5
Comparing to
See all releases

Code changes from version 1.4 to 1.5

Files changed (2) hide show
  1. disable-emojis.php +7 -2
  2. readme.txt +3 -2
disable-emojis.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Disable Emojis
4
  Plugin URI: https://geek.hellyer.kiwi/plugins/disable-emojis/
5
  Description: Disable Emojis
6
- Version: 1.4
7
  Author: Ryan Hellyer
8
  Author URI: https://geek.hellyer.kiwi/
9
  License: GPL2
@@ -50,5 +50,10 @@ add_action( 'init', 'disable_emojis' );
50
  * @return array Difference betwen the two arrays
51
  */
52
  function disable_emojis_tinymce( $plugins ) {
53
- return array_diff( $plugins, array( 'wpemoji' ) );
 
 
 
 
54
  }
 
3
  Plugin Name: Disable Emojis
4
  Plugin URI: https://geek.hellyer.kiwi/plugins/disable-emojis/
5
  Description: Disable Emojis
6
+ Version: 1.5
7
  Author: Ryan Hellyer
8
  Author URI: https://geek.hellyer.kiwi/
9
  License: GPL2
50
  * @return array Difference betwen the two arrays
51
  */
52
  function disable_emojis_tinymce( $plugins ) {
53
+ if ( is_array( $plugins ) ) {
54
+ return array_diff( $plugins, array( 'wpemoji' ) );
55
+ } else {
56
+ return array();
57
+ }
58
  }
59
+
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: ryanhellyer
3
  Tags: emojis
4
  Donate link: https://geek.hellyer.kiwi/donate/
5
  Requires at least: 4.2
6
- Tested up to: 4.2
7
- Stable tag: 1.4
8
 
9
 
10
  This plugin disables the new emoji functionality in WordPress 4.2.
@@ -28,6 +28,7 @@ Visit the <a href="https://geek.hellyer.kiwi/plugins/disable-emojis/">Disable Em
28
 
29
  == Changelog ==
30
 
 
31
  Version 1.4: Updating to use Otto's code<br />
32
  Version 1.3: Removing extraneous styles<br />
33
  Version 1.2: Bug fix<br />
3
  Tags: emojis
4
  Donate link: https://geek.hellyer.kiwi/donate/
5
  Requires at least: 4.2
6
+ Tested up to: 4.4
7
+ Stable tag: 1.5
8
 
9
 
10
  This plugin disables the new emoji functionality in WordPress 4.2.
28
 
29
  == Changelog ==
30
 
31
+ Version 1.5: Catering for invalid $plugin array<br />
32
  Version 1.4: Updating to use Otto's code<br />
33
  Version 1.3: Removing extraneous styles<br />
34
  Version 1.2: Bug fix<br />