Make WordPress Core

Ticket #24962: 24962.patch

File 24962.patch, 640 bytes (added by nofearinc, 11 years ago)
  • wp-includes/capabilities.php

     
    732732         * @since 2.0.0
    733733         * @uses $wp_roles
    734734         * @access public
     735         *
     736         * @return Array list with all capabilities for the user.
    735737         */
    736738        function get_role_caps() {
    737739                global $wp_roles;
     
    750752                        $this->allcaps = array_merge( (array) $this->allcaps, (array) $the_role->capabilities );
    751753                }
    752754                $this->allcaps = array_merge( (array) $this->allcaps, (array) $this->caps );
     755
     756                return $this->allcaps;
    753757        }
    754758
    755759        /**