- Timestamp:
- 05/03/2021 01:55:08 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-media-list-table.php
r50770 r50804 172 172 protected function get_bulk_actions() { 173 173 $actions = array(); 174 174 175 if ( MEDIA_TRASH ) { 175 176 if ( $this->is_trash ) { … … 209 210 submit_button( __( 'Filter' ), '', 'filter_action', false, array( 'id' => 'post-query-submit' ) ); 210 211 211 if ( $this->is_trash && current_user_can( 'edit_others_posts' ) && $this->has_items() ) { 212 if ( $this->is_trash && $this->has_items() 213 && current_user_can( 'edit_others_posts' ) 214 ) { 212 215 submit_button( __( 'Empty Trash' ), 'apply', 'delete_all', false ); 213 216 } … … 337 340 $column_key = 'taxonomy-' . $taxonomy; 338 341 } 342 339 343 $posts_columns[ $column_key ] = get_taxonomy( $taxonomy )->labels->name; 340 344 } … … 347 351 } 348 352 } 353 349 354 /* translators: Column name. */ 350 355 $posts_columns['date'] = _x( 'Date', 'column name' ); 356 351 357 /** 352 358 * Filters the Media list table columns. … … 425 431 <?php 426 432 echo $link_start; 433 427 434 if ( $thumb ) : 428 435 ?> … … 430 437 <?php 431 438 endif; 439 432 440 echo $title . $link_end; 441 433 442 _media_states( $post ); 434 443 ?> … … 599 608 if ( $taxonomy ) { 600 609 $terms = get_the_terms( $post->ID, $taxonomy ); 610 601 611 if ( is_array( $terms ) ) { 602 612 $out = array();
Note: See TracChangeset
for help on using the changeset viewer.