get( 'Version' ) ); printf( '

%s

', $message ); } /** * Prevents the Customizer from being loaded on Solid Construction versions prior to 1.1. * * @since Solid Construction Classic 1.0 */ function solid_construction_classic_customize() { $my_theme = wp_get_theme('solid-construction'); wp_die( sprintf( __( 'Solid Construction Classic requires at least Solid Construction version 1.1. You are running version %s. Please upgrade and try again.', 'solid-construction-classic' ), $my_theme->get( 'Version' ) ), '', array( 'back_link' => true, ) ); } add_action( 'load-customize.php', 'solid_construction_classic_customize' ); /** * Prevents the Theme Preview from being loaded on Solid Construction versions prior to * 1.1. * * @since Solid Construction Classic 1.0 * * @global string $wp_version WordPress version. */ function solid_construction_classic_preview() { $my_theme = wp_get_theme('solid-construction'); if ( isset( $_GET['preview'] ) ) { wp_die( sprintf( __( 'Solid Construction Classic requires at least Solid Construction version 1.1. You are running version %s. Please upgrade and try again.', 'solid-construction-classic' ), $my_theme->get( 'Version' ) ) ); } } add_action( 'template_redirect', 'solid_construction_classic_preview' );