Skip to:
Content

bbPress.org

Changeset 4336


Ignore:
Timestamp:
11/04/2012 09:35:47 PM (12 years ago)
Author:
johnjamesjacoby
Message:

Capabilities:

  • Switch default value of global access to 1.
  • Fixes confusion about why users are not automatically added to forums.
  • See #1939.
Location:
trunk/includes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/includes/core/options.php

    r4294 r4336  
    3636        '_bbp_allow_topic_tags'     => 1,                          // Topic Tags
    3737        '_bbp_allow_anonymous'      => 0,                          // Allow anonymous posting
    38         '_bbp_allow_global_access'  => 0,                          // Users from all sites can post
     38        '_bbp_allow_global_access'  => 1,                          // Users from all sites can post
    3939        '_bbp_use_wp_editor'        => 1,                          // Use the WordPress editor if available
    4040        '_bbp_use_autoembed'        => 0,                          // Allow oEmbed in topics and replies
     
    255255 * @return bool Is global access allowed?
    256256 */
    257 function bbp_allow_global_access( $default = 0 ) {
     257function bbp_allow_global_access( $default = 1 ) {
    258258    return (bool) apply_filters( 'bbp_allow_global_access', (bool) get_option( '_bbp_allow_global_access', $default ) );
    259259}
  • trunk/includes/users/capabilities.php

    r4335 r4336  
    9494
    9595    // Bail if forum is not global
    96     if ( ! bbp_allow_global_access() )
     96    if ( ! bbp_allow_global_access( true ) )
    9797        return;
    9898
Note: See TracChangeset for help on using the changeset viewer.