Changeset 44146 for trunk/src/wp-includes/capabilities.php
- Timestamp:
- 12/14/2018 02:14:13 AM (6 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
/branches/5.0 merged: 43804
- Property svn:mergeinfo changed
-
trunk/src/wp-includes/capabilities.php
r43520 r44146 575 575 } 576 576 577 // Block capabilities map to their post equivalent. 578 $block_caps = array( 579 'edit_blocks', 580 'edit_others_blocks', 581 'publish_blocks', 582 'read_private_blocks', 583 'delete_blocks', 584 'delete_private_blocks', 585 'delete_published_blocks', 586 'delete_others_blocks', 587 'edit_private_blocks', 588 'edit_published_blocks', 589 ); 590 if ( in_array( $cap, $block_caps, true ) ) { 591 $cap = str_replace( '_blocks', '_posts', $cap ); 592 } 593 577 594 // If no meta caps match, return the original cap. 578 595 $caps[] = $cap;
Note: See TracChangeset
for help on using the changeset viewer.