Skip to content

Commit

Permalink
Fix bug with loading the main theme (#398)
Browse files Browse the repository at this point in the history
  • Loading branch information
akirk authored Nov 24, 2024
1 parent ab8fe38 commit 8a385f1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion includes/class-frontend.php
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,11 @@ public function load_theme() {
if ( ! is_user_logged_in() || ! Friends::on_frontend() ) {
return;
}
$theme = get_user_option( 'friends_frontend_theme', 'default' );
$theme = 'default';
$default_theme = get_user_option( 'friends_frontend_theme', get_current_user_id() );
if ( $default_theme ) {
$theme = $default_theme;
}
if ( $this->post_format ) {
$post_type_theme = get_user_option( 'friends_frontend_theme_' . $this->post_format, get_current_user_id() );
if ( $post_type_theme ) {
Expand Down

0 comments on commit 8a385f1

Please sign in to comment.