Skip to:
Content

bbPress.org

Changeset 4431


Ignore:
Timestamp:
11/16/2012 07:49:57 PM (9 years ago)
Author:
johnjamesjacoby
Message:

Capabilities:

  • Only try to add the new role if there's a new role to add.
File:
1 edited

Legend:

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

    r4406 r4431  
    8181
    8282            // Add the new role
    83             $user->add_role( $new_role );
     83            if ( !empty( $new_role ) ) {
     84                $user->add_role( $new_role );
     85            }
    8486        }
    8587
Note: See TracChangeset for help on using the changeset viewer.