403Webshell
Server IP : 23.94.149.180  /  Your IP : 216.73.216.147
Web Server : nginx/1.20.1
System : Linux deadrock 5.14.0-741.22.1.el9_9.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Nov 12 15:18:14 UTC 2026 x86_64
User : apache ( 48)
PHP Version : 8.6.0
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /files/webmaint/corey/website/wp-content/plugins/jetpack-boost/compatibility/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /files/webmaint/corey/website/wp-content/plugins/jetpack-boost/compatibility/revslider.php
<?php
/**
 * Compatibility for Revolution Slider
 *
 * @package automattic/jetpack-boost
 */

namespace Automattic\Jetpack_Boost\Compatibility\Revslider;

/**
 * Exclude Revolution Slider scripts from deferred JS.
 * We can't use handles, since revslider doesn't have a standardized naming convention.
 *
 * @param array $scripts The scripts to exclude.
 * @return array The scripts to exclude.
 */
function exclude_revslider_scripts( $scripts ) {
	// Don't check scripts if Revolution Slider isn't active.
	if ( ! class_exists( '\RevSliderFront' ) ) {
		return $scripts;
	}

	// Filter out any revslider scripts
	$scripts = array_filter(
		$scripts,
		function ( $script ) {
			// Check if it's a script tag and contains revslider
			if ( is_array( $script ) && isset( $script[0] ) && strpos( $script[0], '<script' ) !== false ) {
				return strpos( $script[0], '/revslider/' ) === false;
			}
			return true;
		}
	);

	return array_values( $scripts );
}

add_filter( 'jetpack_boost_render_blocking_js_exclude_scripts', __NAMESPACE__ . '\exclude_revslider_scripts', 10, 1 );

Youez - 2016 - github.com/yon3zu
LinuXploit