From 5bf66662a9bdd62c5bccab15e607cd95cfb8fcab Mon Sep 17 00:00:00 2001 From: Charles Cabergs Date: Mon, 27 Jul 2020 10:05:23 +0200 Subject: Removed wordpress and phpmyadmin, my server doesn't handle it well and it brings shame on my familly --- .../themes/twentysixteen/inc/back-compat.php | 78 ---------------------- 1 file changed, 78 deletions(-) delete mode 100644 srcs/wordpress/wp-content/themes/twentysixteen/inc/back-compat.php (limited to 'srcs/wordpress/wp-content/themes/twentysixteen/inc/back-compat.php') diff --git a/srcs/wordpress/wp-content/themes/twentysixteen/inc/back-compat.php b/srcs/wordpress/wp-content/themes/twentysixteen/inc/back-compat.php deleted file mode 100644 index e8c2e34..0000000 --- a/srcs/wordpress/wp-content/themes/twentysixteen/inc/back-compat.php +++ /dev/null @@ -1,78 +0,0 @@ -

%s

', $message ); -} - -/** - * Prevents the Customizer from being loaded on WordPress versions prior to 4.4. - * - * @since Twenty Sixteen 1.0 - * - * @global string $wp_version WordPress version. - */ -function twentysixteen_customize() { - wp_die( - /* translators: %s: The current WordPress version. */ - sprintf( __( 'Twenty Sixteen requires at least WordPress version 4.4. You are running version %s. Please upgrade and try again.', 'twentysixteen' ), $GLOBALS['wp_version'] ), - '', - array( - 'back_link' => true, - ) - ); -} -add_action( 'load-customize.php', 'twentysixteen_customize' ); - -/** - * Prevents the Theme Preview from being loaded on WordPress versions prior to 4.4. - * - * @since Twenty Sixteen 1.0 - * - * @global string $wp_version WordPress version. - */ -function twentysixteen_preview() { - if ( isset( $_GET['preview'] ) ) { - /* translators: %s: The current WordPress version. */ - wp_die( sprintf( __( 'Twenty Sixteen requires at least WordPress version 4.4. You are running version %s. Please upgrade and try again.', 'twentysixteen' ), $GLOBALS['wp_version'] ) ); - } -} -add_action( 'template_redirect', 'twentysixteen_preview' ); -- cgit