Taxonomy: Introduce wp-admin/term.php for editing single terms.
This is similar to `edit.php` -> `post.php` and `users.php` -> `user-edit.php` and fixes a bug where screen options for the list table were shown while editing a term. Fixes #34988. Built from https://develop.svn.wordpress.org/trunk@36308 git-svn-id: http://core.svn.wordpress.org/trunk@36275 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -926,9 +926,8 @@ function get_edit_term_link( $term_id, $taxonomy, $object_type = '' ) {
|
||||
}
|
||||
|
||||
$args = array(
|
||||
'action' => 'edit',
|
||||
'taxonomy' => $taxonomy,
|
||||
'tag_ID' => $term->term_id,
|
||||
'term_id' => $term->term_id,
|
||||
);
|
||||
|
||||
if ( $object_type ) {
|
||||
@@ -938,7 +937,7 @@ function get_edit_term_link( $term_id, $taxonomy, $object_type = '' ) {
|
||||
}
|
||||
|
||||
if ( $tax->show_ui ) {
|
||||
$location = add_query_arg( $args, admin_url( 'edit-tags.php' ) );
|
||||
$location = add_query_arg( $args, admin_url( 'term.php' ) );
|
||||
} else {
|
||||
$location = '';
|
||||
}
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '4.5-alpha-36307';
|
||||
$wp_version = '4.5-alpha-36308';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
||||
Reference in New Issue
Block a user