Media: Revert [46354] preventing bad clipping of text in image details page.

See #47115.

Built from https://develop.svn.wordpress.org/trunk@46355


git-svn-id: http://core.svn.wordpress.org/trunk@46154 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
antpb
2019-09-30 17:12:59 +00:00
parent 7c8028febf
commit 247e7eb7d5
19 changed files with 25 additions and 68 deletions

View File

@@ -3249,8 +3249,6 @@ Select = MediaFrame.extend(/** @lends wp.media.view.MediaFrame.Select.prototype
* Create the default states on the frame.
*/
createStates: function() {
console.log("test");
this.on( 'content:render:edit-image', this.editState, this );
var options = this.options;
if ( this.options.states ) {
@@ -3265,8 +3263,7 @@ Select = MediaFrame.extend(/** @lends wp.media.view.MediaFrame.Select.prototype
multiple: options.multiple,
title: options.title,
priority: 20
}),
new wp.media.controller.EditImage( { model: this.options.editImage } ),
})
]);
},

File diff suppressed because one or more lines are too long