Changeset 39403
- Timestamp:
- 12/01/2016 02:45:17 AM (8 years ago)
- Location:
- branches/4.7
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/4.7
- Property svn:mergeinfo changed
/trunk merged: 39400,39402
- Property svn:mergeinfo changed
-
branches/4.7/src/wp-includes/rest-api/endpoints/class-wp-rest-terms-controller.php
r39348 r39403 350 350 351 351 $taxonomy_obj = get_taxonomy( $this->taxonomy ); 352 if ( ! current_user_can( $taxonomy_obj->cap-> manage_terms ) ) {352 if ( ! current_user_can( $taxonomy_obj->cap->edit_terms ) ) { 353 353 return new WP_Error( 'rest_cannot_create', __( 'Sorry, you are not allowed to create new terms.' ), array( 'status' => rest_authorization_required_code() ) ); 354 354 }
Note: See TracChangeset
for help on using the changeset viewer.