Skip to:
Content

bbPress.org


Ignore:
Timestamp:
08/11/2011 08:18:48 PM (13 years ago)
Author:
johnjamesjacoby
Message:

Extrea duplicate admin menu separator prevention.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/plugin/bbp-admin/bbp-functions.php

    r3349 r3415  
    2121    global $menu;
    2222
     23    // Prevent duplicate separators when no new menu items exist
    2324    if ( !current_user_can( 'edit_replies' ) )
     25        return;
     26
     27    // Prevent duplicate separators when no core menu items exist
     28    if ( !current_user_can( 'edit_posts' ) )
    2429        return;
    2530
Note: See TracChangeset for help on using the changeset viewer.