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:
parent
d3a14b7719
commit
9571033894
@ -1073,7 +1073,8 @@ Library = wp.media.controller.State.extend(/** @lends wp.media.controller.Librar
|
|||||||
defaultDisplaySettings: function( attachment ) {
|
defaultDisplaySettings: function( attachment ) {
|
||||||
var settings = _.clone( this._defaultDisplaySettings );
|
var settings = _.clone( this._defaultDisplaySettings );
|
||||||
|
|
||||||
if ( settings.canEmbed = this.canEmbed( attachment ) ) {
|
settings.canEmbed = this.canEmbed( attachment );
|
||||||
|
if ( settings.canEmbed ) {
|
||||||
settings.link = 'embed';
|
settings.link = 'embed';
|
||||||
} else if ( ! this.isImageAttachment( attachment ) && settings.link === 'none' ) {
|
} else if ( ! this.isImageAttachment( attachment ) && settings.link === 'none' ) {
|
||||||
settings.link = 'file';
|
settings.link = 'file';
|
||||||
|
2
wp-includes/js/media-views.min.js
vendored
2
wp-includes/js/media-views.min.js
vendored
File diff suppressed because one or more lines are too long
@ -13,7 +13,7 @@
|
|||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @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.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
Loading…
Reference in New Issue
Block a user