Ticket #49031: editor.js.patch
File editor.js.patch, 774 bytes (added by , 5 years ago) |
---|
-
src/js/_enqueues/wp/media/editor.js
164 164 var shortcode, html, extension; 165 165 166 166 props = wp.media.string.props( props, attachment ); 167 if ( props.link !== 'embed' ) 167 if ( props.link !== 'embed' ) { 168 168 return wp.media.string.link( props ); 169 } 169 170 170 171 shortcode = {}; 171 172 … … 444 445 445 446 if ( attrs._orderbyRandom ) { 446 447 attrs.orderby = 'rand'; 447 } else if ( attrs._orderByField && attrs._orderByField != 'rand' ) {448 } else if ( attrs._orderByField && attrs._orderByField !== 'rand' ) { 448 449 attrs.orderby = attrs._orderByField; 449 450 } 450 451