diff --git a/wp-includes/link-template.php b/wp-includes/link-template.php index 555c50949c..508b7e9f8f 100644 --- a/wp-includes/link-template.php +++ b/wp-includes/link-template.php @@ -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; } diff --git a/wp-includes/version.php b/wp-includes/version.php index df7753b993..9599271409 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.7-alpha-38578'; +$wp_version = '4.7-alpha-38579'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.