WordPress.org

Make WordPress Core

Changeset 22160


Ignore:
Timestamp:
10/10/2012 10:08:43 AM (8 years ago)
Author:
koopersmith
Message:

Media JS: Ensure the subtype key has a default set.

Prevents undefined JS errors in the attachments view template.

see #21390.

Location:
trunk/wp-includes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/js/media-views.js

    r22159 r22160  
    410410                    orientation: 'landscape',
    411411                    uploading:   false,
    412                     type:        ''
     412                    type:        '',
     413                    subtype:     ''
    413414                });
    414415
  • trunk/wp-includes/media.php

    r22159 r22160  
    13411341            <% } %>
    13421342
    1343 
    1344 
    13451343            <% if ( buttons.close ) { %>
    13461344                <a class="close" href="#">&times;</a>
Note: See TracChangeset for help on using the changeset viewer.