WordPress.org

Make WordPress Core

Ticket #38221: 38221.3.diff

File 38221.3.diff, 1.7 KB (added by SergeyBiryukov, 15 months ago)
  • src/wp-admin/includes/class-wp-media-list-table.php

     
    174174                ?>
    175175                <div class="actions">
    176176                <?php
    177                 if ( ! is_singular() ) {
    178                         if ( ! $this->is_trash ) {
    179                                 $this->months_dropdown( 'attachment' );
    180                         }
     177                if ( ! $this->is_trash ) {
     178                        $this->months_dropdown( 'attachment' );
     179                }
    181180
    182                         /** This action is documented in wp-admin/includes/class-wp-posts-list-table.php */
    183                         do_action( 'restrict_manage_posts', $this->screen->post_type, $which );
     181                /** This action is documented in wp-admin/includes/class-wp-posts-list-table.php */
     182                do_action( 'restrict_manage_posts', $this->screen->post_type, $which );
    184183
    185                         submit_button( __( 'Filter' ), '', 'filter_action', false, array( 'id' => 'post-query-submit' ) );
    186                 }
     184                submit_button( __( 'Filter' ), '', 'filter_action', false, array( 'id' => 'post-query-submit' ) );
    187185
    188186                if ( $this->is_trash && current_user_can( 'edit_others_posts' ) && $this->has_items() ) {
    189187                        submit_button( __( 'Empty Trash' ), 'apply', 'delete_all', false );
  • src/wp-admin/includes/class-wp-posts-list-table.php

     
    532532                ?>
    533533                <div class="alignleft actions">
    534534                <?php
    535                 if ( 'top' === $which && ! is_singular() ) {
     535                if ( 'top' === $which ) {
    536536                        ob_start();
    537537
    538538                        $this->months_dropdown( $this->screen->post_type );