WordPress.org

Make WordPress Core

Changeset 25653


Ignore:
Timestamp:
10/01/2013 02:52:30 AM (8 years ago)
Author:
SergeyBiryukov
Message:

Remove inaccurate @return value from remove_role(). props tivnet. fixes #25450.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/capabilities.php

    r25615 r25653  
    14081408 *
    14091409 * @param string $role Role name.
    1410  * @return null
    14111410 */
    14121411function remove_role( $role ) {
     
    14161415        $wp_roles = new WP_Roles();
    14171416
    1418     return $wp_roles->remove_role( $role );
     1417    $wp_roles->remove_role( $role );
    14191418}
    14201419
Note: See TracChangeset for help on using the changeset viewer.