Make WordPress Core

Changeset 25673


Ignore:
Timestamp:
10/02/2013 09:35:20 PM (12 years ago)
Author:
wonderboymusic
Message:

WP_User::get_role_caps() now returns the caps it was already setting. The method was previously just setting $allprops and requiring that property to be read.

Props nofearinc.
Fixes #24962.

File:
1 edited

Legend:

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

    r25653 r25673  
    733733     * @uses $wp_roles
    734734     * @access public
     735     *
     736     * @return array List of all capabilities for the user.
    735737     */
    736738    function get_role_caps() {
     
    751753        }
    752754        $this->allcaps = array_merge( (array) $this->allcaps, (array) $this->caps );
     755
     756        return $this->allcaps;
    753757    }
    754758
Note: See TracChangeset for help on using the changeset viewer.