diff --git a/src/wp-admin/js/image-edit.js b/src/wp-admin/js/image-edit.js index f9f3416cb0..9eaf51bf88 100644 --- a/src/wp-admin/js/image-edit.js +++ b/src/wp-admin/js/image-edit.js @@ -182,7 +182,7 @@ var imageEdit = window.imageEdit = { callback(); } - if ( $('#imgedit-history-' + postid).val() && $('#imgedit-undone-' + postid).val() === 0 ) { + if ( $('#imgedit-history-' + postid).val() && $('#imgedit-undone-' + postid).val() === '0' ) { $('input.imgedit-submit-btn', '#imgedit-panel-' + postid).removeAttr('disabled'); } else { $('input.imgedit-submit-btn', '#imgedit-panel-' + postid).prop('disabled', true);