X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/febc815b2c9d85be5717da9e8d164bd2daa97e31..16e7b37c7914d753890c1a05a9335f3b43751eb8:/wp-content/themes/twentyfourteen/inc/back-compat.php diff --git a/wp-content/themes/twentyfourteen/inc/back-compat.php b/wp-content/themes/twentyfourteen/inc/back-compat.php deleted file mode 100644 index c184d912..00000000 --- a/wp-content/themes/twentyfourteen/inc/back-compat.php +++ /dev/null @@ -1,63 +0,0 @@ -

%s

', $message ); -} - -/** - * Prevent the Customizer from being loaded on WordPress versions prior to 3.6. - * - * @since Twenty Fourteen 1.0 - */ -function twentyfourteen_customize() { - wp_die( sprintf( __( 'Twenty Fourteen requires at least WordPress version 3.6. You are running version %s. Please upgrade and try again.', 'twentyfourteen' ), $GLOBALS['wp_version'] ), '', array( - 'back_link' => true, - ) ); -} -add_action( 'load-customize.php', 'twentyfourteen_customize' ); - -/** - * Prevent the Theme Preview from being loaded on WordPress versions prior to 3.4. - * - * @since Twenty Fourteen 1.0 - */ -function twentyfourteen_preview() { - if ( isset( $_GET['preview'] ) ) { - wp_die( sprintf( __( 'Twenty Fourteen requires at least WordPress version 3.6. You are running version %s. Please upgrade and try again.', 'twentyfourteen' ), $GLOBALS['wp_version'] ) ); - } -} -add_action( 'template_redirect', 'twentyfourteen_preview' );