Skip to:
Content

bbPress.org

Changeset 4282


Ignore:
Timestamp:
10/30/2012 11:51:12 PM (14 years ago)
Author:
johnjamesjacoby
Message:

Capabilities:

  • Update mapped caps in map_settings_meta_caps().
  • Fixes missing BuddyPress and Akismet settings on single-site installations.
  • Fixes #2000.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/includes/admin/admin.php

    r4281 r4282  
    358358                        case 'bbp_settings_buddypress' :
    359359                                if ( ( is_plugin_active( 'buddypress/bp-loader.php' ) && defined( 'BP_VERSION' ) ) && is_super_admin() ) {
    360                                         $caps = array( 'manage_options', $cap );
     360                                        $caps = array( bbpress()->admin->minimum_capability );
    361361                                } else {
    362362                                        $caps = array( 'do_not_allow' );
     
    368368                        case 'bbp_settings_akismet' :
    369369                                if ( ( is_plugin_active( 'akismet/akismet.php' ) && defined( 'AKISMET_VERSION' ) ) && is_super_admin() ) {
    370                                         $caps = array( 'manage_options', $cap );
     370                                        $caps = array( bbpress()->admin->minimum_capability );
    371371                                } else {
    372372                                        $caps = array( 'do_not_allow' );
     
    387387                        case 'bbp_settings_per_page'     : // Settings - Single slugs
    388388                        case 'bbp_settings_per_page_rss' : // Settings - Single slugs
    389                                 $caps = array( 'manage_options', bbpress()->admin->minimum_capability );
     389                                $caps = array( bbpress()->admin->minimum_capability );
    390390                                break;
    391391                }
Note: See TracChangeset for help on using the changeset viewer.