diff --git a/src/js/media/views/settings.js b/src/js/media/views/settings.js index 0cfe272c0a..e91055a72f 100644 --- a/src/js/media/views/settings.js +++ b/src/js/media/views/settings.js @@ -110,7 +110,8 @@ Settings = View.extend(/** @lends wp.media.view.Settings.prototype */{ // If the setting has a corresponding user setting, // update that as well. - if ( userSetting = $setting.data('userSetting') ) { + userSetting = $setting.data('userSetting'); + if ( userSetting ) { window.setUserSetting( userSetting, value ); } },