Skip to:
Content

bbPress.org

Changeset 4578


Ignore:
Timestamp:
12/15/2012 11:59:14 PM (8 years ago)
Author:
johnjamesjacoby
Message:

When spamming or hamming a user, return true/false if action was successful. This will aid in future user moderation tools.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/includes/users/capabilities.php

    r4450 r4578  
    370370    // Bail if no user ID
    371371    if ( empty( $user_id ) )
    372         return;
     372        return false;
    373373
    374374    // Bail if user ID is super admin
    375375    if ( is_super_admin( $user_id ) )
    376         return;
     376        return false;
    377377
    378378    // Arm the torpedos
     
    422422        restore_current_blog();
    423423    }
     424
     425    // Success
     426    return true;
    424427}
    425428
     
    455458    // Bail if no user ID
    456459    if ( empty( $user_id ) )
    457         return;
     460        return false;
    458461
    459462    // Bail if user ID is super admin
    460463    if ( is_super_admin( $user_id ) )
    461         return;
     464        return false;
    462465
    463466    // Arm the torpedos
     
    507510        restore_current_blog();
    508511    }
     512
     513    // Success
     514    return true;
    509515}
    510516
Note: See TracChangeset for help on using the changeset viewer.