%s

', $message ); } /** * Prevents the Customizer from being loaded on WordPress versions prior to 5.3. * * @global string $wp_version WordPress version. */ function gt_focus_customize() { wp_die( sprintf( esc_html__( '%1$s requires at least WordPress version %2$s. You are running version %3$s. Please upgrade and try again.', 'gt-focus' ), 'GT Focus', '5.3', $GLOBALS['wp_version'] ), '', array( 'back_link' => true, ) ); } add_action( 'load-customize.php', 'gt_focus_customize' ); /** * Prevents the Theme Preview from being loaded on WordPress versions prior to 5.3. * * @global string $wp_version WordPress version. */ function gt_focus_preview() { if ( isset( $_GET['preview'] ) ) { wp_die( sprintf( esc_html__( '%1$s requires at least WordPress version %2$s. You are running version %3$s. Please upgrade and try again.', 'gt-focus' ), 'GT Focus', '5.3', $GLOBALS['wp_version'] ) ); } } add_action( 'template_redirect', 'gt_focus_preview' );