From 94b3fbc8dd841080e30cdff74f99b4fb2e3edefd Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Mon, 10 Dec 2012 23:15:53 +0000 Subject: [PATCH] Makes sure attachment sizes are correctly deselected in IE. Fixes size selections on insert in IE9. props koopersmith. fixes #22851. git-svn-id: http://core.svn.wordpress.org/trunk@23163 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/js/media-views.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wp-includes/js/media-views.js b/wp-includes/js/media-views.js index 748805efe9..6ce8470a40 100644 --- a/wp-includes/js/media-views.js +++ b/wp-includes/js/media-views.js @@ -3900,10 +3900,11 @@ $value = $setting.find('[value="' + value + '"]'); if ( $value.length ) { + $setting.find('option').prop( 'selected', false ); $value.prop( 'selected', true ); } else { // If we can't find the desired value, record what *is* selected. - this.model.set( $setting.data('setting'), $setting.find(':selected').val() ); + this.model.set( key, $setting.find(':selected').val() ); }