WordPress.org

Make WordPress Core

Ticket #25450: remove_role_invalid_return_of_void.patch

File remove_role_invalid_return_of_void.patch, 630 bytes (added by tivnet, 8 years ago)
  • wp-includes/capabilities.php

    IDEA additional info:
    Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
    <+>UTF-8
     
    14071407 * @since 2.0.0
    14081408 *
    14091409 * @param string $role Role name.
    1410  * @return null
     1410 * @return void
    14111411 */
    14121412function remove_role( $role ) {
    14131413        global $wp_roles;
     
    14151415        if ( ! isset( $wp_roles ) )
    14161416                $wp_roles = new WP_Roles();
    14171417
    1418         return $wp_roles->remove_role( $role );
     1418        $wp_roles->remove_role( $role );
    14191419}
    14201420
    14211421/**