Changeset 36874
- Timestamp:
- 03/07/2016 12:55:04 PM (9 years ago)
- Location:
- trunk
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/admin.php
r36709 r36874 356 356 elseif ( $taxnow == 'link_category' ) 357 357 do_action( 'load-edit-link-categories.php' ); 358 } elseif( 'term.php' === $pagenow ) { 359 do_action( 'edit-tags.php' ); 358 360 } 359 361 } -
trunk/src/wp-admin/includes/class-wp-screen.php
r36137 r36874 305 305 break; 306 306 case 'edit-tags' : 307 case 'term' : 307 308 if ( null === $post_type && is_object_in_taxonomy( 'post', $taxonomy ? $taxonomy : 'post_tag' ) ) 308 309 $post_type = 'post'; … … 323 324 break; 324 325 case 'edit-tags' : 326 case 'term' : 325 327 if ( null === $taxonomy ) 326 328 $taxonomy = 'post_tag'; -
trunk/src/wp-admin/term.php
r36497 r36874 11 11 require_once( dirname( __FILE__ ) . '/admin.php' ); 12 12 13 if ( empty( $_REQUEST['t erm_id'] ) ) {13 if ( empty( $_REQUEST['tag_ID'] ) ) { 14 14 $sendback = admin_url( 'edit-tags.php' ); 15 15 if ( ! empty( $taxnow ) ) { … … 20 20 } 21 21 22 $term_id = absint( $_REQUEST['t erm_id'] );23 $tag = get_term( $term_id, $taxnow, OBJECT, 'edit' );22 $term_id = absint( $_REQUEST['tag_ID'] ); 23 $tag = get_term( $term_id, '', OBJECT, 'edit' ); 24 24 25 25 if ( ! $tag instanceof WP_Term ) { -
trunk/src/wp-includes/admin-bar.php
r36601 r36874 574 574 ) ); 575 575 } 576 } elseif ( ' edit-tags' == $current_screen->base576 } elseif ( 'term' == $current_screen->base 577 577 && isset( $tag ) && is_object( $tag ) && ! is_wp_error( $tag ) 578 578 && ( $tax = get_taxonomy( $tag->taxonomy ) ) -
trunk/src/wp-includes/link-template.php
r36709 r36874 929 929 $args = array( 930 930 'taxonomy' => $taxonomy, 931 't erm_id'=> $term->term_id,931 'tag_ID' => $term->term_id, 932 932 ); 933 933 -
trunk/tests/phpunit/tests/post.php
r36309 r36874 992 992 993 993 foreach ( $matches[1] as $url ) { 994 $this->assertContains( 't erm_id=' . $term->term_id, $url );994 $this->assertContains( 'tag_ID=' . $term->term_id, $url ); 995 995 $this->assertContains( 'post_type=new_post_type', $url ); 996 996 } -
trunk/tests/phpunit/tests/term/getEditTermLink.php
r36646 r36874 18 18 19 19 $actual = get_edit_term_link( $term1, 'wptests_tax' ); 20 $expected = 'http://' . WP_TESTS_DOMAIN . '/wp-admin/term.php?taxonomy=wptests_tax&t erm_id=' . $term1 . '&post_type=post';20 $expected = 'http://' . WP_TESTS_DOMAIN . '/wp-admin/term.php?taxonomy=wptests_tax&tag_ID=' . $term1 . '&post_type=post'; 21 21 $this->assertEquals( $expected, $actual ); 22 22 }
Note: See TracChangeset
for help on using the changeset viewer.