Skip to:
Content

bbPress.org


Ignore:
Timestamp:
02/28/2013 05:15:01 PM (13 years ago)
Author:
johnjamesjacoby
Message:

Replace is_super_admin() usages with bbp_is_user_keymaster() where appropriate. Fixes #2231.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/includes/common/functions.php

    r4775 r4783  
    762762 * @param string $title The title of the content
    763763 * @param string $content The content being posted
    764  * @uses is_super_admin() Allow super admins to bypass blacklist
     764 * @uses bbp_is_user_keymaster() Allow keymasters to bypass blacklist
    765765 * @uses bbp_current_author_ip() To get current user IP address
    766766 * @uses bbp_current_author_ua() To get current user agent
     
    773773        return true;
    774774
    775     // Bail if super admin is author
    776     if ( is_super_admin( $author_id ) )
     775    // Bail if keymaster is author
     776    if ( bbp_is_user_keymaster( $author_id ) )
    777777        return true;
    778778
     
    881881 * @param string $title The title of the content
    882882 * @param string $content The content being posted
    883  * @uses is_super_admin() Allow super admins to bypass blacklist
     883 * @uses bbp_is_user_keymaster() Allow keymasters to bypass blacklist
    884884 * @uses bbp_current_author_ip() To get current user IP address
    885885 * @uses bbp_current_author_ua() To get current user agent
     
    892892        return true;
    893893
    894     // Bail if super admin is author
    895     if ( is_super_admin( $author_id ) )
     894    // Bail if keymaster is author
     895    if ( bbp_is_user_keymaster( $author_id ) )
    896896        return true;
    897897
Note: See TracChangeset for help on using the changeset viewer.