Plugin Directory

Changeset 3112084


Ignore:
Timestamp:
07/04/2024 03:20:30 AM (17 months ago)
Author:
isrgrajan
Message:
  • Updated version to 2.3
  • Tested up to WordPress 6.6
  • Improved code compatibility
Location:
wp-emoji-sanitizer
Files:
4 added
2 edited

Legend:

Unmodified
Added
Removed
  • wp-emoji-sanitizer/trunk/readme.txt

    r3003559 r3112084  
    33Tags: WordPress, Emoji, Sanitizer
    44Requires at least: 4.0
    5 Tested up to: 6.4.1
     5Tested up to: 6.6
    66Requires PHP: 5.6
    7 Stable tag: 2.2
     7Stable tag: 2.3
    88License: GPLv2 or later
    99Donate link: https://www.isrgrajan.com/donate
     
    1111License URI: https://www.gnu.org/licenses/gpl-2.0.html
    1212
    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-head
     13WordPress Emoji Remover & Sanitizer helps you disable and remove the in-built WordPress Emoji feature by clearing the JavaScript and CSS from the wp-head.
    1414
    1515== 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 help you to:
     16WordPress 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:
    1717
    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. Clears emoji <javascript> lines from wp-head
     181. Remove Emoji CSS from admin-dashboard and wp-head.
     192. Remove Emoji wp-include/js/emoji.js from admin-dashboard and wp-head.
     203. Clear emoji <javascript> lines from wp-head.
    2121
    2222== 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.
    2424* Upload "wp-emoji-sanitizer" to the "/wp-content/plugins/" directory.
    2525* Activate the plugin through the "Plugins" menu in WordPress.
     
    2929
    3030== Changelog ==
     31= 2.3 =
     32* Updated version to 2.3
     33* Tested up to WordPress 6.6
     34* Improved code compatibility
     35
    3136= 2.2 =
    3237* Updated version to 2.2
     
    3944
    4045= 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+.
    4348
    4449= 1.0.1 =
    4550* Updated Tested up to to WordPress 6.2.2
    46 * Bug Fix
     51* Bug fix
    4752
    4853= 1.0.0 =
  • wp-emoji-sanitizer/trunk/wp-emoji-sanitizer.php

    r3003559 r3112084  
    33 * Plugin Name: WordPress Emoji Remover & Sanitizer
    44 * 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-head
    6  * Version:     2.2
     5 * 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
    77 * Author:      PrajnaBytes
    88 * Author URI:  https://www.prajnabytes.com/
     
    1111 * License URI:  https://www.gnu.org/licenses/gpl-2.0.html
    1212 * Text Domain: wpemojisanitizer
    13  * Tested up to: 6.4.1
     13 * Tested up to: 6.6
    1414 */
    1515
     
    2828
    2929        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'));
    3131    }
    3232
    3333    public function disable_wpemojisanitizer() {
    34         if (get_option('wpemojisanitizer_disable_emoji_support', true)) {
     34        if (get_option('wpemojisanitizer_options')['disable_detection_script']) {
    3535            remove_action('wp_head', 'print_emoji_detection_script', 7);
    3636            remove_action('admin_print_scripts', 'print_emoji_detection_script');
     
    5252
    5353    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']) {
    5555            if ('dns-prefetch' === $relation_type) {
    5656                $emoji_svg_url = apply_filters('emoji_svg_url', 'https://s.w.org/images/core/emoji/2/svg/');
     
    135135    }
    136136
    137     public function wpemojisanitizer_uninstall() {
     137    public static function wpemojisanitizer_uninstall() {
    138138        delete_option('wpemojisanitizer_options');
    139139    }
     
    141141
    142142$emoji_sanitizer_plugin = new WP_Emoji_Sanitizer_Plugin();
     143?>
Note: See TracChangeset for help on using the changeset viewer.