Changeset 3112084
- Timestamp:
- 07/04/2024 03:20:30 AM (17 months ago)
- Location:
- wp-emoji-sanitizer
- Files:
-
- 4 added
- 2 edited
-
tags/2.2 (added)
-
tags/2.2/languages (added)
-
tags/2.2/readme.txt (added)
-
tags/2.2/wp-emoji-sanitizer.php (added)
-
trunk/readme.txt (modified) (4 diffs)
-
trunk/wp-emoji-sanitizer.php (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wp-emoji-sanitizer/trunk/readme.txt
r3003559 r3112084 3 3 Tags: WordPress, Emoji, Sanitizer 4 4 Requires at least: 4.0 5 Tested up to: 6. 4.15 Tested up to: 6.6 6 6 Requires PHP: 5.6 7 Stable tag: 2. 27 Stable tag: 2.3 8 8 License: GPLv2 or later 9 9 Donate link: https://www.isrgrajan.com/donate … … 11 11 License URI: https://www.gnu.org/licenses/gpl-2.0.html 12 12 13 WordPress Emoji Remover & Sanitizer help you to disable and remove the in-built WordPress Emoji feature by clearing the JavaScript and CSS from the wp-head13 WordPress Emoji Remover & Sanitizer helps you disable and remove the in-built WordPress Emoji feature by clearing the JavaScript and CSS from the wp-head. 14 14 15 15 == Description == 16 WordPress Emoji Remover & Sanitizer help you to disable and remove the in-built WordPress Emoji feature by clearing the JavaScript and CSS from the wp-head. In addition to that WordPress Emoji Remover & Sanitizer also helpyou to:16 WordPress Emoji Remover & Sanitizer helps you disable and remove the in-built WordPress Emoji feature by clearing the JavaScript and CSS from the wp-head. In addition, WordPress Emoji Remover & Sanitizer also helps you to: 17 17 18 1. Remove Emoji CSS from admin-dashboard and wp-head 19 2. Remove Emoji wp-include/js/emoji.js from admin-dashboard and wp-head 20 3. Clear s emoji <javascript> lines from wp-head18 1. Remove Emoji CSS from admin-dashboard and wp-head. 19 2. Remove Emoji wp-include/js/emoji.js from admin-dashboard and wp-head. 20 3. Clear emoji <javascript> lines from wp-head. 21 21 22 22 == Installation == 23 * Download wp-emoji-sanitizer.zip from https://downloads.wordpress.org/plugin/wp-emoji-sanitizer.zip 23 * Download wp-emoji-sanitizer.zip from https://downloads.wordpress.org/plugin/wp-emoji-sanitizer.zip. 24 24 * Upload "wp-emoji-sanitizer" to the "/wp-content/plugins/" directory. 25 25 * Activate the plugin through the "Plugins" menu in WordPress. … … 29 29 30 30 == Changelog == 31 = 2.3 = 32 * Updated version to 2.3 33 * Tested up to WordPress 6.6 34 * Improved code compatibility 35 31 36 = 2.2 = 32 37 * Updated version to 2.2 … … 39 44 40 45 = 2.0 = 41 * Added settings option to enable and disable functions 42 * Modified code to comply with PHP version 7.4 and 8.0+ 46 * Added settings option to enable and disable functions. 47 * Modified code to comply with PHP version 7.4 and 8.0+. 43 48 44 49 = 1.0.1 = 45 50 * Updated Tested up to to WordPress 6.2.2 46 * Bug Fix51 * Bug fix 47 52 48 53 = 1.0.0 = -
wp-emoji-sanitizer/trunk/wp-emoji-sanitizer.php
r3003559 r3112084 3 3 * Plugin Name: WordPress Emoji Remover & Sanitizer 4 4 * Plugin URI: https://wordpress.org/plugins/wp-emoji-sanitizer/ 5 * Description: WordPress Emoji Remover & Sanitizer help you to disable and remove the in-built WordPress Emoji feature by clearing the JavaScript and CSS from the wp-head6 * Version: 2. 25 * Description: WordPress Emoji Remover & Sanitizer helps you disable and remove the in-built WordPress Emoji feature by clearing the JavaScript and CSS from the wp-head. 6 * Version: 2.3 7 7 * Author: PrajnaBytes 8 8 * Author URI: https://www.prajnabytes.com/ … … 11 11 * License URI: https://www.gnu.org/licenses/gpl-2.0.html 12 12 * Text Domain: wpemojisanitizer 13 * Tested up to: 6. 4.113 * Tested up to: 6.6 14 14 */ 15 15 … … 28 28 29 29 register_activation_hook(__FILE__, array($this, 'wpemojisanitizer_activate')); 30 register_uninstall_hook(__FILE__, array( $this, 'wpemojisanitizer_uninstall'));30 register_uninstall_hook(__FILE__, array(__CLASS__, 'wpemojisanitizer_uninstall')); 31 31 } 32 32 33 33 public function disable_wpemojisanitizer() { 34 if (get_option('wpemojisanitizer_ disable_emoji_support', true)) {34 if (get_option('wpemojisanitizer_options')['disable_detection_script']) { 35 35 remove_action('wp_head', 'print_emoji_detection_script', 7); 36 36 remove_action('admin_print_scripts', 'print_emoji_detection_script'); … … 52 52 53 53 public function wpemojisanitizer_disable_emojis_remove_dns_prefetch($urls, $relation_type) { 54 if (get_option('wpemojisanitizer_ disable_emoji_dns_prefetch', true)) {54 if (get_option('wpemojisanitizer_options')['disable_dns_prefetch']) { 55 55 if ('dns-prefetch' === $relation_type) { 56 56 $emoji_svg_url = apply_filters('emoji_svg_url', 'https://s.w.org/images/core/emoji/2/svg/'); … … 135 135 } 136 136 137 public function wpemojisanitizer_uninstall() {137 public static function wpemojisanitizer_uninstall() { 138 138 delete_option('wpemojisanitizer_options'); 139 139 } … … 141 141 142 142 $emoji_sanitizer_plugin = new WP_Emoji_Sanitizer_Plugin(); 143 ?>
Note: See TracChangeset
for help on using the changeset viewer.