Version Description
- Removed DNS prefetch URL again.
- This time using simple string check rather than relying on internal WordPress filters.
Download this release
Release Info
| Developer | ryanhellyer |
| Plugin | |
| Version | 1.7 |
| Comparing to | |
| See all releases | |
Code changes from version 1.5.3 to 1.7
- disable-emojis.php +10 -4
- readme.txt +8 -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
|
|
@@ -66,11 +66,17 @@ function disable_emojis_tinymce( $plugins ) {
|
|
| 66 |
* @return array Difference betwen the two arrays.
|
| 67 |
*/
|
| 68 |
function disable_emojis_remove_dns_prefetch( $urls, $relation_type ) {
|
|
|
|
| 69 |
if ( 'dns-prefetch' == $relation_type ) {
|
| 70 |
-
/** This filter is documented in wp-includes/formatting.php */
|
| 71 |
-
$emoji_svg_url = apply_filters( 'emoji_svg_url', 'https://s.w.org/images/core/emoji/2.2.1/svg/' );
|
| 72 |
|
| 73 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 74 |
}
|
| 75 |
|
| 76 |
return $urls;
|
| 3 |
Plugin Name: Disable Emojis
|
| 4 |
Plugin URI: https://geek.hellyer.kiwi/plugins/disable-emojis/
|
| 5 |
Description: Disable Emojis
|
| 6 |
+
Version: 1.7
|
| 7 |
Author: Ryan Hellyer
|
| 8 |
Author URI: https://geek.hellyer.kiwi/
|
| 9 |
License: GPL2
|
| 66 |
* @return array Difference betwen the two arrays.
|
| 67 |
*/
|
| 68 |
function disable_emojis_remove_dns_prefetch( $urls, $relation_type ) {
|
| 69 |
+
|
| 70 |
if ( 'dns-prefetch' == $relation_type ) {
|
|
|
|
|
|
|
| 71 |
|
| 72 |
+
// Strip out any URLs referencing the WordPress.org emoji location
|
| 73 |
+
$emoji_svg_url_bit = 'https://s.w.org/images/core/emoji/';
|
| 74 |
+
foreach ( $urls as $key => $url ) {
|
| 75 |
+
if ( strpos( $url, $emoji_svg_url_bit ) !== false ) {
|
| 76 |
+
unset( $urls[$key] );
|
| 77 |
+
}
|
| 78 |
+
}
|
| 79 |
+
|
| 80 |
}
|
| 81 |
|
| 82 |
return $urls;
|
readme.txt
CHANGED
|
@@ -4,7 +4,7 @@ Tags: emojis
|
|
| 4 |
Donate link: https://geek.hellyer.kiwi/donate/
|
| 5 |
Requires at least: 4.8
|
| 6 |
Tested up to: 4.9
|
| 7 |
-
Stable tag: 1.
|
| 8 |
|
| 9 |
|
| 10 |
This plugin disables the new WordPress emoji functionality.
|
|
@@ -31,6 +31,13 @@ Visit the <a href="https://geek.hellyer.kiwi/plugins/disable-emojis/">Disable Em
|
|
| 31 |
|
| 32 |
== Changelog ==
|
| 33 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 34 |
= 1.5.3 =
|
| 35 |
* Catering to new DNS prefetch URL in version 4.7 of core
|
| 36 |
|
| 4 |
Donate link: https://geek.hellyer.kiwi/donate/
|
| 5 |
Requires at least: 4.8
|
| 6 |
Tested up to: 4.9
|
| 7 |
+
Stable tag: 1.7
|
| 8 |
|
| 9 |
|
| 10 |
This plugin disables the new WordPress emoji functionality.
|
| 31 |
|
| 32 |
== Changelog ==
|
| 33 |
|
| 34 |
+
= 1.7 =
|
| 35 |
+
* Removed DNS prefetch URL again.
|
| 36 |
+
* This time using simple string check rather than relying on internal WordPress filters.
|
| 37 |
+
|
| 38 |
+
= 1.6 =
|
| 39 |
+
* Removed DNS prefetch URL. Props to Aaron Queen for assisting with this.
|
| 40 |
+
|
| 41 |
= 1.5.3 =
|
| 42 |
* Catering to new DNS prefetch URL in version 4.7 of core
|
| 43 |
|
