WordPress.org

Make WordPress Core

Changeset 17195


Ignore:
Timestamp:
12/31/2010 11:56:38 PM (9 years ago)
Author:
nacin
Message:

div.alignleft.actions needs to wrap the 'Empty Trash' button too, otherwise they're not aligned. see #15580.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/class-wp-posts-list-table.php

    r17160 r17195  
    203203    function extra_tablenav( $which ) {
    204204        global $post_type, $post_type_object, $cat;
    205 
    206         if ( 'top' == $which && !is_singular() ) {
    207205?>
    208206        <div class="alignleft actions">
    209207<?php
     208        if ( 'top' == $which && !is_singular() ) {
     209
    210210            $this->months_dropdown( $post_type );
    211211
     
    223223            do_action( 'restrict_manage_posts' );
    224224            submit_button( __( 'Filter' ), 'secondary', 'post-query-submit', false );
     225        }
     226
     227        if ( $this->is_trash && current_user_can( $post_type_object->cap->edit_others_posts ) ) {
     228            submit_button( __( 'Empty Trash' ), 'button-secondary apply', 'delete_all', false );
     229        }
    225230?>
    226231        </div>
    227232<?php
    228         }
    229 
    230         if ( $this->is_trash && current_user_can( $post_type_object->cap->edit_others_posts ) ) {
    231             submit_button( __( 'Empty Trash' ), 'button-secondary apply', 'delete_all', false );
    232         }
    233233    }
    234234
Note: See TracChangeset for help on using the changeset viewer.