Coding Standards: Move assignment out of condition in `js/media/controllers/library.js`.

Props ankitmaru.
Fixes #49108.
Built from https://develop.svn.wordpress.org/trunk@47030


git-svn-id: http://core.svn.wordpress.org/trunk@46830 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2020-01-02 12:07:02 +00:00
parent d3a14b7719
commit 9571033894
3 changed files with 4 additions and 3 deletions

View File

@ -1073,7 +1073,8 @@ Library = wp.media.controller.State.extend(/** @lends wp.media.controller.Librar
defaultDisplaySettings: function( attachment ) {
var settings = _.clone( this._defaultDisplaySettings );
if ( settings.canEmbed = this.canEmbed( attachment ) ) {
settings.canEmbed = this.canEmbed( attachment );
if ( settings.canEmbed ) {
settings.link = 'embed';
} else if ( ! this.isImageAttachment( attachment ) && settings.link === 'none' ) {
settings.link = 'file';

File diff suppressed because one or more lines are too long

View File

@ -13,7 +13,7 @@
*
* @global string $wp_version
*/
$wp_version = '5.4-alpha-47029';
$wp_version = '5.4-alpha-47030';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.