$44 GRAYBYTE WORDPRESS FILE MANAGER $96

SERVER : premium201.web-hosting.com #1 SMP Wed Mar 26 12:08:09 UTC 2025
SERVER IP : 104.21.43.35 | ADMIN IP 216.73.216.180
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : mail

/var/softaculous/sitepad/editor/site-data/themes/sitepad/inc/

HOME
Current File : /var/softaculous/sitepad/editor/site-data/themes/sitepad/inc//back-compat.php
<?php
/**
 * SitePad back compat functionality
 *
 * Prevents SitePad 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 SitePad
 * @since SitePad 1.0
 */

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

	unset( $_GET['activated'] );

	add_action( 'admin_notices', 'sitepad_upgrade_notice' );
}
add_action( 'after_switch_theme', 'sitepad_switch_theme' );

/**
 * Adds a message for unsuccessful theme switch.
 *
 * Prints an update nag after an unsuccessful attempt to switch to
 * SitePad on WordPress versions prior to 4.4.
 *
 * @since SitePad 1.0
 *
 * @global string $wp_version WordPress version.
 */
function sitepad_upgrade_notice() {
	$message = sprintf( __( 'SitePad requires at least WordPress version 4.4. You are running version %s. Please upgrade and try again.', 'sitepad' ), $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 SitePad 1.0
 *
 * @global string $wp_version WordPress version.
 */
function sitepad_customize() {
	wp_die(
		sprintf( __( 'SitePad requires at least WordPress version 4.4. You are running version %s. Please upgrade and try again.', 'sitepad' ), $GLOBALS['wp_version'] ),
		'',
		array(
			'back_link' => true,
		)
	);
}
add_action( 'load-customize.php', 'sitepad_customize' );

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


Current_dir [ NOT WRITEABLE ] Document_root [ NOT WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
21 Feb 2026 2.55 AM
root / root
0755
back-compat.php
2.129 KB
18 Feb 2026 11.32 PM
root / root
0644
customizer.php
30.122 KB
18 Feb 2026 11.32 PM
root / root
0644
template-tags.php
7.842 KB
18 Feb 2026 11.32 PM
root / root
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025 CONTACT ME
Static GIF