[wp-trac] [WordPress Trac] #32307: Media library grid layout loading takes a (very) long time

WordPress Trac noreply at wordpress.org
Thu May 14 15:41:21 UTC 2015


#32307: Media library grid layout loading takes a (very) long time
--------------------------+------------------------------
 Reporter:  jipmoors      |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Media         |     Version:  trunk
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:  performance
--------------------------+------------------------------

Comment (by nikolov.tmw):

 From what I can tell by following through the code, the
 `get_compat_media_markup()` function is there in order to provide a
 backwards-compatibility layer between the new media modals and the way the
 media edit screen was presented before.

 This function will look for any taxonomies that are linked to attachments
 and display the corresponding interface for selecting those. It will also
 run the filters that allow you to add custom fields to media items and
 render the interface for them as well.

 If you're seeing that much of a slow-down and increase in request size, I
 assume that somewhere in your code adds either custom fields to
 attachments(using a filter like `attachment_fields_to_edit`), registers
 one or more taxonomies for attachments or both of those.

 If that's the case, then I'd suggest you look into ways that will allow
 you to add any custom fields via the Media Views(although I'm not a 100%
 sure if that's possible, I would assume it is).

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


More information about the wp-trac mailing list