Version Description
Download this release
Release Info
Developer | ryanhellyer |
Plugin | Disable Emojis |
Version | 1.4 |
Comparing to | |
See all releases |
Code changes from version 1.2 to 1.4
- disable-emojis.php +19 -9
- readme.txt +5 -1
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.
|
7 |
Author: Ryan Hellyer
|
8 |
Author URI: https://geek.hellyer.kiwi/
|
9 |
License: GPL2
|
@@ -29,16 +29,26 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
29 |
|
30 |
|
31 |
/**
|
32 |
-
*
|
33 |
*/
|
34 |
-
function
|
35 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
36 |
}
|
37 |
-
add_action( '
|
38 |
|
39 |
/**
|
40 |
-
*
|
|
|
|
|
|
|
41 |
*/
|
42 |
-
|
43 |
-
|
44 |
-
|
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
|
29 |
|
30 |
|
31 |
/**
|
32 |
+
* Disable the emoji's
|
33 |
*/
|
34 |
+
function disable_emojis() {
|
35 |
+
remove_action( 'wp_head', 'print_emoji_detection_script', 7 );
|
36 |
+
remove_action( 'admin_print_scripts', 'print_emoji_detection_script' );
|
37 |
+
remove_action( 'wp_print_styles', 'print_emoji_styles' );
|
38 |
+
remove_action( 'admin_print_styles', 'print_emoji_styles' );
|
39 |
+
remove_filter( 'the_content_feed', 'wp_staticize_emoji' );
|
40 |
+
remove_filter( 'comment_text_rss', 'wp_staticize_emoji' );
|
41 |
+
remove_filter( 'wp_mail', 'wp_staticize_emoji_for_email' );
|
42 |
+
add_filter( 'tiny_mce_plugins', 'disable_emojis_tinymce' );
|
43 |
}
|
44 |
+
add_action( 'init', 'disable_emojis' );
|
45 |
|
46 |
/**
|
47 |
+
* Filter function used to remove the tinymce emoji plugin.
|
48 |
+
*
|
49 |
+
* @param array $plugins
|
50 |
+
* @return array Difference betwen the two arrays
|
51 |
*/
|
52 |
+
function disable_emojis_tinymce( $plugins ) {
|
53 |
+
return array_diff( $plugins, array( 'wpemoji' ) );
|
54 |
+
}
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ 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.
|
8 |
|
9 |
|
10 |
This plugin disables the new emoji functionality in WordPress 4.2.
|
@@ -28,4 +28,8 @@ Visit the <a href="https://geek.hellyer.kiwi/plugins/disable-emojis/">Disable Em
|
|
28 |
|
29 |
== Changelog ==
|
30 |
|
|
|
|
|
|
|
|
|
31 |
Version 1.0: Initial release<br />
|
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 |
|
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 />
|
34 |
+
Version 1.1: Updating to work with latest beta<br />
|
35 |
Version 1.0: Initial release<br />
|