Taxonomy: Revert accidental changes introduced in [38578].
See #18302 git-svn-id: https://develop.svn.wordpress.org/trunk@38579 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
2aef21a55b
commit
d651c9c90e
@ -930,7 +930,7 @@ function get_edit_term_link( $term_id, $taxonomy = '', $object_type = '' ) {
|
||||
}
|
||||
|
||||
$tax = get_taxonomy( $term->taxonomy );
|
||||
if ( ! $tax || ! current_user_can( 'edit_term', $term->term_id ) ) {
|
||||
if ( ! $tax || ! current_user_can( $tax->cap->edit_terms ) ) {
|
||||
return;
|
||||
}
|
||||
|
||||
@ -984,7 +984,7 @@ function edit_term_link( $link = '', $before = '', $after = '', $term = null, $e
|
||||
return;
|
||||
|
||||
$tax = get_taxonomy( $term->taxonomy );
|
||||
if ( ! current_user_can( 'edit_term', $term->term_id ) ) {
|
||||
if ( ! current_user_can( $tax->cap->edit_terms ) ) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user