diff -r 3d4e9c994f10 -r a86126ab1dd4 wp/wp-admin/js/media-upload.js --- a/wp/wp-admin/js/media-upload.js Tue Oct 22 16:11:46 2019 +0200 +++ b/wp/wp-admin/js/media-upload.js Tue Dec 15 13:49:49 2020 +0100 @@ -22,9 +22,9 @@ * @global * * @param {string} html The HTML to be sent to the editor. - * @returns {void|boolean} Returns false when both TinyMCE and QTags instances - * are unavailable. This means that the HTML was not - * sent to the editor. + * @return {void|boolean} Returns false when both TinyMCE and QTags instances + * are unavailable. This means that the HTML was not + * sent to the editor. */ window.send_to_editor = function( html ) { var editor, @@ -43,16 +43,16 @@ editor = tinymce.get( wpActiveEditor ); } - // If the editor is set and not hidden, insert the HTML into the content of the - // editor. + // If the editor is set and not hidden, + // insert the HTML into the content of the editor. if ( editor && ! editor.isHidden() ) { editor.execCommand( 'mceInsertContent', false, html ); } else if ( hasQuicktags ) { // If quick tags are available, insert the HTML into its content. QTags.insertContent( html ); } else { - // If neither the TinyMCE editor and the quick tags are available, add the HTML - // to the current active editor. + // If neither the TinyMCE editor and the quick tags are available, + // add the HTML to the current active editor. document.getElementById( wpActiveEditor ).value += html; } @@ -71,8 +71,8 @@ * * @global * - * @returns {Object[]} Array containing jQuery objects for all the found - * ThickBox anchors. + * @return {Object[]} Array containing jQuery objects for all the found + * ThickBox anchors. */ window.tb_position = function() { var tbWindow = $('#TB_window'),