%s

', $message ); } /** * Prevents the Customizer from being loaded on WordPress versions prior to 4.7. * * @since Dallas Lite 1.2 * * @global string $wp_version WordPress version. */ function dallaslite_customize() { $message1 = sprintf( 'Dallas Lite requires at least WordPress version 4.7. You are running version . Please upgrade and try again.', 'dallas-lite', $GLOBALS['wp_version'] ), '', array( 'back_link' => true, ); printf( // WPCS: XSS OK. '

%s

', $message1 ); } add_action( 'load-customize.php', 'dallaslite_customize' ); /** * Prevents the Theme Preview from being loaded on WordPress versions prior to 4.7. * * @since Dallas Lite 1.2 * * @global string $wp_version WordPress version. */ function dallaslite_preview() { $message2 = sprintf( 'Dallas Lite requires at least WordPress version 4.7. You are running version . Please upgrade and try again.', 'dallas-lite', $GLOBALS['wp_version'] ); printf( // WPCS: XSS OK. '

%s

', $message2 ); } add_action( 'template_redirect', 'dallaslite_preview' );