Ticket #38221: 38221.3.diff
File 38221.3.diff, 1.7 KB (added by , 4 years ago) |
---|
-
src/wp-admin/includes/class-wp-media-list-table.php
174 174 ?> 175 175 <div class="actions"> 176 176 <?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 } 181 180 182 183 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 ); 184 183 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' ) ); 187 185 188 186 if ( $this->is_trash && current_user_can( 'edit_others_posts' ) && $this->has_items() ) { 189 187 submit_button( __( 'Empty Trash' ), 'apply', 'delete_all', false ); -
src/wp-admin/includes/class-wp-posts-list-table.php
532 532 ?> 533 533 <div class="alignleft actions"> 534 534 <?php 535 if ( 'top' === $which && ! is_singular()) {535 if ( 'top' === $which ) { 536 536 ob_start(); 537 537 538 538 $this->months_dropdown( $this->screen->post_type );