mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
Coding Standards: Move assignment out of condition in js/media/views/settings.js.
Props ankitmaru. Fixes #49107. git-svn-id: https://develop.svn.wordpress.org/trunk@47029 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -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 );
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user