Index: /trunk/src/wp-admin/includes/class-wp-media-list-table.php
===================================================================
--- /trunk/src/wp-admin/includes/class-wp-media-list-table.php (revision 49974)
+++ /trunk/src/wp-admin/includes/class-wp-media-list-table.php (revision 49975)
@@ -197,18 +197,18 @@
?>
- 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 );
-
- 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 );
- }
- ?>
+ 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 );
+
+ 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 );
+ }
+ ?>
screen->render_screen_reader_content( 'heading_views' );
?>
-
-
- view_switcher( $mode ); ?>
-
-
-
+
+
+
+
+
+
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)' );
@@ -651,7 +647,6 @@
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;