mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 17:48:01 +01:00
div.alignleft.actions needs to wrap the 'Empty Trash' button too, otherwise they're not aligned. see #15580.
git-svn-id: http://svn.automattic.com/wordpress/trunk@17195 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
082e4d3d0e
commit
1322474b22
@ -202,11 +202,11 @@ class WP_Posts_List_Table extends WP_List_Table {
|
||||
|
||||
function extra_tablenav( $which ) {
|
||||
global $post_type, $post_type_object, $cat;
|
||||
|
||||
if ( 'top' == $which && !is_singular() ) {
|
||||
?>
|
||||
<div class="alignleft actions">
|
||||
<?php
|
||||
if ( 'top' == $which && !is_singular() ) {
|
||||
|
||||
$this->months_dropdown( $post_type );
|
||||
|
||||
if ( is_object_in_taxonomy( $post_type, 'category' ) ) {
|
||||
@ -222,14 +222,14 @@ class WP_Posts_List_Table extends WP_List_Table {
|
||||
}
|
||||
do_action( 'restrict_manage_posts' );
|
||||
submit_button( __( 'Filter' ), 'secondary', 'post-query-submit', false );
|
||||
?>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
|
||||
if ( $this->is_trash && current_user_can( $post_type_object->cap->edit_others_posts ) ) {
|
||||
submit_button( __( 'Empty Trash' ), 'button-secondary apply', 'delete_all', false );
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
|
||||
function current_action() {
|
||||
|
Loading…
Reference in New Issue
Block a user