Ticket #18553: 18553.patch
File 18553.patch, 1.4 KB (added by , 7 years ago) |
---|
-
src/wp-admin/includes/ajax-actions.php
916 916 ob_start(); 917 917 $wp_list_table->single_row( $tag ); 918 918 $parents = ob_get_clean(); 919 $term_count = wp_count_terms( $taxonomy ); 919 920 920 921 $x->add( array( 921 922 'what' => 'taxonomy', … … 924 925 $x->add( array( 925 926 'what' => 'term', 926 927 'position' => $level, 927 'supplemental' => (array) $tag 928 'supplemental' => (array) $tag, 928 929 ) ); 930 931 $x->add( array( 932 'what' => 'term_count', 933 'data' => sprintf( _nx( '%1$s item', '%1$s items', $term_count, 'term counts' ), $term_count ), 934 )); 929 935 $x->send(); 930 936 } 931 937 -
src/wp-admin/js/tags.js
116 116 if ( ! res || res.errors ) 117 117 return; 118 118 119 if ( 'undefined' !== typeof res.responses[2].data ) { 120 var total_items = res.responses[2].data; 121 122 $('#posts-filter .tablenav span.displaying-num').html( total_items ); 123 } 124 119 125 parent = form.find( 'select#parent' ).val(); 120 126 121 127 if ( parent > 0 && $('#tag-' + parent ).length > 0 ) // If the parent exists on this page, insert it below. Else insert it at the top of the list.