Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Remove root theme check.
  • Loading branch information
Ned Zimmerman committed Feb 26, 2018
1 parent 53c266b commit 151d70b
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions inc/theme/namespace.php
Expand Up @@ -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(
'<a href="%1$s">%2$s</a>',
'https://github.com/pressbooks/pressbooks-publisher',
'GitHub'
)
)
);
}
}

$theme = wp_get_theme( 'pressbooks-book' );
if ( ! $theme->exists() ) {
wp_die(
Expand Down

0 comments on commit 151d70b

Please sign in to comment.