403Webshell
Server IP : 69.39.225.240  /  Your IP : 216.73.216.138
Web Server : Apache
System : Linux bronze7.serverhost.net 3.10.0-1160.105.1.el7.x86_64 #1 SMP Thu Dec 7 15:39:45 UTC 2023 x86_64
User : reademotions ( 1074)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /home/reademotions/www/wp-content/plugins/w3-total-cache/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/reademotions/www/wp-content/plugins/w3-total-cache/UserExperience_Emoji_Extension.php
<?php
namespace W3TC;

class UserExperience_Emoji_Extension {
	public function run() {
		remove_action( 'wp_head', 'print_emoji_detection_script', 7 );
		remove_action( 'wp_print_styles', 'print_emoji_styles' );
		remove_filter( 'wp_mail', 'wp_staticize_emoji_for_email' );

		remove_filter( 'the_content_feed', 'wp_staticize_emoji' );
		remove_filter( 'comment_text_rss', 'wp_staticize_emoji' );

		remove_action( 'admin_print_scripts', 'print_emoji_detection_script' );
		remove_action( 'admin_print_styles', 'print_emoji_styles' );

		add_filter( 'tiny_mce_plugins', array( $this, 'tiny_mce_plugins' ) );
		add_filter( 'wp_resource_hints',
			array( $this, 'wp_resource_hints' ), 10, 2 );
	}



	public function tiny_mce_plugins( $plugins ) {
		if ( !is_array( $plugins ) ) {
			return array();
		}

		return array_filter( $plugins,
			function( $v ) {
				return $v != 'wpemoji';
			}
		);
	}



	public function wp_resource_hints( $urls, $relation_type ) {
		if ( !is_array( $urls ) || $relation_type != 'dns-prefetch' ) {
			return $urls;
		}

		// remove s.w.org dns-prefetch used by emojis
		return array_filter( $urls,
			function( $v ) {
				return ( substr( $v, 0, 16) != 'https://s.w.org/' );
			}
		);
	}
}



$o = new UserExperience_Emoji_Extension();
$o->run();

Youez - 2016 - github.com/yon3zu
LinuXploit