From 151d70bd5297a6164f02b27eac576be191c4fc2d Mon Sep 17 00:00:00 2001 From: Ned Zimmerman Date: Mon, 26 Feb 2018 13:31:52 -0400 Subject: [PATCH] Remove root theme check. --- inc/theme/namespace.php | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/inc/theme/namespace.php b/inc/theme/namespace.php index b2f8fdae4..e29b872a8 100644 --- a/inc/theme/namespace.php +++ b/inc/theme/namespace.php @@ -43,22 +43,6 @@ function check_required_themes() { ); } - if ( PB_ROOT_THEME === 'pressbooks-publisher' ) { // To bypass this check, define PB_ROOT_THEME to the name of your custom root theme in wp-config.php. - $theme = wp_get_theme( 'pressbooks-publisher' ); - if ( ! $theme->exists() ) { - wp_die( - sprintf( - __( 'The Pressbooks Publisher theme is not installed, but Pressbooks needs it in order to function properly. Please visit %s for installation instructions.', 'pressbooks' ), - sprintf( - '%2$s', - 'https://github.com/pressbooks/pressbooks-publisher', - 'GitHub' - ) - ) - ); - } - } - $theme = wp_get_theme( 'pressbooks-book' ); if ( ! $theme->exists() ) { wp_die(