Commit e6e6cbf2 authored by John Blackbourn's avatar John Blackbourn

Taxonomy: Revert accidental changes introduced in [38578].

See #18302

Built from https://develop.svn.wordpress.org/trunk@38579


git-svn-id: http://core.svn.wordpress.org/trunk@38522 1a063a9b-81f0-0310-95a4-ce76da25c4cd
parent c0bb9c25
......@@ -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;
}
......
......@@ -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.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment