| Server IP : 119.59.104.26 / Your IP : 216.73.216.41 Web Server : Apache/2 System : Linux ns69.hostinglotus.net 4.18.0-553.141.2.el8_10.x86_64 #1 SMP Wed Jul 8 10:28:18 EDT 2026 x86_64 User : com12370 ( 1517) PHP Version : 7.2.34 Disable Function : exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /home/com12370/public_html/wp-content/themes/MIXThemes/framework/functions/ |
Upload File : |
<?php
/**
* Prevents The theme from running on PHP Versions prior to 5.3.
*
*/
defined( 'ABSPATH' ) || exit; // Exit if accessed directly
/**
* Prevent switching on old versions of WordPress.
*/
add_action( 'after_switch_theme', 'tie_php_disable_switch_theme' );
function tie_php_disable_switch_theme() {
switch_theme( WP_DEFAULT_THEME, WP_DEFAULT_THEME );
unset( $_GET['activated'] );
add_action( 'admin_notices', 'tie_php_disable_upgrade_notice' );
}
/**
* Adds a message for unsuccessful theme switch.
*
* Prints an update nag after an unsuccessful attempt to switch the theme
*/
function tie_php_disable_upgrade_notice() {
$message = sprintf( esc_html__( 'This theme requires at least PHP version 5.3. You are running version %s. Please upgrade and try again.', TIELABS_TEXTDOMAIN ), phpversion() );
printf( '<div class="error"><p>%s</p></div>', $message );
}
/**
* Prevents the Customizer from being loaded on WordPress versions prior to 4.4.
*/
add_action( 'load-customize.php', 'tie_php_disable_customize' );
function tie_php_disable_customize() {
wp_die( sprintf( esc_html__( 'This theme requires at least PHP version 5.3. You are running version %s. Please upgrade and try again.', TIELABS_TEXTDOMAIN ), phpversion() ), '', array(
'back_link' => true,
) );
}
/**
* Prevents the Theme Preview from being loaded on WordPress versions prior to 4.4.
*/
add_action( 'template_redirect', 'tie_php_disable_preview' );
function tie_php_disable_preview() {
if ( isset( $_GET['preview'] ) ) {
wp_die( sprintf( esc_html__( 'This theme requires at least PHP version 5.3. You are running version %s. Please upgrade and try again.', TIELABS_TEXTDOMAIN ), phpversion() ));
}
}