diff --git a/src/wp-admin/includes/class-wp-media-list-table.php b/src/wp-admin/includes/class-wp-media-list-table.php index 031f306987..a37a76ffcb 100644 --- a/src/wp-admin/includes/class-wp-media-list-table.php +++ b/src/wp-admin/includes/class-wp-media-list-table.php @@ -196,20 +196,20 @@ class WP_Media_List_Table extends WP_List_Table { } ?>
- is_trash ) { - $this->months_dropdown( 'attachment' ); - } + is_trash ) { + $this->months_dropdown( 'attachment' ); + } - /** This action is documented in wp-admin/includes/class-wp-posts-list-table.php */ - do_action( 'restrict_manage_posts', $this->screen->post_type, $which ); + /** This action is documented in wp-admin/includes/class-wp-posts-list-table.php */ + do_action( 'restrict_manage_posts', $this->screen->post_type, $which ); - submit_button( __( 'Filter' ), '', 'filter_action', false, array( 'id' => 'post-query-submit' ) ); + submit_button( __( 'Filter' ), '', 'filter_action', false, array( 'id' => 'post-query-submit' ) ); - if ( $this->is_trash && current_user_can( 'edit_others_posts' ) && $this->has_items() ) { - submit_button( __( 'Empty Trash' ), 'apply', 'delete_all', false ); - } - ?> + if ( $this->is_trash && current_user_can( 'edit_others_posts' ) && $this->has_items() ) { + submit_button( __( 'Empty Trash' ), 'apply', 'delete_all', false ); + } + ?>
screen->render_screen_reader_content( 'heading_views' ); ?> -
-
- view_switcher( $mode ); ?> +
+
+ view_switcher( $mode ); ?> - - + $view ) { + echo "\t$view\n"; + } + } + ?> + + + extra_tablenav( 'bar' ); + + /** This filter is documented in wp-admin/inclues/class-wp-list-table.php */ + $views = apply_filters( "views_{$this->screen->id}", array() ); + + // Back compat for pre-4.0 view links. + if ( ! empty( $views ) ) { + echo ''; } - } - ?> - + ?> +
- extra_tablenav( 'bar' ); - - /** This filter is documented in wp-admin/inclues/class-wp-list-table.php */ - $views = apply_filters( "views_{$this->screen->id}", array() ); - - // Back compat for pre-4.0 view links. - if ( ! empty( $views ) ) { - echo ''; - } - ?> -
- -
- -
-
+
+ + +
+
post_type ); if ( $parent_type && $parent_type->show_ui && current_user_can( 'edit_post', $post->post_parent ) ) { - ?> - - - %s', get_edit_post_link( $post->post_parent ), $title ); } elseif ( $parent_type && current_user_can( 'read_post', $post->post_parent ) ) { - ?> - - %s', $title ); } else { _e( '(Private post)' ); } @@ -650,9 +646,8 @@ class WP_Media_List_Table extends WP_List_Table { while ( have_posts() ) : the_post(); - if ( - ( $this->is_trash && 'trash' !== $post->post_status ) - || ( ! $this->is_trash && 'trash' === $post->post_status ) + if ( $this->is_trash && 'trash' !== $post->post_status + || ! $this->is_trash && 'trash' === $post->post_status ) { continue; }