403Webshell
Server IP : 62.72.47.131  /  Your IP : 216.73.217.34
Web Server : Apache/2.4.66 (Debian)
System : Linux 975cdb959a49 5.14.0-611.55.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Tue May 19 15:19:29 EDT 2026 x86_64
User :  ( 501)
PHP Version : 8.3.30
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /var/www/html/wp-content/themes/medicate/inc/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/html/wp-content/themes/medicate/inc/back-compat.php
<?php
/**
 * medicate back compat functionality
 *
 * Prevents medicate from running on WordPress versions prior to 4.4,
 * since this theme is not meant to be backward compatible beyond that and
 * relies on many newer functions and markup changes introduced in 4.4.
 *
 * @package WordPress
 * @subpackage medicate
 * @since medicate 1.0
 */

/**
 * Prevent switching to medicate on old versions of WordPress.
 *
 * Switches to the default theme.
 *
 * @since medicate 1.0
 */
function medicate_switch_theme() {
	switch_theme( WP_DEFAULT_THEME, WP_DEFAULT_THEME );

	unset( $_GET['activated'] );

	add_action( 'admin_notices', 'medicate_upgrade_notice' );
}
add_action( 'after_switch_theme', 'medicate_switch_theme' );

/**
 * Adds a message for unsuccessful theme switch.
 *
 * Prints an update nag after an unsuccessful attempt to switch to
 * medicate on WordPress versions prior to 4.4.
 *
 * @since medicate 1.0
 *
 * @global string $wp_version WordPress version.
 */
function medicate_upgrade_notice() {
	$message = sprintf( __( 'medicate requires at least WordPress version 4.4. You are running version %s. Please upgrade and try again.', 'medicate' ), $GLOBALS['wp_version'] );
	printf( '<div class="error"><p>%s</p></div>', $message );
}

/**
 * Prevents the Customizer from being loaded on WordPress versions prior to 4.4.
 *
 * @since medicate 1.0
 *
 * @global string $wp_version WordPress version.
 */
function medicate_customize() {
	wp_die(
		sprintf( __( 'medicate requires at least WordPress version 4.4. You are running version %s. Please upgrade and try again.', 'medicate' ), $GLOBALS['wp_version'] ),
		'',
		array(
			'back_link' => true,
		)
	);
}
add_action( 'load-customize.php', 'medicate_customize' );

/**
 * Prevents the Theme Preview from being loaded on WordPress versions prior to 4.4.
 *
 * @since medicate 1.0
 *
 * @global string $wp_version WordPress version.
 */
function medicate_preview() {
	if ( isset( $_GET['preview'] ) ) {
		wp_die( sprintf( __( 'medicate requires at least WordPress version 4.4. You are running version %s. Please upgrade and try again.', 'medicate' ), $GLOBALS['wp_version'] ) );
	}
}
add_action( 'template_redirect', 'medicate_preview' );

Youez - 2016 - github.com/yon3zu
LinuXploit