IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
|
|
|
|
| 164 | 164 | var shortcode, html, extension; |
| 165 | 165 | |
| 166 | 166 | props = wp.media.string.props( props, attachment ); |
| 167 | | if ( props.link !== 'embed' ) |
| 168 | | return wp.media.string.link( props ); |
| | 167 | if ( props.link !== 'embed' ) { |
| | 168 | return wp.media.string.link(props); |
| | 169 | } |
| 169 | 170 | |
| 170 | 171 | shortcode = {}; |
| 171 | 172 | |
| … |
… |
|
| 446 | 447 | |
| 447 | 448 | if ( attrs._orderbyRandom ) { |
| 448 | 449 | attrs.orderby = 'rand'; |
| 449 | | } else if ( attrs._orderByField && attrs._orderByField != 'rand' ) { |
| | 450 | } else if ( attrs._orderByField && attrs._orderByField !== 'rand' ) { |
| 450 | 451 | attrs.orderby = attrs._orderByField; |
| 451 | 452 | } |
| 452 | 453 | |
| … |
… |
|
| 625 | 626 | thumbnail_id: settings.post.featuredImageId, |
| 626 | 627 | _wpnonce: settings.post.nonce |
| 627 | 628 | }).done( function( html ) { |
| 628 | | if ( html == '0' ) { |
| | 629 | if ( html === '0' ) { |
| 629 | 630 | window.alert( window.setPostThumbnailL10n.error ); |
| 630 | 631 | return; |
| 631 | 632 | } |
| … |
… |
|
| 801 | 802 | |
| 802 | 803 | selection = selection || state.get('selection'); |
| 803 | 804 | |
| 804 | | if ( ! selection ) |
| | 805 | if ( ! selection ) { |
| 805 | 806 | return; |
| | 807 | } |
| 806 | 808 | |
| 807 | 809 | $.when.apply( $, selection.map( function( attachment ) { |
| 808 | 810 | var display = state.display( attachment ).toJSON(); |
| … |
… |
|
| 965 | 967 | size: 'image-size', |
| 966 | 968 | alt: 'image_alt' |
| 967 | 969 | }, function( option, prop ) { |
| 968 | | if ( props[ prop ] ) |
| | 970 | if ( props[ prop ] ){ |
| 969 | 971 | options[ option ] = props[ prop ]; |
| | 972 | } |
| 970 | 973 | }); |
| 971 | 974 | } else if ( 'video' === attachment.type ) { |
| 972 | 975 | html = wp.media.string.video( props, attachment ); |