%s

', $message ); } /** * Prevents the Customizer from being loaded on WordPress versions prior to 4.4. * * @global string $wp_version WordPress version. */ function gridbox_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.', 'gridbox' ), 'Gridbox', '4.4', $GLOBALS['wp_version'] ), '', array( 'back_link' => true, ) ); } add_action( 'load-customize.php', 'gridbox_customize' ); /** * Prevents the Theme Preview from being loaded on WordPress versions prior to 4.4. * * @global string $wp_version WordPress version. */ function gridbox_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.', 'gridbox' ), 'Gridbox', '4.4', $GLOBALS['wp_version'] ) ); } } add_action( 'template_redirect', 'gridbox_preview' );