- Timestamp:
- 09/30/2025 05:06:42 PM (9 months ago)
- Location:
- branches/4.7
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
tests/phpunit/tests/rest-api/rest-tags-controller.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/4.7
- Property svn:mergeinfo changed
/trunk merged: 60814-60816
- Property svn:mergeinfo changed
-
branches/4.7/tests/phpunit/tests/rest-api/rest-tags-controller.php
r40427 r60839 1003 1003 } 1004 1004 1005 /** 1006 * Callback for map_meta_cap filter to disallow edit_term capability 1007 * 1008 * @param array $caps Required capabilities. 1009 * @param string $cap Capability being checked. 1010 * @return array Modified capabilities. 1011 */ 1012 public function disallow_edit_term_cap( $caps, $cap ) { 1013 if ( 'edit_term' === $cap ) { 1014 return array( 'do_not_allow' ); 1015 } 1016 1017 return $caps; 1018 } 1019 1005 1020 public function tearDown() { 1006 1021 _unregister_taxonomy( 'batman' );
Note: See TracChangeset
for help on using the changeset viewer.