[wp-trac] [WordPress Trac] #29775: Media manager bug

WordPress Trac noreply at wordpress.org
Sun Sep 28 19:00:43 UTC 2014


#29775: Media manager bug
--------------------------+------------------------------
 Reporter:  rudybrinkman  |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Media         |     Version:  4.0
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:
--------------------------+------------------------------

Comment (by kitchin):

 As a workaround, you can filter the query that populates the grid, with
 'ajax_query_attachments_args'. That's not going to be easy. You'd have to
 run the query, pick out the large/bad items and change the query. There's
 one more filter after the image is processed but it's probably too late:
 'wp_prepare_attachment_for_js'.

 You can force list view instead of grid using
 'get_user_option_media_library_mode'. Or make it default:
 {{{
 add_filter( 'get_user_option_media_library_mode',
 'my_get_user_option_media_library_mode' );
 function my_get_user_option_media_library_mode( $result ) {
         if ( ! $result ) $result = 'list';
         return $result;
 }
 }}}

 With users uploading 16 megapixel photos, breakage is not surprising, and
 the ultra-javascript interface makes it hard to control.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/29775#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list