Changeset 22118 for trunk/wp-includes/capabilities.php
- Timestamp:
- 10/04/2012 08:00:16 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/capabilities.php
r22060 r22118 726 726 //Filter out caps that are not role names and assign to $this->roles 727 727 if ( is_array( $this->caps ) ) 728 $this->roles = array_filter( array_keys( $this->caps ), array( &$wp_roles, 'is_role' ) );728 $this->roles = array_filter( array_keys( $this->caps ), array( $wp_roles, 'is_role' ) ); 729 729 730 730 //Build $allcaps from role caps, overlay user's $caps … … 1332 1332 $args = array_merge( array( $capability ), $args ); 1333 1333 1334 return call_user_func_array( array( &$author, 'has_cap' ), $args );1334 return call_user_func_array( array( $author, 'has_cap' ), $args ); 1335 1335 } 1336 1336 … … 1354 1354 $args = array_merge( array( $capability ), $args ); 1355 1355 1356 return call_user_func_array( array( &$user, 'has_cap' ), $args );1356 return call_user_func_array( array( $user, 'has_cap' ), $args ); 1357 1357 } 1358 1358
Note: See TracChangeset
for help on using the changeset viewer.