Skip to:
Content

bbPress.org

Changeset 2407


Ignore:
Timestamp:
03/28/2010 07:22:55 PM (15 years ago)
Author:
chrishajer
Message:

Fix code to allow moderator access to existing Akismet stats menu item. Fixes #1216, props waclawjacek, hpguru, Nightgunner5

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bb-plugins/akismet.php

    r2398 r2407  
    101101function bb_ksd_configuration_page_add()
    102102{
    103     bb_admin_add_submenu( __( 'Akismet' ), 'moderate', 'bb_ksd_configuration_page', 'options-general.php' );
     103    bb_admin_add_submenu( __( 'Akismet' ), 'use_keys', 'bb_ksd_configuration_page', 'options-general.php' );
    104104}
    105105add_action( 'bb_admin_menu_generator', 'bb_ksd_configuration_page_add' );
     
    216216    }
    217217    if ( function_exists( 'bb_admin_add_submenu' ) ) {
    218         bb_admin_add_submenu( __( 'Akismet Stats' ), 'use_keys', 'bb_ksd_stats_display', 'index.php' );
     218        bb_admin_add_submenu( __( 'Akismet Stats' ), 'moderate', 'bb_ksd_stats_display', 'index.php' );
    219219    }
    220220}
Note: See TracChangeset for help on using the changeset viewer.