Changeset 38579
- Timestamp:
- 09/08/2016 10:57:22 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/link-template.php
r38578 r38579 931 931 932 932 $tax = get_taxonomy( $term->taxonomy ); 933 if ( ! $tax || ! current_user_can( 'edit_term', $term->term_id) ) {933 if ( ! $tax || ! current_user_can( $tax->cap->edit_terms ) ) { 934 934 return; 935 935 } … … 985 985 986 986 $tax = get_taxonomy( $term->taxonomy ); 987 if ( ! current_user_can( 'edit_term', $term->term_id) ) {987 if ( ! current_user_can( $tax->cap->edit_terms ) ) { 988 988 return; 989 989 }
Note: See TracChangeset
for help on using the changeset viewer.