diff --git src/wp-admin/term.php src/wp-admin/term.php
index 6d00f50..401d8e7 100644
|
|
|
10 | 10 | /** WordPress Administration Bootstrap */ |
11 | 11 | require_once( dirname( __FILE__ ) . '/admin.php' ); |
12 | 12 | |
13 | | if ( empty( $_REQUEST['term_id'] ) ) { |
| 13 | if ( empty( $_REQUEST['tag_ID'] ) ) { |
14 | 14 | $sendback = admin_url( 'edit-tags.php' ); |
15 | 15 | if ( ! empty( $taxnow ) ) { |
16 | 16 | $sendback = add_query_arg( array( 'taxonomy' => $taxnow ), $sendback ); |
… |
… |
if ( empty( $_REQUEST['term_id'] ) ) { |
19 | 19 | exit; |
20 | 20 | } |
21 | 21 | |
22 | | $term_id = absint( $_REQUEST['term_id'] ); |
| 22 | $term_id = absint( $_REQUEST['tag_ID'] ); |
23 | 23 | $tag = get_term( $term_id, $taxnow, OBJECT, 'edit' ); |
24 | 24 | |
25 | 25 | if ( ! $tag instanceof WP_Term ) { |
diff --git src/wp-includes/link-template.php src/wp-includes/link-template.php
index d872123..903adfd 100644
|
|
function get_edit_term_link( $term_id, $taxonomy = '', $object_type = '' ) { |
928 | 928 | |
929 | 929 | $args = array( |
930 | 930 | 'taxonomy' => $taxonomy, |
931 | | 'term_id' => $term->term_id, |
| 931 | 'tag_ID' => $term->term_id, |
| 932 | 'action' => 'edit', |
932 | 933 | ); |
933 | 934 | |
934 | 935 | if ( $object_type ) { |
diff --git src/wp-includes/vars.php src/wp-includes/vars.php
index d894884..dd514ac 100644
|
|
if ( is_admin() ) { |
39 | 39 | if ( '.php' !== substr($pagenow, -4, 4) ) |
40 | 40 | $pagenow .= '.php'; // for Options +Multiviews: /wp-admin/themes/index.php (themes.php is queried) |
41 | 41 | } |
| 42 | |
| 43 | // @see https://core.trac.wordpress.org/ticket/34988 |
| 44 | if ( 'term.php' === $pagenow ) { |
| 45 | $pagenow = 'edit-tags.php'; |
| 46 | } |
42 | 47 | } else { |
43 | 48 | if ( preg_match('#([^/]+\.php)([?/].*?)?$#i', $_SERVER['PHP_SELF'], $self_matches) ) |
44 | 49 | $pagenow = strtolower($self_matches[1]); |