WordPress.org

Make WordPress Core

Changeset 23037


Ignore:
Timestamp:
12/04/12 19:38:16 (17 months ago)
Author:
nacin
Message:

Media: Properly select the select element's option in the attachment display settings. props koopersmith. fixes #22693.

File:
1 edited

Legend:

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

    r23033 r23037  
    37433743 
    37443744                if ( $value.length ) { 
    3745                     $value.select(); 
     3745                    $value.prop( 'selected', true ); 
    37463746                } else { 
    37473747                    // If we can't find the desired value, record what *is* selected. 
Note: See TracChangeset for help on using the changeset viewer.