Skip to:
Content

bbPress.org


Ignore:
Timestamp:
05/27/2018 07:44:49 PM (6 years ago)
Author:
johnjamesjacoby
Message:

Template: add is_multisite() check to bbp_is_site_public().

This change avoids a potential fatal error if this core function is used directly.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/includes/common/template.php

    r6777 r6822  
    9797
    9898    // Get the site visibility setting
    99     $public = get_blog_option( $site_id, 'blog_public', 1 );
     99    $public = is_multisite()
     100        ? get_blog_option( $site_id, 'blog_public', 1 )
     101        : get_option( 'blog_public', 1 );
    100102
    101103    // Filter & return
Note: See TracChangeset for help on using the changeset viewer.