You appear to be a bot. Output may be restricted
Description
Prevents the Theme Preview from being loaded on WordPress versions prior to 5.3.
Usage
$void = twenty_twenty_one_preview();
Parameters
Returns
void
Source
File name: twentytwentyone/inc/back-compat.php
Lines:
1 to 11 of 11
function twenty_twenty_one_preview() { if ( isset( $_GET['preview'] ) ) { // phpcs:ignore WordPress.Security.NonceVerification wp_die( sprintf( /* translators: %s: WordPress Version. */ esc_html__( 'This theme requires WordPress 5.3 or newer. You are running version %s. Please upgrade.', 'twentytwentyone' ), esc_html( $GLOBALS['wp_version'] ) ) ); } }