Ticket #14998: 14998.diff
| File 14998.diff, 621 bytes (added by coffee2code, 3 years ago) |
|---|
-
wp-includes/capabilities.php
735 735 return true; 736 736 } 737 737 738 // If supplied caps contains FALSE or TRUE then return that boolean without checking other caps. 739 if ( in_array( false, $caps, true ) ) 740 return false; 741 if ( in_array( true, $caps, true ) ) 742 return true; 743 738 744 // Must have ALL requested caps 739 745 $capabilities = apply_filters( 'user_has_cap', $this->allcaps, $caps, $args ); 740 746 foreach ( (array) $caps as $cap ) {
