- Timestamp:
- 07/08/2019 12:55:20 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/rest-api/rest-posts-controller.php
r45588 r45607 2492 2492 2493 2493 public function revoke_assign_term( $caps, $cap, $user_id, $args ) { 2494 if ( 'assign_term' === $cap && isset( $args[0] ) && $this->forbidden_cat == $args[0] ) {2494 if ( 'assign_term' === $cap && isset( $args[0] ) && $this->forbidden_cat === $args[0] ) { 2495 2495 $caps = array( 'do_not_allow' ); 2496 2496 }
Note: See TracChangeset
for help on using the changeset viewer.