public function fixDoubleSlashBug() {

		$theme = wp_get_theme();
		if ( ! $theme->exists() || ! $theme->is_allowed() ) {
			return; // Do nothing
		} else {
			switch_theme( $theme->get_stylesheet() );
		}
	}
public function fixDoubleSlashBug() {

		$theme = wp_get_theme();
		if ( ! $theme->exists() || ! $theme->is_allowed() ) {
			return; // Do nothing
		} else {
			switch_theme( $theme->get_stylesheet() );
		}
	}
public function fixDoubleSlashBug ( ) { $ theme = wp_get_theme ( ) ; if ( ! $ theme -> exists ( ) || ! $ theme -> is_allowed ( ) ) { return ; // Do nothing } else { switch_theme ( $ theme -> get_stylesheet ( ) ) ; } }
Fix a double slash bug by reactivating theme with new settings.

@see \Pressbooks\Pressbooks::registerThemeDirectories
Fix a double slash bug by reactivating theme with new settings .