Lines:
1 to 25 of 25
<?php /** * Back compat functionality * * Prevents the theme from running on WordPress versions prior to 5.3, * since this theme is not meant to be backward compatible beyond that and * relies on many newer functions and markup changes introduced in 5.3. * * @package WordPress * @subpackage Twenty_Twenty_One * @since Twenty Twenty-One 1.0 */ /* function twenty_twenty_one_switch_theme() – Display upgrade notice on theme switch. */ add_action( 'after_switch_theme', 'twenty_twenty_one_switch_theme' ); /* function twenty_twenty_one_upgrade_notice() – Adds a message for unsuccessful theme switch. */ /* function twenty_twenty_one_customize() – Prevents the Customizer from being loaded on WordPress versions prior to 5.3. */ add_action( 'load-customize.php', 'twenty_twenty_one_customize' ); /* function twenty_twenty_one_preview() – Prevents the Theme Preview from being loaded on WordPress versions prior to 5.3. */ add_action( 'template_redirect', 'twenty_twenty_one_preview' );