Ticket #15784: 15784.patch
File 15784.patch, 1.3 KB (added by , 13 years ago) |
---|
-
wp-admin/includes/class-wp-posts-list-table.php
605 605 $out = array(); 606 606 foreach ( $categories as $c ) { 607 607 $out[] = sprintf( '<a href="%s">%s</a>', 608 esc_url( add_query_arg( array( 'post_type' => $post->post_type, 'category_name' => $c->slug ), 'edit.php' ) ),608 esc_url( add_query_arg( array( 'post_type' => $post->post_type, 'category_name' => $c->slug, 'all_posts' => 1 == $_REQUEST['all_posts'] ? 1 : null ), 'edit.php' ) ), 609 609 esc_html( sanitize_term_field( 'name', $c->name, $c->term_id, 'category', 'display' ) ) 610 610 ); 611 611 } … … 625 625 $out = array(); 626 626 foreach ( $tags as $c ) { 627 627 $out[] = sprintf( '<a href="%s">%s</a>', 628 esc_url( add_query_arg( array( 'post_type' => $post->post_type, 'tag' => $c->slug ), 'edit.php' ) ),628 esc_url( add_query_arg( array( 'post_type' => $post->post_type, 'tag' => $c->slug, 'all_posts' => 1 == $_REQUEST['all_posts'] ? 1 : null ), 'edit.php' ) ), 629 629 esc_html( sanitize_term_field( 'name', $c->name, $c->term_id, 'tag', 'display' ) ) 630 630 ); 631 631 }