diff --git a/src/js/_enqueues/admin/comment.js b/src/js/_enqueues/admin/comment.js
index 04d6e539f2..f1fd2213a0 100644
--- a/src/js/_enqueues/admin/comment.js
+++ b/src/js/_enqueues/admin/comment.js
@@ -27,7 +27,7 @@ jQuery(document).ready( function($) {
* @listens $edittimestamp:click
*
* @param {Event} event The event object.
- * @returns {void}
+ * @return {void}
*/
$edittimestamp.click( function( event ) {
if ( $timestampdiv.is( ':hidden' ) ) {
@@ -46,7 +46,7 @@ jQuery(document).ready( function($) {
* @listens .cancel-timestamp:click
*
* @param {Event} event The event object.
- * @returns {void}
+ * @return {void}
*/
$timestampdiv.find('.cancel-timestamp').click( function( event ) {
@@ -68,7 +68,7 @@ jQuery(document).ready( function($) {
* @listens .save-timestamp:click
*
* @param {Event} event The event object.
- * @returns {void}
+ * @return {void}
*/
$timestampdiv.find('.save-timestamp').click( function( event ) { // crazyhorse - multiple ok cancels
var aa = $('#aa').val(), mm = $('#mm').val(), jj = $('#jj').val(), hh = $('#hh').val(), mn = $('#mn').val(),
diff --git a/src/js/_enqueues/admin/common.js b/src/js/_enqueues/admin/common.js
index 049b7de2e0..0541c8d0f2 100644
--- a/src/js/_enqueues/admin/common.js
+++ b/src/js/_enqueues/admin/common.js
@@ -42,7 +42,7 @@ window.columns = {
*
* @since 2.7.0
*
- * @returns {void}
+ * @return {void}
*/
init : function() {
var that = this;
@@ -64,7 +64,7 @@ window.columns = {
*
* @since 3.0.0
*
- * @returns {void}
+ * @return {void}
*/
saveManageColumnsState : function() {
var hidden = this.hidden();
@@ -82,7 +82,7 @@ window.columns = {
* @since 3.0.0
* @param {string} column The column name.
*
- * @returns {void}
+ * @return {void}
*/
checked : function(column) {
$('.column-' + column).removeClass( 'hidden' );
@@ -95,7 +95,7 @@ window.columns = {
* @since 3.0.0
* @param {string} column The column name.
*
- * @returns {void}
+ * @return {void}
*/
unchecked : function(column) {
$('.column-' + column).addClass( 'hidden' );
@@ -107,7 +107,7 @@ window.columns = {
*
* @since 3.0.0
*
- * @returns {string} The hidden column names separated by a comma.
+ * @return {string} The hidden column names separated by a comma.
*/
hidden : function() {
return $( '.manage-column[id]' ).filter( '.hidden' ).map(function() {
@@ -120,7 +120,7 @@ window.columns = {
*
* @since 3.0.0
*
- * @returns {string} String containing the checked column names.
+ * @return {string} String containing the checked column names.
*/
useCheckboxesForHidden : function() {
this.hidden = function(){
@@ -156,7 +156,7 @@ $document.ready(function(){columns.init();});
*
* @param {jQuery} form The form to validate.
*
- * @returns {boolean} Returns true if all required fields are not an empty string.
+ * @return {boolean} Returns true if all required fields are not an empty string.
*/
window.validateForm = function( form ) {
return !$( form )
@@ -176,7 +176,7 @@ window.validateForm = function( form ) {
*
* @type {{warn: showNotice.warn, note: showNotice.note}}
*
- * @returns {void}
+ * @return {void}
*/
window.showNotice = {
@@ -185,7 +185,7 @@ window.showNotice = {
*
* @since 2.7.0
*
- * @returns {boolean} Returns true if the message is confirmed.
+ * @return {boolean} Returns true if the message is confirmed.
*/
warn : function() {
var msg = commonL10n.warnDelete || '';
@@ -217,7 +217,7 @@ window.showNotice = {
* toggleEvent: screenMeta.toggleEvent, open: screenMeta.open,
* close: screenMeta.close}}
*
- * @returns {void}
+ * @return {void}
*/
window.screenMeta = {
element: null, // #screen-meta
@@ -229,7 +229,7 @@ window.screenMeta = {
*
* @since 3.2.0
*
- * @returns {void}
+ * @return {void}
*/
init: function() {
this.element = $('#screen-meta');
@@ -244,7 +244,7 @@ window.screenMeta = {
*
* @since 3.2.0
*
- * @returns {void}
+ * @return {void}
*/
toggleEvent: function() {
var panel = $( '#' + $( this ).attr( 'aria-controls' ) );
@@ -266,7 +266,7 @@ window.screenMeta = {
* @param {jQuery} panel The screen meta options panel div.
* @param {jQuery} button The toggle button.
*
- * @returns {void}
+ * @return {void}
*/
open: function( panel, button ) {
@@ -279,7 +279,7 @@ window.screenMeta = {
*
* @since 3.2.0
*
- * @returns {void}
+ * @return {void}
*/
panel.slideDown( 'fast', function() {
panel.focus();
@@ -297,7 +297,7 @@ window.screenMeta = {
* @param {jQuery} panel The screen meta options panel div.
* @param {jQuery} button The toggle button.
*
- * @returns {void}
+ * @return {void}
*/
close: function( panel, button ) {
/**
@@ -305,7 +305,7 @@ window.screenMeta = {
*
* @since 3.2.0
*
- * @returns {void}
+ * @return {void}
*/
panel.slideUp( 'fast', function() {
button.removeClass( 'screen-meta-active' ).attr( 'aria-expanded', false );
@@ -322,7 +322,7 @@ window.screenMeta = {
*
* @param {Event} e The event object.
*
- * @returns {void}
+ * @return {void}
*/
$('.contextual-help-tabs').delegate('a', 'click', function(e) {
var link = $(this),
@@ -503,7 +503,7 @@ $document.ready( function() {
*
* @param {Event} e The event object.
*
- * @returns {void}
+ * @return {void}
*/
$adminmenu.on('click.wp-submenu-head', '.wp-submenu-head', function(e){
$(e.target).parent().siblings('a').get(0).click();
@@ -512,7 +512,7 @@ $document.ready( function() {
/**
* Collapses the admin menu.
*
- * @returns {void}
+ * @return {void}
*/
$( '#collapse-button' ).on( 'click.collapse-menu', function() {
var viewportWidth = getViewportWidth() || 961;
@@ -551,7 +551,7 @@ $document.ready( function() {
*
* @since 4.4.0
*
- * @returns {void}
+ * @return {void}
*/
function currentMenuItemHasPopup() {
var $current = $( 'a.wp-has-current-submenu' );
@@ -574,7 +574,7 @@ $document.ready( function() {
*
* @param {jQuery} $menuItem The parent menu item containing the submenu.
*
- * @returns {void}
+ * @return {void}
*/
function adjustSubmenu( $menuItem ) {
var bottomOffset, pageHeight, adjustment, theFold, menutop, wintop, maxtop,
@@ -613,7 +613,7 @@ $document.ready( function() {
*
* @param {Event} e The event object.
*
- * @returns {void}
+ * @return {void}
*/
$body.on( mobileEvent+'.wp-mobile-hover', function(e) {
if ( $adminmenu.data('wp-responsive') ) {
@@ -630,7 +630,7 @@ $document.ready( function() {
*
* @param {Event} event The event object.
*
- * @returns {void}
+ * @return {void}
*/
$adminmenu.find( 'a.wp-has-submenu' ).on( mobileEvent + '.wp-mobile-hover', function( event ) {
var $menuItem = $(this).parent();
@@ -657,7 +657,7 @@ $document.ready( function() {
/**
* Opens the submenu when hovered over the menu item for desktops.
*
- * @returns {void}
+ * @return {void}
*/
over: function() {
var $menuItem = $( this ),
@@ -681,7 +681,7 @@ $document.ready( function() {
/**
* Closes the submenu when no longer hovering the menu item.
*
- * @returns {void}
+ * @return {void}
*/
out: function(){
if ( $adminmenu.data( 'wp-responsive' ) ) {
@@ -701,7 +701,7 @@ $document.ready( function() {
*
* @param {Event} event The event object.
*
- * @returns {void}
+ * @return {void}
*/
$adminmenu.on( 'focus.adminmenu', '.wp-submenu a', function( event ) {
if ( $adminmenu.data( 'wp-responsive' ) ) {
@@ -716,7 +716,7 @@ $document.ready( function() {
*
* @param {Event} event The event object.
*
- * @returns {void}
+ * @return {void}
*/
}).on( 'blur.adminmenu', '.wp-submenu a', function( event ) {
if ( $adminmenu.data( 'wp-responsive' ) ) {
@@ -728,7 +728,7 @@ $document.ready( function() {
/**
* Adjusts the size for the submenu.
*
- * @returns {void}
+ * @return {void}
*/
}).find( 'li.wp-has-submenu.wp-not-current-submenu' ).on( 'focusin.adminmenu', function() {
adjustSubmenu( $( this ) );
@@ -751,7 +751,7 @@ $document.ready( function() {
*
* @since 4.4.0
*
- * @returns {void}
+ * @return {void}
*/
function makeNoticesDismissible() {
$( '.notice.is-dismissible' ).each( function() {
@@ -784,7 +784,7 @@ $document.ready( function() {
*
* This event needs to be delegated. Ticket #37973.
*
- * @returns {boolean} Returns whether a checkbox is checked or not.
+ * @return {boolean} Returns whether a checkbox is checked or not.
*/
$body.on( 'click', 'tbody > tr > .check-column :checkbox', function( event ) {
// Shift click to select a range of checkboxes.
@@ -813,7 +813,7 @@ $document.ready( function() {
/**
* Determines if all checkboxes are checked.
*
- * @returns {boolean} Returns true if there are no unchecked checkboxes.
+ * @return {boolean} Returns true if there are no unchecked checkboxes.
*/
$(this).closest('table').children('thead, tfoot').find(':checkbox').prop('checked', function() {
return ( 0 === unchecked.length );
@@ -832,7 +832,7 @@ $document.ready( function() {
*
* @param {Event} event The event object.
*
- * @returns {boolean}
+ * @return {boolean}
*/
$body.on( 'click.wp-toggle-checkboxes', 'thead .check-column :checkbox, tfoot .check-column :checkbox', function( event ) {
var $this = $(this),
@@ -845,7 +845,7 @@ $document.ready( function() {
/**
* Updates the checked state on the checkbox in the table.
*
- * @returns {boolean} True checks the checkbox, False unchecks the checkbox.
+ * @return {boolean} True checks the checkbox, False unchecks the checkbox.
*/
.prop('checked', function() {
if ( $(this).is(':hidden,:disabled') ) {
@@ -867,7 +867,7 @@ $document.ready( function() {
/**
* Syncs the bulk checkboxes on the top and bottom of the table.
*
- * @returns {boolean} True checks the checkbox, False unchecks the checkbox.
+ * @return {boolean} True checks the checkbox, False unchecks the checkbox.
*/
.prop('checked', function() {
if ( toggle ) {
@@ -883,7 +883,7 @@ $document.ready( function() {
/**
* Shows row actions on focus of its parent container element or any other elements contained within.
*
- * @returns {void}
+ * @return {void}
*/
$( '#wpbody-content' ).on({
focusin: function() {
@@ -918,7 +918,7 @@ $document.ready( function() {
*
* @param {Event} e The event object.
*
- * @returns {void}
+ * @return {void}
*/
$('#newcontent').bind('keydown.wpevent_InsertTab', function(e) {
var el = e.target, selStart, selEnd, val, scroll, sel;
@@ -977,7 +977,7 @@ $document.ready( function() {
*
* The form closest to the pageInput is the post-filter form.
*
- * @returns {void}
+ * @return {void}
*/
pageInput.closest('form').submit( function() {
/*
@@ -992,7 +992,7 @@ $document.ready( function() {
/**
* Resets the bulk actions when the search button is clicked.
*
- * @returns {void}
+ * @return {void}
*/
$('.search-box input[type="search"], .search-box input[type="submit"]').mousedown(function () {
$('select[name^="action"]').val('-1');
@@ -1003,7 +1003,7 @@ $document.ready( function() {
*
* @param {Event} e The event object.
*
- * @returns {void}
+ * @return {void}
*/
$('#contextual-help-link, #show-settings-link').on( 'focus.scroll-into-view', function(e){
if ( e.target.scrollIntoView )
@@ -1013,7 +1013,7 @@ $document.ready( function() {
/**
* Disables the submit upload buttons when no data is entered.
*
- * @returns {void}
+ * @return {void}
*/
(function(){
var button, input, form = $('form.wp-upload-form');
@@ -1030,7 +1030,7 @@ $document.ready( function() {
*
* @since 3.5.0
*
- * @returns {void}
+ * @return {void}
*/
function toggleUploadButton() {
// When no inputs have a value, disable the upload buttons.
@@ -1052,7 +1052,7 @@ $document.ready( function() {
*
* @since 4.1.0
*
- * @returns {void}
+ * @return {void}
*/
function pinMenu( event ) {
var windowPos = $window.scrollTop(),
@@ -1195,7 +1195,7 @@ $document.ready( function() {
*
* @since 4.1.0
*
- * @returns {void}
+ * @return {void}
*/
function resetHeights() {
height = {
@@ -1211,7 +1211,7 @@ $document.ready( function() {
*
* @since 4.1.0
*
- * @returns {void}
+ * @return {void}
*/
function unpinMenu() {
if ( isIOS || ! menuIsPinned ) {
@@ -1231,7 +1231,7 @@ $document.ready( function() {
*
* @since 4.1.0
*
- * @returns {void}
+ * @return {void}
*/
function setPinMenu() {
resetHeights();
@@ -1260,7 +1260,7 @@ $document.ready( function() {
*
* @since 3.8.0
*
- *@returns {void}
+ * @return {void}
*/
window.wpResponsive = {
@@ -1269,7 +1269,7 @@ $document.ready( function() {
*
* @since 3.8.0
*
- * @returns {void}
+ * @return {void}
*/
init: function() {
var self = this;
@@ -1327,7 +1327,7 @@ $document.ready( function() {
*
* @since 5.3.0
*
- * @returns {void}
+ * @return {void}
*/
maybeDisableSortables: function() {
var width = navigator.userAgent.indexOf('AppleWebKit/') > -1 ? $window.width() : window.innerWidth;
@@ -1350,7 +1350,7 @@ $document.ready( function() {
*
* @since 3.8.0
*
- * @returns {void}
+ * @return {void}
*/
activate: function() {
setPinMenu();
@@ -1371,7 +1371,7 @@ $document.ready( function() {
*
* @since 3.8.0
*
- * @returns {void}
+ * @return {void}
*/
deactivate: function() {
setPinMenu();
@@ -1385,7 +1385,7 @@ $document.ready( function() {
*
* @since 3.8.0
*
- * @returns {void}
+ * @return {void}
*/
trigger: function() {
var viewportWidth = getViewportWidth();
@@ -1421,7 +1421,7 @@ $document.ready( function() {
*
* @since 3.8.0
*
- * @returns {void}
+ * @return {void}
*/
enableOverlay: function() {
if ( $overlay.length === 0 ) {
@@ -1444,7 +1444,7 @@ $document.ready( function() {
*
* @since 3.8.0
*
- * @returns {void}
+ * @return {void}
*/
disableOverlay: function() {
$toolbarPopups.off( 'click.wp-responsive' );
@@ -1456,7 +1456,7 @@ $document.ready( function() {
*
* @since 3.8.0
*
- * @returns {void}
+ * @return {void}
*/
disableSortables: function() {
if ( $sortables.length ) {
@@ -1472,7 +1472,7 @@ $document.ready( function() {
*
* @since 3.8.0
*
- * @returns {void}
+ * @return {void}
*/
enableSortables: function() {
if ( $sortables.length ) {
@@ -1489,7 +1489,7 @@ $document.ready( function() {
*
* @since 4.5.0
*
- * @returns {void}
+ * @return {void}
*/
function aria_button_if_js() {
$( '.aria-button-if-js' ).attr( 'role', 'button' );
@@ -1504,8 +1504,8 @@ $document.ready( function() {
*
* @since 4.7.0
*
- * @returns {number|boolean} The current viewport width or false if the
- * browser doesn't support innerWidth (IE < 9).
+ * @return {number|boolean} The current viewport width or false if the
+ * browser doesn't support innerWidth (IE < 9).
*/
function getViewportWidth() {
var viewportWidth = false;
@@ -1526,7 +1526,7 @@ $document.ready( function() {
*
* @since 4.7.0
*
- * @returns {void}
+ * @return {void}
*/
function setMenuState() {
var viewportWidth = getViewportWidth() || 961;
@@ -1554,7 +1554,7 @@ $document.ready( function() {
*
* @since 4.7.0
*
- * @returns {void}
+ * @return {void}
*/
$document.on( 'wp-menu-state-set wp-collapse-menu', function( event, eventData ) {
var $collapseButton = $( '#collapse-button' ),
@@ -1613,7 +1613,7 @@ $document.ready( function() {
*
* @since 3.8.0
*
- * @returns {void}
+ * @return {void}
*/
function triggerEvent() {
$document.trigger( 'wp-window-resized' );
@@ -1624,7 +1624,7 @@ $document.ready( function() {
*
* @since 3.8.0
*
- * @returns {void}
+ * @return {void}
*/
function fireOnce() {
window.clearTimeout( timeout );
diff --git a/src/js/_enqueues/admin/custom-background.js b/src/js/_enqueues/admin/custom-background.js
index a948e780a4..346ae9c627 100644
--- a/src/js/_enqueues/admin/custom-background.js
+++ b/src/js/_enqueues/admin/custom-background.js
@@ -21,7 +21,7 @@
*
* @since 3.5.0
*
- * @returns {void}
+ * @return {void}
*/
$('#background-color').wpColorPicker({
change: function( event, ui ) {
@@ -37,7 +37,7 @@
*
* @since 4.7.0
*
- * @returns {void}
+ * @return {void}
*/
$( 'select[name="background-size"]' ).change( function() {
bgImage.css( 'background-size', $( this ).val() );
@@ -48,7 +48,7 @@
*
* @since 4.7.0
*
- * @returns {void}
+ * @return {void}
*/
$( 'input[name="background-position"]' ).change( function() {
bgImage.css( 'background-position', $( this ).val() );
@@ -59,7 +59,7 @@
*
* @since 3.0.0
*
- * @returns {void}
+ * @return {void}
*/
$( 'input[name="background-repeat"]' ).change( function() {
bgImage.css( 'background-repeat', $( this ).is( ':checked' ) ? 'repeat' : 'no-repeat' );
@@ -70,7 +70,7 @@
*
* @since 4.7.0
*
- * @returns {void}
+ * @return {void}
*/
$( 'input[name="background-attachment"]' ).change( function() {
bgImage.css( 'background-attachment', $( this ).is( ':checked' ) ? 'scroll' : 'fixed' );
@@ -81,7 +81,7 @@
*
* @since 3.5.0
*
- * @returns {void}
+ * @return {void}
*/
$('#choose-from-library-link').click( function( event ) {
var $el = $(this);
@@ -121,7 +121,7 @@
*
* @since 3.5.0
*
- * @returns {void}
+ * @return {void}
*/
frame.on( 'select', function() {
// Grab the selected attachment.
diff --git a/src/js/_enqueues/admin/custom-header.js b/src/js/_enqueues/admin/custom-header.js
index e00c70cd24..b1414a439e 100644
--- a/src/js/_enqueues/admin/custom-header.js
+++ b/src/js/_enqueues/admin/custom-header.js
@@ -33,7 +33,7 @@
* @since 3.5.0
* @deprecated 4.1.0
*
- * @returns {void}
+ * @return {void}
*/
$('#choose-from-library-link').click( function( event ) {
var $el = $(this);
@@ -71,7 +71,7 @@
* @since 3.5.0
* @deprecated 4.1.0
*
- * @returns {void}
+ * @return {void}
*/
frame.on( 'select', function() {
// Grab the selected attachment.
diff --git a/src/js/_enqueues/admin/inline-edit-post.js b/src/js/_enqueues/admin/inline-edit-post.js
index b39b9b6466..85cc742844 100644
--- a/src/js/_enqueues/admin/inline-edit-post.js
+++ b/src/js/_enqueues/admin/inline-edit-post.js
@@ -36,7 +36,7 @@ window.wp = window.wp || {};
* @memberof inlineEditPost
* @since 2.7.0
*
- * @returns {void}
+ * @return {void}
*/
init : function(){
var t = this, qeRow = $('#inline-edit'), bulkRow = $('#bulk-edit');
@@ -48,7 +48,7 @@ window.wp = window.wp || {};
/**
* Binds the escape key to revert the changes and close the quick editor.
*
- * @returns {boolean} The result of revert.
+ * @return {boolean} The result of revert.
*/
qeRow.keyup(function(e){
// Revert changes if escape key is pressed.
@@ -60,7 +60,7 @@ window.wp = window.wp || {};
/**
* Binds the escape key to revert the changes and close the bulk editor.
*
- * @returns {boolean} The result of revert.
+ * @return {boolean} The result of revert.
*/
bulkRow.keyup(function(e){
// Revert changes if escape key is pressed.
@@ -72,7 +72,7 @@ window.wp = window.wp || {};
/**
* Reverts changes and close the quick editor if the cancel button is clicked.
*
- * @returns {boolean} The result of revert.
+ * @return {boolean} The result of revert.
*/
$( '.cancel', qeRow ).click( function() {
return inlineEditPost.revert();
@@ -81,7 +81,7 @@ window.wp = window.wp || {};
/**
* Saves changes in the quick editor if the save(named: update) button is clicked.
*
- * @returns {boolean} The result of save.
+ * @return {boolean} The result of save.
*/
$( '.save', qeRow ).click( function() {
return inlineEditPost.save(this);
@@ -90,7 +90,7 @@ window.wp = window.wp || {};
/**
* If enter is pressed, and the target is not the cancel button, save the post.
*
- * @returns {boolean} The result of save.
+ * @return {boolean} The result of save.
*/
$('td', qeRow).keydown(function(e){
if ( e.which === 13 && ! $( e.target ).hasClass( 'cancel' ) ) {
@@ -101,7 +101,7 @@ window.wp = window.wp || {};
/**
* Reverts changes and close the bulk editor if the cancel button is clicked.
*
- * @returns {boolean} The result of revert.
+ * @return {boolean} The result of revert.
*/
$( '.cancel', bulkRow ).click( function() {
return inlineEditPost.revert();
@@ -247,7 +247,7 @@ window.wp = window.wp || {};
*
* @param {number|Object} id The id of the clicked post or an element within a post
* table row.
- * @returns {boolean} Always returns false at the end of execution.
+ * @return {boolean} Always returns false at the end of execution.
*/
edit : function(id) {
var t = this, fields, editRow, rowData, status, pageOpt, pageLevel, nextPage, pageLoop = true, nextLevel, f, val, pw;
@@ -285,7 +285,7 @@ window.wp = window.wp || {};
/**
* Replaces the image for a Twemoji(Twitter emoji) with it's alternate text.
*
- * @returns Alternate text from the image.
+ * @return {string} Alternate text from the image.
*/
val.find( 'img' ).replaceWith( function() { return this.alt; } );
val = val.text();
@@ -385,9 +385,9 @@ window.wp = window.wp || {};
*
* @since 2.7.0
*
- * @param {int} id The id for the post that has been changed.
- * @returns {boolean} false, so the form does not submit when pressing
- * Enter on a focused field.
+ * @param {int} id The id for the post that has been changed.
+ * @return {boolean} False, so the form does not submit when pressing
+ * Enter on a focused field.
*/
save : function(id) {
var params, fields, page = $('.post_status_page').val() || '';
@@ -453,7 +453,7 @@ window.wp = window.wp || {};
* @memberof inlineEditPost
* @since 2.7.0
*
- * @returns {boolean} Always returns false.
+ * @return {boolean} Always returns false.
*/
revert : function(){
var $tableWideFat = $( '.widefat' ),
@@ -497,8 +497,8 @@ window.wp = window.wp || {};
* @memberof inlineEditPost
* @since 2.7.0
*
- * @param {Object} o DOM row object to get the id for.
- * @returns {string} The post id extracted from the table row in the object.
+ * @param {Object} o DOM row object to get the id for.
+ * @return {string} The post id extracted from the table row in the object.
*/
getId : function(o) {
var id = $(o).closest('tr').attr('id'),
diff --git a/src/js/_enqueues/admin/inline-edit-tax.js b/src/js/_enqueues/admin/inline-edit-tax.js
index bea01963bb..dcaa8d2bdc 100644
--- a/src/js/_enqueues/admin/inline-edit-tax.js
+++ b/src/js/_enqueues/admin/inline-edit-tax.js
@@ -29,7 +29,7 @@ window.inlineEditTax = {
*
* @this inlineEditTax
* @memberof inlineEditTax
- * @returns {void}
+ * @return {void}
*/
init : function() {
var t = this, row = $('#inline-edit');
@@ -96,7 +96,7 @@ window.inlineEditTax = {
*
* @param {HTMLElement} el An element within the table row or the table row
* itself that we want to quick edit.
- * @returns {void}
+ * @return {void}
*/
toggle : function(el) {
var t = this;
@@ -115,7 +115,7 @@ window.inlineEditTax = {
* @param {string|HTMLElement} id The ID of the term we want to quick edit or an
* element within the table row or the
* table row itself.
- * @returns {boolean} Always returns false.
+ * @return {boolean} Always returns false.
*/
edit : function(id) {
var editRow, rowData, val,
@@ -162,7 +162,7 @@ window.inlineEditTax = {
* @param {string|HTMLElement} id The ID of the term we want to quick edit or an
* element within the table row or the
* table row itself.
- * @returns {boolean} Always returns false.
+ * @return {boolean} Always returns false.
*/
save : function(id) {
var params, fields, tax = $('input[name="taxonomy"]').val() || '';
@@ -255,7 +255,7 @@ window.inlineEditTax = {
*
* @this inlineEditTax
* @memberof inlineEditTax
- * @returns {void}
+ * @return {void}
*/
revert : function() {
var id = $('table.widefat tr.inline-editor').attr('id');
@@ -280,7 +280,7 @@ window.inlineEditTax = {
* @memberof inlineEditTax
*
* @param {HTMLElement} o An element within the table row or the table row itself.
- * @returns {string} The ID of the term based on the element.
+ * @return {string} The ID of the term based on the element.
*/
getId : function(o) {
var id = o.tagName === 'TR' ? o.id : $(o).parents('tr').attr('id'), parts = id.split('-');
diff --git a/src/js/_enqueues/admin/link.js b/src/js/_enqueues/admin/link.js
index 5b73fe61fb..076d07c44f 100644
--- a/src/js/_enqueues/admin/link.js
+++ b/src/js/_enqueues/admin/link.js
@@ -122,8 +122,8 @@ jQuery(document).ready( function($) {
* @ignore
*
* @param {Event} event The event object.
- * @returns {boolean} Always returns false to prevent regular link
- * functionality.
+ * @return {boolean} Always returns false to prevent regular link
+ * functionality.
*/
$('#category-add-toggle').click( function() {
$(this).parents('div:first').toggleClass( 'wp-hidden-children' );
diff --git a/src/js/_enqueues/admin/media-upload.js b/src/js/_enqueues/admin/media-upload.js
index 9055cf9ca4..3f45e2ef80 100644
--- a/src/js/_enqueues/admin/media-upload.js
+++ b/src/js/_enqueues/admin/media-upload.js
@@ -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,
@@ -71,8 +71,8 @@ window.send_to_editor = function( html ) {
*
* @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'),
diff --git a/src/js/_enqueues/admin/media.js b/src/js/_enqueues/admin/media.js
index 4d9a5ec46b..5bcad08ef6 100644
--- a/src/js/_enqueues/admin/media.js
+++ b/src/js/_enqueues/admin/media.js
@@ -26,7 +26,7 @@
* @param {string} af_name The name of the affected element.
* @param {string} af_val The value of the affected post element.
*
- * @returns {boolean} Always returns false.
+ * @return {boolean} Always returns false.
*/
open: function( af_name, af_val ) {
var overlay = $( '.ui-find-overlay' );
@@ -65,7 +65,7 @@
*
* @memberOf findPosts
*
- * @returns {void}
+ * @return {void}
*/
close: function() {
$('#find-posts-response').empty();
@@ -81,7 +81,7 @@
*
* @memberOf findPosts
*
- * @returns {void}
+ * @return {void}
*/
overlay: function() {
$( '.ui-find-overlay' ).on( 'click', function () {
@@ -100,7 +100,7 @@
*
* @memberOf findPosts
*
- * @returns {void}
+ * @return {void}
*/
send: function() {
var post = {
@@ -138,7 +138,7 @@
* Initializes the file once the DOM is fully loaded and attaches events to the
* various form elements.
*
- * @returns {void}
+ * @return {void}
*/
$( document ).ready( function() {
var settings, $mediaGridWrap = $( '#wp-media-grid' );
@@ -198,7 +198,7 @@
/**
* Enables clicking on the entire table row.
*
- * @returns {void}
+ * @return {void}
*/
$( '.find-box-inside' ).on( 'click', 'tr', function() {
$( this ).find( '.found-radio input' ).prop( 'checked', true );
diff --git a/src/js/_enqueues/admin/post.js b/src/js/_enqueues/admin/post.js
index ec1a0d718a..d2e956b4e4 100644
--- a/src/js/_enqueues/admin/post.js
+++ b/src/js/_enqueues/admin/post.js
@@ -35,7 +35,7 @@ window.wp = window.wp || {};
*
* @param {int} total Total number of comments for this post.
* @param {int} num Optional. Number of comments to fetch, defaults to 20.
- * @returns {boolean} Always returns false.
+ * @return {boolean} Always returns false.
*/
get : function(total, num) {
var st = this.st, data;
@@ -599,7 +599,7 @@ jQuery(document).ready( function($) {
*
* @param {Object} s Taxonomy object which will be added.
*
- * @returns {Object}
+ * @return {Object}
*/
catAddBefore = function( s ) {
if ( !$('#new'+taxonomy).val() ) {
@@ -620,7 +620,7 @@ jQuery(document).ready( function($) {
* @param {Object} r Response.
* @param {Object} s Taxonomy data.
*
- * @returns void
+ * @return {void}
*/
catAddAfter = function( r, s ) {
var sup, drop = $('#new'+taxonomy+'_parent');
@@ -666,7 +666,7 @@ jQuery(document).ready( function($) {
*
* @param {Object} s Request object.
*
- * @returns {Object} Data modified with post_ID attached.
+ * @return {Object} Data modified with post_ID attached.
*/
addBefore: function( s ) {
s.data += '&post_id=' + $('#post_ID').val();
@@ -695,7 +695,7 @@ jQuery(document).ready( function($) {
*
* @ignore
*
- * @returns void
+ * @return {void}
*/
updateVisibility = function() {
// Show sticky for public posts.
@@ -719,7 +719,7 @@ jQuery(document).ready( function($) {
*
* @ignore
*
- * @returns {boolean} False when an invalid timestamp has been selected, otherwise True.
+ * @return {boolean} False when an invalid timestamp has been selected, otherwise True.
*/
updateText = function() {
@@ -941,7 +941,7 @@ jQuery(document).ready( function($) {
*
* @global
*
- * @returns void
+ * @return {void}
*/
function editPermalink() {
var i, slug_value,
@@ -1051,7 +1051,7 @@ jQuery(document).ready( function($) {
*
* @global
*
- * @returns void
+ * @return {void}
*/
window.wptitlehint = function( id ) {
id = id || 'title';
diff --git a/src/js/_enqueues/admin/postbox.js b/src/js/_enqueues/admin/postbox.js
index 88facb1aee..9789518b65 100644
--- a/src/js/_enqueues/admin/postbox.js
+++ b/src/js/_enqueues/admin/postbox.js
@@ -35,7 +35,7 @@
* @memberof postboxes
* @fires postboxes#postbox-toggled
*
- * @returns {void}
+ * @return {void}
*/
handle_click : function () {
var $el = $( this ),
@@ -96,7 +96,7 @@
* @param {Object} [args]
* @param {Function} args.pbshow A callback that is called when a postbox opens.
* @param {Function} args.pbhide A callback that is called when a postbox closes.
- * @returns {void}
+ * @return {void}
*/
add_postbox_toggles : function (page, args) {
var $handles = $( '.postbox .hndle, .postbox .handlediv' );
@@ -121,7 +121,7 @@
*
* @since 3.2.0
*
- * @returns {void}
+ * @return {void}
*/
$( '.postbox a.dismiss' ).on( 'click.postboxes', function( e ) {
var hide_id = $(this).parents('.postbox').attr('id') + '-hide';
@@ -140,7 +140,7 @@
*
* @fires postboxes#postbox-toggled
*
- * @returns {void}
+ * @return {void}
*/
$('.hide-postbox-tog').bind('click.postboxes', function() {
var $el = $(this),
@@ -174,7 +174,7 @@
*
* @since 2.8.0
*
- * @returns {void}
+ * @return {void}
*/
$('.columns-prefs input[type="radio"]').bind('click.postboxes', function(){
var n = parseInt($(this).val(), 10);
@@ -198,7 +198,7 @@
* @param {Function} args.pbhide A callback that is called when a postbox
* closes.
*
- * @returns {void}
+ * @return {void}
*/
init : function(page, args) {
var isMobile = $( document.body ).hasClass( 'mobile' ),
@@ -275,7 +275,7 @@
* @memberof postboxes
*
* @param {string} page The page we are currently on.
- * @returns {void}
+ * @return {void}
*/
save_state : function(page) {
var closed, hidden;
@@ -306,7 +306,7 @@
* @memberof postboxes
*
* @param {string} page The page we are currently on.
- * @returns {void}
+ * @return {void}
*/
save_order : function(page) {
var postVars, page_columns = $('.columns-prefs input:checked').val() || 0;
@@ -336,7 +336,7 @@
* @memberof postboxes
* @access private
*
- * @returns {void}
+ * @return {void}
*/
_mark_area : function() {
var visible = $('div.postbox:visible').length, side = $('#post-body #side-sortables');
@@ -370,7 +370,7 @@
* @access private
*
* @param {number} n The amount of columns to divide the post edit page in.
- * @returns {void}
+ * @return {void}
*/
_pb_edit : function(n) {
var el = $('.metabox-holder').get(0);
@@ -398,7 +398,7 @@
* @memberof postboxes
* @access private
*
- * @returns {void}
+ * @return {void}
*/
_pb_change : function() {
var check = $( 'label.columns-prefs-1 input[type="radio"]' );
diff --git a/src/js/_enqueues/admin/tags-suggest.js b/src/js/_enqueues/admin/tags-suggest.js
index 866d7d0603..50075a654b 100644
--- a/src/js/_enqueues/admin/tags-suggest.js
+++ b/src/js/_enqueues/admin/tags-suggest.js
@@ -31,7 +31,7 @@
* @since 4.7.0
*
* @param {object} options Options that are passed to UI Autocomplete. Can be used to override the default settings.
- * @returns {object} jQuery instance.
+ * @return {object} jQuery instance.
*/
$.fn.wpTagsSuggest = function( options ) {
var cache;
diff --git a/src/js/_enqueues/admin/tags.js b/src/js/_enqueues/admin/tags.js
index a36b2ebb4f..df5b3f7e5d 100644
--- a/src/js/_enqueues/admin/tags.js
+++ b/src/js/_enqueues/admin/tags.js
@@ -20,7 +20,7 @@ jQuery(document).ready(function($) {
*
* @since 2.8.0
*
- * @returns boolean Always returns false to cancel the default event handling.
+ * @return {boolean} Always returns false to cancel the default event handling.
*/
$( '#the-list' ).on( 'click', '.delete-tag', function() {
var t = $(this), tr = t.parents('tr'), r = true, data;
@@ -37,7 +37,7 @@ jQuery(document).ready(function($) {
*
* @param {string} r The response from the server.
*
- * @returns {void}
+ * @return {void}
*/
$.post(ajaxurl, data, function(r){
if ( '1' == r ) {
@@ -75,7 +75,7 @@ jQuery(document).ready(function($) {
*
* @since 4.8.0
*
- * @returns {void}
+ * @return {void}
*/
$( '#edittag' ).on( 'click', '.delete', function( e ) {
if ( 'undefined' === typeof showNotice ) {
@@ -96,7 +96,7 @@ jQuery(document).ready(function($) {
*
* @since 2.8.0
*
- * @returns boolean Always returns false to cancel the default event handling.
+ * @return {boolean} Always returns false to cancel the default event handling.
*/
$('#submit').click(function(){
var form = $(this).parents('form');
@@ -117,7 +117,7 @@ jQuery(document).ready(function($) {
*
* @param {string} r The response from the server.
*
- * @returns {void}
+ * @return {void}
*/
$.post(ajaxurl, $('#addtag').serialize(), function(r){
var res, parent, term, indent, i;
diff --git a/src/js/_enqueues/lib/color-picker.js b/src/js/_enqueues/lib/color-picker.js
index 5206e39f1d..0a99ae00cc 100644
--- a/src/js/_enqueues/lib/color-picker.js
+++ b/src/js/_enqueues/lib/color-picker.js
@@ -39,7 +39,7 @@
*
* @access private
*
- * @returns {void}
+ * @return {void}
*/
_createHueOnly: function() {
var self = this,
@@ -65,7 +65,7 @@
* @param {Event} event The event that's being called.
* @param {HTMLElement} ui The HTMLElement containing the color picker.
*
- * @returns {void}
+ * @return {void}
*/
change: function( event, ui ) {
if ( $.isFunction( self.options.change ) ) {
@@ -83,7 +83,7 @@
*
* @access private
*
- * @returns {void}
+ * @return {void}
*/
_create: function() {
// Return early if Iris support is missing.
@@ -186,7 +186,7 @@
* @param {Event} event The event that's being called.
* @param {HTMLElement} ui The HTMLElement containing the color picker.
*
- * @returns {void}
+ * @return {void}
*/
change: function( event, ui ) {
self.toggler.css( { backgroundColor: ui.color.toString() } );
@@ -212,7 +212,7 @@
*
* @access private
*
- * @returns {void}
+ * @return {void}
*/
_addListeners: function() {
var self = this;
@@ -224,7 +224,7 @@
*
* @param {Event} event The event that's being called.
*
- * @returs {void}
+ * @return {void}
*/
self.wrap.on( 'click.wpcolorpicker', function( event ) {
event.stopPropagation();
@@ -233,7 +233,7 @@
/**
* Open or close the color picker depending on the class.
*
- * @since 3.5
+ * @since 3.5.0
*/
self.toggler.click( function(){
if ( self.toggler.hasClass( 'wp-picker-open' ) ) {
@@ -251,7 +251,7 @@
*
* @param {Event} event The event that's being called.
*
- * @returns {void}
+ * @return {void}
*/
self.element.change( function( event ) {
var me = $( this ),
@@ -273,7 +273,7 @@
*
* @param {Event} event The event that's being called.
*
- * @returns {void}
+ * @return {void}
*/
self.button.click( function( event ) {
var me = $( this );
@@ -293,7 +293,7 @@
*
* @since 3.5.0
*
- * @returns {void}
+ * @return {void}
*/
open: function() {
this.element.iris( 'toggle' );
@@ -309,7 +309,7 @@
*
* @since 3.5.0
*
- * @returns {void}
+ * @return {void}
*/
close: function() {
this.element.iris( 'toggle' );
@@ -327,7 +327,7 @@
*
* @since 3.5.0
*
- * @returns {string} The element's color.
+ * @return {string} The element's color.
*/
color: function( newColor ) {
if ( newColor === undef ) {
@@ -343,7 +343,7 @@
*
* @since 3.5.0
*
- * @returns {boolean|string} The element's color.
+ * @return {boolean|string} The element's color.
*/
defaultColor: function( newDefaultColor ) {
if ( newDefaultColor === undef ) {
diff --git a/src/js/_enqueues/lib/image-edit.js b/src/js/_enqueues/lib/image-edit.js
index 100f26e7e0..756d2e4da1 100644
--- a/src/js/_enqueues/lib/image-edit.js
+++ b/src/js/_enqueues/lib/image-edit.js
@@ -76,7 +76,7 @@
* The function is sometimes called with a 0 or 1
* instead of true or false.
*
- * @returns {void}
+ * @return {void}
*/
setDisabled : function( el, s ) {
/*
@@ -100,7 +100,7 @@
*
* @param {number} postid The post id.
*
- * @returns {void}
+ * @return {void}
*/
init : function(postid) {
var t = this, old = $('#image-editor-' + t.postid),
@@ -144,7 +144,7 @@
* @param {number} postid The post id.
* @param {number} toggle Is 0 or 1, fades the icon in then 1 and out when 0.
*
- * @returns {void}
+ * @return {void}
*/
toggleEditor : function(postid, toggle) {
var wait = $('#imgedit-wait-' + postid);
@@ -164,7 +164,7 @@
*
* @param {HTMLElement} el The element to create the help window in.
*
- * @returns {boolean} Always returns false.
+ * @return {boolean} Always returns false.
*/
toggleHelp : function(el) {
var $el = $( el );
@@ -186,8 +186,8 @@
*
* @param {number} postid The post id.
*
- * @returns {string} The value from the imagedit-save-target input field when available,
- * or 'full' when not available.
+ * @return {string} The value from the imagedit-save-target input field when available,
+ * or 'full' when not available.
*/
getTarget : function(postid) {
return $('input[name="imgedit-target-' + postid + '"]:checked', '#imgedit-save-target-' + postid).val() || 'full';
@@ -206,7 +206,7 @@
* and 1 when applicable for the x-axis.
* @param {jQuery} el Element.
*
- * @returns {void}
+ * @return {void}
*/
scaleChanged : function( postid, x, el ) {
var w = $('#imgedit-scale-width-' + postid), h = $('#imgedit-scale-height-' + postid),
@@ -239,7 +239,7 @@
*
* @param {number} postid The post id.
*
- * @returns {string} The aspect ratio.
+ * @return {string} The aspect ratio.
*/
getSelRatio : function(postid) {
var x = this.hold.w, y = this.hold.h,
@@ -267,7 +267,7 @@
* @param {number} postid The post id.
* @param {number} setSize 0 or 1, when 1 the image resets to its original size.
*
- * @returns {string} JSON string containing the history or an empty string if no history exists.
+ * @return {string} JSON string containing the history or an empty string if no history exists.
*/
filterHistory : function(postid, setSize) {
// Apply undo state to history.
@@ -333,7 +333,7 @@
* @param {string} nonce The nonce to verify the request.
* @param {function} callback Function to execute when the image is loaded.
*
- * @returns {void}
+ * @return {void}
*/
refreshEditor : function(postid, nonce, callback) {
var t = this, data, img;
@@ -407,10 +407,10 @@
* @param {string} action The action to perform on the image.
* The possible actions are: "scale" and "restore".
*
- * @returns {boolean|void} Executes a post request that refreshes the page
- * when the action is performed.
- * Returns false if a invalid action is given,
- * or when the action cannot be performed.
+ * @return {boolean|void} Executes a post request that refreshes the page
+ * when the action is performed.
+ * Returns false if a invalid action is given,
+ * or when the action cannot be performed.
*/
action : function(postid, nonce, action) {
var t = this, data, w, h, fw, fh;
@@ -472,9 +472,9 @@
* @param {number} postid The post id to get the image from the database.
* @param {string} nonce The nonce to verify the request.
*
- * @returns {boolean|void} If the actions are successfully saved a response message is shown.
- * Returns false if there is no image editing history,
- * thus there are not edit-actions performed on the image.
+ * @return {boolean|void} If the actions are successfully saved a response message is shown.
+ * Returns false if there is no image editing history,
+ * thus there are not edit-actions performed on the image.
*/
save : function(postid, nonce) {
var data,
@@ -538,8 +538,8 @@
* @param {string} nonce The nonce to verify the request.
* @param {object} view The image editor view to be used for the editing.
*
- * @returns {void|promise} Either returns void if the button was already activated
- * or returns an instance of the image editor, wrapped in a promise.
+ * @return {void|promise} Either returns void if the button was already activated
+ * or returns an instance of the image editor, wrapped in a promise.
*/
open : function( postid, nonce, view ) {
this._view = view;
@@ -593,7 +593,7 @@
*
* @param {number} postid The post id.
*
- * @returns {void}
+ * @return {void}
*/
imgLoaded : function(postid) {
var img = $('#image-preview-' + postid), parent = $('#imgedit-crop-' + postid);
@@ -621,7 +621,7 @@
* @param {HTMLElement} image The preview image.
* @param {HTMLElement} parent The preview image container.
*
- * @returns {void}
+ * @return {void}
*/
initCrop : function(postid, image, parent) {
var t = this,
@@ -653,7 +653,7 @@
/**
* Binds mouse down event to the cropping container.
*
- * @returns {void}
+ * @return {void}
*/
parent.children().on( 'mousedown, touchstart', function(e){
var ratio = false, sel, defRatio;
@@ -675,7 +675,7 @@
*
* @ignore
*
- * @returns {void}
+ * @return {void}
*/
onSelectStart: function() {
imageEdit.setDisabled($('#imgedit-crop-sel-' + postid), 1);
@@ -688,7 +688,7 @@
* @param {object} img jQuery object representing the image.
* @param {object} c The selection.
*
- * @returns {object}
+ * @return {object}
*/
onSelectEnd: function(img, c) {
imageEdit.setCropSelection(postid, c);
@@ -702,7 +702,7 @@
* @param {object} img jQuery object representing the image.
* @param {object} c The selection.
*
- * @returns {void}
+ * @return {void}
*/
onSelectChange: function(img, c) {
var sizer = imageEdit.hold.sizer;
@@ -721,7 +721,7 @@
* @param {number} postid The post id.
* @param {object} c The selection.
*
- * @returns {boolean}
+ * @return {boolean}
*/
setCropSelection : function(postid, c) {
var sel;
@@ -752,7 +752,7 @@
* @param {number} postid The post id.
* @param {bool} warn Warning message.
*
- * @returns {void|bool} Returns false if there is a warning.
+ * @return {void|bool} Returns false if there is a warning.
*/
close : function(postid, warn) {
warn = warn || false;
@@ -792,7 +792,7 @@
*
* @param {number} postid The post id.
*
- * @returns {boolean} Returns true if the history is not saved.
+ * @return {boolean} Returns true if the history is not saved.
*/
notsaved : function(postid) {
var h = $('#imgedit-history-' + postid).val(),
@@ -818,7 +818,7 @@
* @param {number} postid The post id.
* @param {string} nonce The nonce.
*
- * @returns {void}
+ * @return {void}
*/
addStep : function(op, postid, nonce) {
var t = this, elem = $('#imgedit-history-' + postid),
@@ -852,7 +852,7 @@
* @param {string} nonce The nonce.
* @param {object} t The target element.
*
- * @returns {boolean}
+ * @return {boolean}
*/
rotate : function(angle, postid, nonce, t) {
if ( $(t).hasClass('disabled') ) {
@@ -873,7 +873,7 @@
* @param {string} nonce The nonce.
* @param {object} t The target element.
*
- * @returns {boolean}
+ * @return {boolean}
*/
flip : function (axis, postid, nonce, t) {
if ( $(t).hasClass('disabled') ) {
@@ -893,7 +893,7 @@
* @param {string} nonce The nonce.
* @param {object} t The target object.
*
- * @returns {void|boolean} Returns false if the crop button is disabled.
+ * @return {void|boolean} Returns false if the crop button is disabled.
*/
crop : function (postid, nonce, t) {
var sel = $('#imgedit-selection-' + postid).val(),
@@ -921,7 +921,7 @@
* @param {number} postid The post id.
* @param {string} nonce The nonce.
*
- * @returns {void|false} Returns false if the undo button is disabled.
+ * @return {void|false} Returns false if the undo button is disabled.
*/
undo : function (postid, nonce) {
var t = this, button = $('#image-undo-' + postid), elem = $('#imgedit-undone-' + postid),
@@ -954,7 +954,7 @@
* @param {number} postid The post id.
* @param {string} nonce The nonce.
*
- * @returns {void}
+ * @return {void}
*/
redo : function(postid, nonce) {
var t = this, button = $('#image-redo-' + postid), elem = $('#imgedit-undone-' + postid),
@@ -984,9 +984,9 @@
* @param {number} postid The post id.
* @param {jQuery} el The element containing the values.
*
- * @returns {void|boolean} Returns false when the x or y value is lower than 1,
- * void when the value is not numeric or when the operation
- * is successful.
+ * @return {void|boolean} Returns false when the x or y value is lower than 1,
+ * void when the value is not numeric or when the operation
+ * is successful.
*/
setNumSelection : function( postid, el ) {
var sel, elX = $('#imgedit-sel-width-' + postid), elY = $('#imgedit-sel-height-' + postid),
@@ -1040,7 +1040,7 @@
*
* @param {number} num The number.
*
- * @returns {number} The number rounded to a whole number.
+ * @return {number} The number rounded to a whole number.
*/
round : function(num) {
var s;
@@ -1071,7 +1071,7 @@
* @param {number} n The ratio to set.
* @param {jQuery} el The element containing the values.
*
- * @returns {void}
+ * @return {void}
*/
setRatioSelection : function(postid, n, el) {
var sel, r, x = this.intval( $('#imgedit-crop-width-' + postid).val() ),
@@ -1113,8 +1113,8 @@
*
* @param {jQuery} el The html element.
*
- * @returns {void|boolean} Returns false if the value is not numeric,
- * void when it is.
+ * @return {void|boolean} Returns false if the value is not numeric,
+ * void when it is.
*/
validateNumeric: function( el ) {
if ( ! this.intval( $( el ).val() ) ) {
diff --git a/src/js/_enqueues/lib/lists.js b/src/js/_enqueues/lib/lists.js
index 59170bb7b4..cb0fc393c2 100644
--- a/src/js/_enqueues/lib/lists.js
+++ b/src/js/_enqueues/lib/lists.js
@@ -113,7 +113,7 @@ wpList = {
* @param {object} settings Settings for the current list.
* @param {string} action The type of action to perform: 'add', 'delete', or 'dim'.
* @param {string} backgroundColor Background color of the list's DOM element.
- * @returns {boolean} Whether to proceed with the action or not.
+ * @return {boolean} Whether to proceed with the action or not.
*/
confirm: null,
@@ -124,7 +124,7 @@ wpList = {
*
* @callback wpList~addBefore
* @param {object} settings Settings for the Ajax request.
- * @returns {object|boolean} Settings for the Ajax request or false to abort.
+ * @return {object|boolean} Settings for the Ajax request or false to abort.
*/
addBefore: null,
@@ -149,7 +149,7 @@ wpList = {
* @callback wpList~delBefore
* @param {object} settings Settings for the Ajax request.
* @param {HTMLElement} list The list DOM element.
- * @returns {object|boolean} Settings for the Ajax request or false to abort.
+ * @return {object|boolean} Settings for the Ajax request or false to abort.
*/
delBefore: null,
@@ -173,7 +173,7 @@ wpList = {
*
* @callback wpList~dimBefore
* @param {object} settings Settings for the Ajax request.
- * @returns {object|boolean} Settings for the Ajax request or false to abort.
+ * @return {object|boolean} Settings for the Ajax request or false to abort.
*/
dimBefore: null,
@@ -203,7 +203,7 @@ wpList = {
*
* @param {jQuery} element Element that triggered the request.
* @param {object} settings Settings for the Ajax request.
- * @returns {string|number} Nonce
+ * @return {string|number} Nonce
*/
nonce: function( element, settings ) {
var url = wpAjax.unserialize( element.attr( 'href' ) ),
@@ -237,7 +237,7 @@ wpList = {
*
* @param {HTMLElement} element The DOM element.
* @param {string} type The type of data to look for: 'list', 'add', 'delete', or 'dim'.
- * @returns {Array} Extracted list item data.
+ * @return {Array} Extracted list item data.
*/
parseData: function( element, type ) {
var data = [], wpListsData;
@@ -260,7 +260,7 @@ wpList = {
* @param {HTMLElement} list The DOM element.
* @param {object} settings Settings for this list.
* @param {string} action The type of action to perform: 'add', 'delete', or 'dim'.
- * @returns {object|boolean} Settings if confirmed, false if not.
+ * @return {object|boolean} Settings if confirmed, false if not.
*/
pre: function( list, settings, action ) {
var $element, backgroundColor, confirmed;
@@ -298,7 +298,7 @@ wpList = {
*
* @param {HTMLElement} element The DOM element.
* @param {object} settings Settings for this list.
- * @returns {boolean} Whether the item was added.
+ * @return {boolean} Whether the item was added.
*/
ajaxAdd: function( element, settings ) {
var list = this,
@@ -400,7 +400,7 @@ wpList = {
*
* @param {HTMLElement} element A DOM element containing item data.
* @param {object} settings Settings for this list.
- * @returns {boolean} Whether the item was deleted.
+ * @return {boolean} Whether the item was deleted.
*/
ajaxDel: function( element, settings ) {
var list = this,
@@ -487,7 +487,7 @@ wpList = {
*
* @param {HTMLElement} element A DOM element containing item data.
* @param {object} settings Settings for this list.
- * @returns {boolean} Whether the item was dim'ed.
+ * @return {boolean} Whether the item was dim'ed.
*/
ajaxDim: function( element, settings ) {
var list = this,
@@ -611,7 +611,7 @@ wpList = {
* Returns the background color of the passed element.
*
* @param {jQuery|string} element Element to check.
- * @returns {string} Background color value in HEX. Default: '#ffffff'.
+ * @return {string} Background color value in HEX. Default: '#ffffff'.
*/
getColor: function( element ) {
return $( element ).css( 'backgroundColor' ) || '#ffffff';
@@ -622,7 +622,7 @@ wpList = {
*
* @param {HTMLElement} element A DOM element containing item data.
* @param {object} settings Settings for this list.
- * @returns {boolean} Whether the item was added.
+ * @return {boolean} Whether the item was added.
*/
add: function( element, settings ) {
var $list = $( this ),
@@ -835,7 +835,7 @@ wpList = {
* Default: null.
* @param {wpList~dimBefore} settings.dimBefore Callback that's run before an item gets dim'd. Default: null.
* @param {wpList~dimAfter} settings.dimAfter Callback that's run after an item got dim'd. Default: null.
- * @returns {$.fn} wpList API function.
+ * @return {$.fn} wpList API function.
*/
$.fn.wpList = function( settings ) {
this.each( function( index, list ) {
diff --git a/src/js/_enqueues/vendor/mediaelement/wp-mediaelement.js b/src/js/_enqueues/vendor/mediaelement/wp-mediaelement.js
index dbeed1f5d5..fa8d3081af 100644
--- a/src/js/_enqueues/vendor/mediaelement/wp-mediaelement.js
+++ b/src/js/_enqueues/vendor/mediaelement/wp-mediaelement.js
@@ -16,7 +16,7 @@
*
* @since 4.4.0
*
- * @returns {void}
+ * @return {void}
*/
function initialize() {
if ( typeof _wpmejsSettings !== 'undefined' ) {
@@ -54,7 +54,7 @@
*
* @param {object} media The wrapper that mimics all the native events/properties/methods for all renderers.
* @param {object} node The original HTML video, audio, or iframe tag where the media was loaded.
- * @returns {string}
+ * @return {string}
*/
settings.customError = function ( media, node ) {
// Make sure we only fall back to a download link for flash files.
diff --git a/src/js/_enqueues/vendor/mediaelement/wp-playlist.js b/src/js/_enqueues/vendor/mediaelement/wp-playlist.js
index 81c7da6c42..0cde98eee3 100644
--- a/src/js/_enqueues/vendor/mediaelement/wp-playlist.js
+++ b/src/js/_enqueues/vendor/mediaelement/wp-playlist.js
@@ -177,7 +177,7 @@
* Only initializes new playlists not previously-initialized.
*
* @since 4.9.3
- * @returns {void}
+ * @return {void}
*/
function initialize() {
$( '.wp-playlist:not(:has(.mejs-container))' ).each( function() {
diff --git a/src/js/_enqueues/wp/a11y.js b/src/js/_enqueues/wp/a11y.js
index 648b629d37..3869dd3c3d 100644
--- a/src/js/_enqueues/wp/a11y.js
+++ b/src/js/_enqueues/wp/a11y.js
@@ -21,7 +21,7 @@ window.wp = window.wp || {};
* @param {String} message The message to be announced by Assistive Technologies.
* @param {String} [ariaLive] The politeness level for aria-live. Possible values:
* polite or assertive. Default polite.
- * @returns {void}
+ * @return {void}
*/
function speak( message, ariaLive ) {
// Clear previous messages to allow repeated strings being read out.
diff --git a/src/js/_enqueues/wp/api.js b/src/js/_enqueues/wp/api.js
index e5aeac6e4c..cbd3d4bc6b 100644
--- a/src/js/_enqueues/wp/api.js
+++ b/src/js/_enqueues/wp/api.js
@@ -835,7 +835,7 @@
* @param {string} method.
* @param {Backbone.Model} model.
* @param {{beforeSend}, *} options.
- * @returns {*}.
+ * @return {*}.
*/
sync: function( method, model, options ) {
var beforeSend;
@@ -988,7 +988,7 @@
* @param {string} method.
* @param {Backbone.Model} model.
* @param {{success}, *} options.
- * @returns {*}.
+ * @return {*}.
*/
sync: function( method, model, options ) {
var beforeSend, success,
@@ -1063,7 +1063,7 @@
* Fetches the next page of objects if a new page exists.
*
* @param {data: {page}} options.
- * @returns {*}.
+ * @return {*}.
*/
more: function( options ) {
options = options || {};
@@ -1089,7 +1089,7 @@
/**
* Returns true if there are more pages of objects available.
*
- * @returns null|boolean.
+ * @return {null|boolean}
*/
hasMore: function() {
if ( null === this.state.totalPages ||
diff --git a/src/js/_enqueues/wp/autosave.js b/src/js/_enqueues/wp/autosave.js
index c28e48a780..a96ea97bf9 100644
--- a/src/js/_enqueues/wp/autosave.js
+++ b/src/js/_enqueues/wp/autosave.js
@@ -23,7 +23,7 @@ window.autosave = function() {
*
* @since 3.9.0
*
- * @returns {Object}
+ * @return {Object}
* {{
* getPostData: getPostData,
* getCompareString: getCompareString,
@@ -46,7 +46,7 @@ window.autosave = function() {
*
* @param {string} type The type of autosave either local or remote.
*
- * @returns {Object} Object containing the post data.
+ * @return {Object} Object containing the post data.
*/
function getPostData( type ) {
var post_name, parent_id, data,
@@ -110,7 +110,7 @@ window.autosave = function() {
*
* @param {Object} postData The object containing the post data.
*
- * @returns {string} A concatenated string with title, content and excerpt.
+ * @return {string} A concatenated string with title, content and excerpt.
*/
function getCompareString( postData ) {
if ( typeof postData === 'object' ) {
@@ -125,7 +125,7 @@ window.autosave = function() {
*
* @since 3.9.0
*
- * @returns {void}
+ * @return {void}
*/
function disableButtons() {
$document.trigger('autosave-disable-buttons');
@@ -139,7 +139,7 @@ window.autosave = function() {
*
* @since 3.9.0
*
- * @returns {void}
+ * @return {void}
*/
function enableButtons() {
$document.trigger( 'autosave-enable-buttons' );
@@ -150,8 +150,8 @@ window.autosave = function() {
*
* @since 4.6.0
*
- * @returns {boolean|*} Returns either false if the editor is undefined,
- * or the instance of the content editor.
+ * @return {boolean|*} Returns either false if the editor is undefined,
+ * or the instance of the content editor.
*/
function getEditor() {
return typeof tinymce !== 'undefined' && tinymce.get('content');
@@ -162,7 +162,7 @@ window.autosave = function() {
*
* @since 3.9.0
*
- * @returns {
+ * @return {
* {
* hasStorage: *,
* getSavedPostData: getSavedPostData,
@@ -183,7 +183,7 @@ window.autosave = function() {
*
* @since 3.9.0
*
- * @returns {boolean} True if the sessionStorage is supported and enabled.
+ * @return {boolean} True if the sessionStorage is supported and enabled.
*/
function checkStorage() {
var test = Math.random().toString(),
@@ -204,8 +204,8 @@ window.autosave = function() {
*
* @since 3.9.0
*
- * @returns {boolean|Object} False if no sessionStorage in the browser or an Object
- * containing all postData for this blog.
+ * @return {boolean|Object} False if no sessionStorage in the browser or an Object
+ * containing all postData for this blog.
*/
function getStorage() {
var stored_obj = false;
@@ -229,7 +229,7 @@ window.autosave = function() {
*
* @since 3.9.0
*
- * @returns {boolean} True if the data was saved successfully, false if it wasn't saved.
+ * @return {boolean} True if the data was saved successfully, false if it wasn't saved.
*/
function setStorage( stored_obj ) {
var key;
@@ -248,7 +248,7 @@ window.autosave = function() {
*
* @since 3.9.0
*
- * @returns {boolean|Object} False if no storage or no data or the postData as an Object.
+ * @return {boolean|Object} False if no storage or no data or the postData as an Object.
*/
function getSavedPostData() {
var stored = getStorage();
@@ -269,7 +269,7 @@ window.autosave = function() {
*
* @param {Object|boolean|null} stored_data The post data to store or null/false/empty to delete the key.
*
- * @returns {boolean} True if data is stored, false if data was removed.
+ * @return {boolean} True if data is stored, false if data was removed.
*/
function setData( stored_data ) {
var stored = getStorage();
@@ -294,7 +294,7 @@ window.autosave = function() {
*
* @since 3.9.0
*
- * @returns {void}
+ * @return {void}
*/
function suspend() {
isSuspended = true;
@@ -305,7 +305,7 @@ window.autosave = function() {
*
* @since 3.9.0
*
- * @returns {void}
+ * @return {void}
*/
function resume() {
isSuspended = false;
@@ -321,7 +321,7 @@ window.autosave = function() {
*
* @param {Object} data The post data for saving, minimum 'post_title' and 'content'.
*
- * @returns {boolean} Returns true when data has been saved, otherwise it returns false.
+ * @return {boolean} Returns true when data has been saved, otherwise it returns false.
*/
function save( data ) {
var postData, compareString,
@@ -370,7 +370,7 @@ window.autosave = function() {
*
* @since 3.9.0
*
- * @returns {void}
+ * @return {void}
*/
function run() {
post_id = $('#post_ID').val() || 0;
@@ -427,7 +427,7 @@ window.autosave = function() {
*
* @param {string} str1 The first string.
* @param {string} str2 The second string.
- * @returns {boolean} True if the strings are the same.
+ * @return {boolean} True if the strings are the same.
*/
function compare( str1, str2 ) {
function removeSpaces( string ) {
@@ -445,7 +445,7 @@ window.autosave = function() {
*
* @since 3.9.0
*
- * @returns {void}
+ * @return {void}
*/
function checkPost() {
var content, post_title, excerpt, $notice,
@@ -513,7 +513,7 @@ window.autosave = function() {
*
* @param {Object} postData The object containing all post data.
*
- * @returns {boolean} True if the post is restored.
+ * @return {boolean} True if the post is restored.
*/
function restorePost( postData ) {
var editor;
@@ -579,7 +579,7 @@ window.autosave = function() {
*
* @since 3.9.0
*
- * @returns {Object} {
+ * @return {Object} {
* {
* tempBlockSave: tempBlockSave,
* triggerSave: triggerSave,
@@ -600,7 +600,7 @@ window.autosave = function() {
*
* @since 3.9.0
*
- * @returns {void}
+ * @return {void}
*/
function tempBlockSave() {
_blockSave = true;
@@ -616,7 +616,7 @@ window.autosave = function() {
*
* @since 3.9.0
*
- * @returns {void}
+ * @return {void}
*/
function suspend() {
isSuspended = true;
@@ -627,7 +627,7 @@ window.autosave = function() {
*
* @since 3.9.0
*
- * @returns {void}
+ * @return {void}
*/
function resume() {
isSuspended = false;
@@ -640,7 +640,7 @@ window.autosave = function() {
*
* @param {Object} data The post data.
*
- * @returns {void}
+ * @return {void}
*/
function response( data ) {
_schedule();
@@ -664,7 +664,7 @@ window.autosave = function() {
*
* @since 3.9.0
*
- * @returns {void}
+ * @return {void}
*/
function triggerSave() {
nextRun = 0;
@@ -693,7 +693,7 @@ window.autosave = function() {
*
* @since 3.9.0
*
- * @returns {Object} Returns the post data.
+ * @return {Object} Returns the post data.
*/
function save() {
var postData, compareString;
@@ -739,7 +739,7 @@ window.autosave = function() {
*
* @since 3.9.0
*
- * @returns {void}
+ * @return {void}
*/
function _schedule() {
nextRun = ( new Date() ).getTime() + ( autosaveL10n.autosaveInterval * 1000 ) || 60000;
@@ -750,7 +750,7 @@ window.autosave = function() {
*
* @since 3.9.0
*
- * @returns {void}
+ * @return {void}
*/
$document.on( 'heartbeat-send.autosave', function( event, data ) {
var autosaveData = save();
@@ -765,7 +765,7 @@ window.autosave = function() {
*
* @since 3.9.0
*
- * @returns {void}
+ * @return {void}
*/
}).on( 'heartbeat-tick.autosave', function( event, data ) {
if ( data.wp_autosave ) {
@@ -776,7 +776,7 @@ window.autosave = function() {
*
* @since 3.9.0
*
- * @returns {void}
+ * @return {void}
*/
}).on( 'heartbeat-connection-lost.autosave', function( event, error, status ) {
@@ -797,7 +797,7 @@ window.autosave = function() {
*
* @since 3.9.0
*
- * @returns {void}
+ * @return {void}
*/
}).on( 'heartbeat-connection-restored.autosave', function() {
$('#lost-connection-notice').hide();
@@ -825,7 +825,7 @@ window.autosave = function() {
*
* @since 3.9.0
*
- * @returns {void}
+ * @return {void}
*/
$document.on( 'tinymce-editor-init.autosave', function( event, editor ) {
if ( editor.id === 'content' ) {
diff --git a/src/js/_enqueues/wp/code-editor.js b/src/js/_enqueues/wp/code-editor.js
index 25a21a5aeb..15906ff55b 100644
--- a/src/js/_enqueues/wp/code-editor.js
+++ b/src/js/_enqueues/wp/code-editor.js
@@ -44,7 +44,7 @@ if ( 'undefined' === typeof window.wp.codeEditor ) {
* @param {Function} settings.onChangeLintingErrors - Callback for when there are changes to linting errors.
* @param {Function} settings.onUpdateErrorNotice - Callback to update error notice.
*
- * @returns {void}
+ * @return {void}
*/
function configureLinting( editor, settings ) { // eslint-disable-line complexity
var currentErrorAnnotations = [], previouslyShownErrorAnnotations = [];
@@ -52,7 +52,7 @@ if ( 'undefined' === typeof window.wp.codeEditor ) {
/**
* Call the onUpdateErrorNotice if there are new errors to show.
*
- * @returns {void}
+ * @return {void}
*/
function updateErrorNotice() {
if ( settings.onUpdateErrorNotice && ! _.isEqual( currentErrorAnnotations, previouslyShownErrorAnnotations ) ) {
@@ -64,7 +64,7 @@ if ( 'undefined' === typeof window.wp.codeEditor ) {
/**
* Get lint options.
*
- * @returns {object} Lint options.
+ * @return {object} Lint options.
*/
function getLintOptions() { // eslint-disable-line complexity
var options = editor.getOption( 'lint' );
@@ -214,7 +214,7 @@ if ( 'undefined' === typeof window.wp.codeEditor ) {
* @param {Function} settings.onTabNext - Callback to handle tabbing to the next tabbable element.
* @param {Function} settings.onTabPrevious - Callback to handle tabbing to the previous tabbable element.
*
- * @returns {void}
+ * @return {void}
*/
function configureTabbing( codemirror, settings ) {
var $textarea = $( codemirror.getTextArea() );
@@ -273,7 +273,7 @@ if ( 'undefined' === typeof window.wp.codeEditor ) {
* @param {object} [settings.htmlhint] - Rules for HTMLHint.
* @param {object} [settings.jshint] - Rules for JSHint.
*
- * @returns {CodeEditorInstance} Instance.
+ * @return {CodeEditorInstance} Instance.
*/
wp.codeEditor.initialize = function initialize( textarea, settings ) {
var $textarea, codemirror, instanceSettings, instance;
diff --git a/src/js/_enqueues/wp/customize/base.js b/src/js/_enqueues/wp/customize/base.js
index 39aec0ad0c..353ecc62bb 100644
--- a/src/js/_enqueues/wp/customize/base.js
+++ b/src/js/_enqueues/wp/customize/base.js
@@ -482,7 +482,7 @@ window.wp = window.wp || {};
* For example:
* when( id1, id2, id3, function( value1, value2, value3 ) {} );
*
- * @returns $.Deferred.promise();
+ * @return $.Deferred.promise();
*/
when: function() {
var self = this,
@@ -876,7 +876,7 @@ window.wp = window.wp || {};
*
* @since 4.9.0
*
- * @returns {jQuery} Notification container element.
+ * @return {jQuery} Notification container element.
*/
render: function() {
var notification = this, container, data;
@@ -942,7 +942,7 @@ window.wp = window.wp || {};
* @alias wp.customize.utils.parseQueryString
*
* @param {string} queryString Query string.
- * @returns {object} Parsed query string.
+ * @return {object} Parsed query string.
*/
api.utils.parseQueryString = function parseQueryString( queryString ) {
var queryParams = {};
diff --git a/src/js/_enqueues/wp/customize/controls.js b/src/js/_enqueues/wp/customize/controls.js
index d9b7978394..6c92362410 100644
--- a/src/js/_enqueues/wp/customize/controls.js
+++ b/src/js/_enqueues/wp/customize/controls.js
@@ -55,7 +55,7 @@
* @since 4.9.0
*
* @param {jQuery.Event} event - Event.
- * @returns {void}
+ * @return {void}
*/
handleEscape: function( event ) {
var notification = this;
@@ -98,7 +98,7 @@
* @param {jQuery} [options.container] - Container element for notifications. This can be injected later.
* @param {boolean} [options.alt] - Whether alternative style should be used when rendering notifications.
*
- * @returns {void}
+ * @return {void}
*/
initialize: function( options ) {
var collection = this;
@@ -137,7 +137,7 @@
*
* @param {string|wp.customize.Notification} notification - Notification object to add. Alternatively code may be supplied, and in that case the second notificationObject argument must be supplied.
* @param {wp.customize.Notification} [notificationObject] - Notification to add when first argument is the code string.
- * @returns {wp.customize.Notification} Added notification (or existing instance if it was already added).
+ * @return {wp.customize.Notification} Added notification (or existing instance if it was already added).
*/
add: function( notification, notificationObject ) {
var collection = this, code, instance;
@@ -211,7 +211,7 @@
* Render notifications area.
*
* @since 4.9.0
- * @returns {void}
+ * @return {void}
*/
render: function() {
var collection = this,
@@ -304,7 +304,7 @@
* @since 4.9.0
*
* @param {jQuery.Event} event - Event.
- * @returns {void}
+ * @return {void}
*/
constrainFocus: function constrainFocus( event ) {
var collection = this, focusableElements;
@@ -398,7 +398,7 @@
* @since 3.4.0
* @access public
*
- * @returns {void}
+ * @return {void}
*/
preview: function() {
var setting = this, transport;
@@ -419,7 +419,7 @@
* Find controls associated with this setting.
*
* @since 4.6.0
- * @returns {wp.customize.Control[]} Controls associated with setting.
+ * @return {wp.customize.Control[]} Controls associated with setting.
*/
findControls: function() {
var setting = this, controls = [];
@@ -497,7 +497,7 @@
*
* @param {object} [options] Options.
* @param {boolean} [options.unsaved=false] Whether only values not saved yet into a changeset will be returned (differential changes).
- * @returns {object} Dirty setting values.
+ * @return {object} Dirty setting values.
*/
api.dirtyValues = function dirtyValues( options ) {
var values = {};
@@ -535,7 +535,7 @@
* @param {boolean} [args.force=false] - Send request to update even when there are no changes to submit. This can be used to request the latest status of the changeset on the server.
* @param {string} [args.title] - Title to update in the changeset. Optional.
* @param {string} [args.date] - Date to update in the changeset. Optional.
- * @returns {jQuery.Promise} Promise resolving with the response data.
+ * @return {jQuery.Promise} Promise resolving with the response data.
*/
api.requestChangesetUpdate = function requestChangesetUpdate( changes, args ) {
var deferred, request, submittedChanges = {}, data, submittedArgs;
@@ -735,7 +735,7 @@
*
* @param {(wp.customize.Panel|wp.customize.Section|wp.customize.Control)} a
* @param {(wp.customize.Panel|wp.customize.Section|wp.customize.Control)} b
- * @returns {Number}
+ * @return {Number}
*/
api.utils.prioritySort = function ( a, b ) {
if ( a.priority() === b.priority() && typeof a.params.instanceNumber === 'number' && typeof b.params.instanceNumber === 'number' ) {
@@ -753,7 +753,7 @@
* @since 4.1.0
*
* @param {jQuery.Event} event
- * @returns {boolean}
+ * @return {boolean}
*/
api.utils.isKeydownButNotEnterEvent = function ( event ) {
return ( 'keydown' === event.type && 13 !== event.which );
@@ -768,7 +768,7 @@
*
* @param {Array|jQuery} listA
* @param {Array|jQuery} listB
- * @returns {boolean}
+ * @return {boolean}
*/
api.utils.areElementListsEqual = function ( listA, listB ) {
var equal = (
@@ -802,7 +802,7 @@
* is canceled. This option exists to accommodate compound buttons
* containing auxiliary UI, such as the Publish button augmented with a
* Settings button.
- * @returns {Function} An idempotent function that cancels the reminder.
+ * @return {Function} An idempotent function that cancels the reminder.
*/
api.utils.highlightButton = function highlightButton( button, options ) {
var animationClass = 'button-see-me',
@@ -849,7 +849,7 @@
*
* @since 4.9.0
*
- * @returns {int} Current timestamp.
+ * @return {int} Current timestamp.
*/
api.utils.getCurrentTimestamp = function getCurrentTimestamp() {
var currentDate, currentClientTimestamp, timestampDifferential;
@@ -893,7 +893,7 @@
*
* @ignore
*
- * @returns {string|null} Normalized `transitionend` event name or null if CSS transitions are not supported.
+ * @return {string|null} Normalized `transitionend` event name or null if CSS transitions are not supported.
*/
normalizedTransitionendEventName = (function () {
var el, transitions, prop;
@@ -1014,7 +1014,7 @@
* Get the element that will contain the notifications.
*
* @since 4.9.0
- * @returns {jQuery} Notification container element.
+ * @return {jQuery} Notification container element.
*/
getNotificationsContainerElement: function() {
var container = this;
@@ -1025,7 +1025,7 @@
* Set up notifications.
*
* @since 4.9.0
- * @returns {void}
+ * @return {void}
*/
setupNotifications: function() {
var container = this, renderNotifications;
@@ -1056,7 +1056,7 @@
*
* @param {String} parentType
* @param {String} childType
- * @returns {Array}
+ * @return {Array}
*/
_children: function ( parentType, childType ) {
var parent = this,
@@ -1154,7 +1154,7 @@
*
* @param {Boolean} active
* @param {Object} [params]
- * @returns {Boolean} False if state already applied.
+ * @return {Boolean} False if state already applied.
*/
_toggleActive: function ( active, params ) {
var self = this;
@@ -1173,7 +1173,7 @@
/**
* @param {Object} [params]
- * @returns {Boolean} False if already active.
+ * @return {Boolean} False if already active.
*/
activate: function ( params ) {
return this._toggleActive( true, params );
@@ -1181,7 +1181,7 @@
/**
* @param {Object} [params]
- * @returns {Boolean} False if already inactive.
+ * @return {Boolean} False if already inactive.
*/
deactivate: function ( params ) {
return this._toggleActive( false, params );
@@ -1201,7 +1201,7 @@
* @param {Boolean} expanded - The new state to apply.
* @param {Object} [params] - Object containing options for expand/collapse.
* @param {Function} [params.completeCallback] - Function to call when expansion/collapse is complete.
- * @returns {Boolean} False if state already applied or active state is false.
+ * @return {Boolean} False if state already applied or active state is false.
*/
_toggleExpanded: function( expanded, params ) {
var instance = this, previousCompleteCallback;
@@ -1238,7 +1238,7 @@
/**
* @param {Object} [params]
- * @returns {Boolean} False if already expanded or if inactive.
+ * @return {Boolean} False if already expanded or if inactive.
*/
expand: function ( params ) {
return this._toggleExpanded( true, params );
@@ -1246,7 +1246,7 @@
/**
* @param {Object} [params]
- * @returns {Boolean} False if already collapsed.
+ * @return {Boolean} False if already collapsed.
*/
collapse: function ( params ) {
return this._toggleExpanded( false, params );
@@ -1259,7 +1259,7 @@
* @private
*
* @param {function} completeCallback Function to be called after transition is completed.
- * @returns {void}
+ * @return {void}
*/
_animateChangeExpanded: function( completeCallback ) {
// Return if CSS transitions are not supported.
@@ -1362,7 +1362,7 @@
* @since 4.7.0
* @access public
*
- * @returns {jQuery} Detached content element.
+ * @return {jQuery} Detached content element.
*/
getContent: function() {
var construct = this,
@@ -1543,7 +1543,7 @@
*
* @since 4.1.0
*
- * @returns {Boolean}
+ * @return {Boolean}
*/
isContextuallyActive: function () {
var section = this,
@@ -1562,7 +1562,7 @@
*
* @since 4.1.0
*
- * @returns {Array}
+ * @return {Array}
*/
controls: function () {
return this._children( 'section', 'control' );
@@ -1696,7 +1696,7 @@
*
* @param {string} id - ID.
* @param {object} options - Options.
- * @returns {void}
+ * @return {void}
*/
initialize: function( id, options ) {
var section = this;
@@ -1745,7 +1745,7 @@
*
* @since 4.2.0
*
- * @returns {void}
+ * @return {void}
*/
ready: function() {
var section = this;
@@ -1797,7 +1797,7 @@
*
* @since 4.2.0
*
- * @returns {Boolean}
+ * @return {Boolean}
*/
isContextuallyActive: function () {
return this.active();
@@ -1808,7 +1808,7 @@
*
* @since 4.2.0
*
- * @returns {void}
+ * @return {void}
*/
attachEvents: function () {
var section = this, debounced;
@@ -1953,7 +1953,7 @@
* @param {Object} args
* @param {Boolean} args.unchanged
* @param {Function} args.completeCallback
- * @returns {void}
+ * @return {void}
*/
onChangeExpanded: function ( expanded, args ) {
@@ -2043,7 +2043,7 @@
*
* @since 4.9.0
*
- * @returns {jQuery}
+ * @return {jQuery}
*/
getContent: function() {
return this.container.find( '.control-section-content' );
@@ -2054,7 +2054,7 @@
*
* @since 4.9.0
*
- * @returns {void}
+ * @return {void}
*/
loadThemes: function() {
var section = this, params, page, request;
@@ -2165,7 +2165,7 @@
* @since 4.9.0
* @param {Array} themes - Array of theme data to create controls with.
* @param {integer} page - Page of results being loaded.
- * @returns {void}
+ * @return {void}
*/
loadControls: function( themes, page ) {
var newThemeControls = [],
@@ -2194,7 +2194,7 @@
* Determines whether more themes should be loaded, and loads them.
*
* @since 4.9.0
- * @returns {void}
+ * @return {void}
*/
loadMore: function() {
var section = this, container, bottom, threshold;
@@ -2216,7 +2216,7 @@
* @since 4.9.0
*
* @param {string} term - The raw search input value.
- * @returns {void}
+ * @return {void}
*/
filterSearch: function( term ) {
var count = 0,
@@ -2260,7 +2260,7 @@
* @since 4.9.0
*
* @param {wp.customize.ThemesSection} section - The current theme section, passed through the debouncer.
- * @returns {void}
+ * @return {void}
*/
checkTerm: function( section ) {
var newTerm;
@@ -2277,7 +2277,7 @@
*
* @since 4.9.0
*
- * @returns {void}
+ * @return {void}
*/
filtersChecked: function() {
var section = this,
@@ -2320,7 +2320,7 @@
*
* @param {string} newTerm - New term.
* @param {Array} newTags - New tags.
- * @returns {void}
+ * @return {void}
*/
initializeNewQuery: function( newTerm, newTags ) {
var section = this;
@@ -2353,7 +2353,7 @@
*
* @since 4.2.0
*
- * @returns {void}
+ * @return {void}
*/
renderScreenshots: function() {
var section = this;
@@ -2407,7 +2407,7 @@
*
* @since 4.9.0
*
- * @returns {int} Visible count.
+ * @return {int} Visible count.
*/
getVisibleCount: function() {
return this.contentContainer.find( 'li.customize-control:visible' ).length;
@@ -2418,7 +2418,7 @@
*
* @since 4.9.0
*
- * @returns {void}
+ * @return {void}
*/
updateCount: function( count ) {
var section = this, countEl, displayed;
@@ -2448,7 +2448,7 @@
*
* @since 4.2.0
*
- * @returns {void}
+ * @return {void}
*/
nextTheme: function () {
var section = this;
@@ -2464,7 +2464,7 @@
*
* @since 4.2.0
*
- * @returns {wp.customize.ThemeControl|boolean} Next theme.
+ * @return {wp.customize.ThemeControl|boolean} Next theme.
*/
getNextTheme: function () {
var section = this, control, nextControl, sectionControls, i;
@@ -2486,7 +2486,7 @@
* Advance the modal to the previous theme.
*
* @since 4.2.0
- * @returns {void}
+ * @return {void}
*/
previousTheme: function () {
var section = this;
@@ -2501,7 +2501,7 @@
* Get the previous theme model.
*
* @since 4.2.0
- * @returns {wp.customize.ThemeControl|boolean} Previous theme.
+ * @return {wp.customize.ThemeControl|boolean} Previous theme.
*/
getPreviousTheme: function () {
var section = this, control, nextControl, sectionControls, i;
@@ -2524,7 +2524,7 @@
*
* @since 4.2.0
*
- * @returns {void}
+ * @return {void}
*/
updateLimits: function () {
if ( ! this.getNextTheme() ) {
@@ -2543,7 +2543,7 @@
*
* @deprecated
* @param {string} themeId Theme ID.
- * @returns {jQuery.promise} Promise.
+ * @return {jQuery.promise} Promise.
*/
loadThemePreview: function( themeId ) {
return api.ThemesPanel.prototype.loadThemePreview.call( this, themeId );
@@ -2556,7 +2556,7 @@
*
* @param {object} theme - Theme.
* @param {Function} [callback] - Callback once the details have been shown.
- * @returns {void}
+ * @return {void}
*/
showDetails: function ( theme, callback ) {
var section = this, panel = api.panel( 'themes' );
@@ -2591,7 +2591,7 @@
*
* @since 4.2.0
*
- * @returns {void}
+ * @return {void}
*/
closeDetails: function () {
var section = this;
@@ -2606,7 +2606,7 @@
* @since 4.2.0
*
* @param {jQuery} el - Element to contain focus.
- * @returns {void}
+ * @return {void}
*/
containFocus: function( el ) {
var tabbables;
@@ -2647,7 +2647,7 @@
*
* @since 4.9.0
*
- * @returns {void}
+ * @return {void}
*/
initialize: function() {
var section = this;
@@ -2870,7 +2870,7 @@
*
* @since 4.1.0
*
- * @returns {Array}
+ * @return {Array}
*/
sections: function () {
return this._children( 'panel', 'section' );
@@ -2881,7 +2881,7 @@
*
* @since 4.1.0
*
- * @returns {boolean} Whether contextually active.
+ * @return {boolean} Whether contextually active.
*/
isContextuallyActive: function () {
var panel = this,
@@ -2904,7 +2904,7 @@
* @param {Object} args
* @param {Boolean} args.unchanged
* @param {Function} args.completeCallback
- * @returns {void}
+ * @return {void}
*/
onChangeExpanded: function ( expanded, args ) {
@@ -3032,7 +3032,7 @@
*
* @param {string} id - The ID for the panel.
* @param {object} options - Options.
- * @returns {void}
+ * @return {void}
*/
initialize: function( id, options ) {
var panel = this;
@@ -3046,7 +3046,7 @@
* @since 4.9.0
*
* @param {string} [slug] - Theme slug.
- * @returns {boolean} Whether the theme can be switched to.
+ * @return {boolean} Whether the theme can be switched to.
*/
canSwitchTheme: function canSwitchTheme( slug ) {
if ( slug && slug === api.settings.theme.stylesheet ) {
@@ -3059,7 +3059,7 @@
* Attach events.
*
* @since 4.9.0
- * @returns {void}
+ * @return {void}
*/
attachEvents: function() {
var panel = this;
@@ -3132,7 +3132,7 @@
* @param {Object} args - Args.
* @param {Boolean} args.unchanged - Whether or not the state changed.
* @param {Function} args.completeCallback - Callback to execute when the animation completes.
- * @returns {void}
+ * @return {void}
*/
onChangeExpanded: function( expanded, args ) {
var panel = this, overlay, sections, hasExpandedSection = false;
@@ -3184,7 +3184,7 @@
* @since 4.9.0
*
* @param {jQuery.Event} event - Event.
- * @returns {jQuery.promise} Promise.
+ * @return {jQuery.promise} Promise.
*/
installTheme: function( event ) {
var panel = this, preview, onInstallSuccess, slug = $( event.target ).data( 'slug' ), deferred = $.Deferred(), request;
@@ -3289,7 +3289,7 @@
* @since 4.9.0
*
* @param {string} themeId Theme ID.
- * @returns {jQuery.promise} Promise.
+ * @return {jQuery.promise} Promise.
*/
loadThemePreview: function( themeId ) {
var panel = this, deferred = $.Deferred(), onceProcessingComplete, urlParser, queryParams;
@@ -3365,7 +3365,7 @@
* @since 4.9.0
*
* @param {jQuery.Event} event - Event.
- * @returns {void}
+ * @return {void}
*/
updateTheme: function( event ) {
wp.updates.maybeRequestFilesystemCredentials( event );
@@ -3395,7 +3395,7 @@
* @since 4.9.0
*
* @param {jQuery.Event} event - Event.
- * @returns {void}
+ * @return {void}
*/
deleteTheme: function( event ) {
var theme, section;
@@ -3492,7 +3492,7 @@
* @param {string} options.description - Description.
* @param {number} [options.instanceNumber] - Order in which this instance was created in relation to other instances.
* @param {object} [options.params] - Deprecated wrapper for the above properties.
- * @returns {void}
+ * @return {void}
*/
initialize: function( id, options ) {
var control = this, deferredSettingIds = [], settings, gatherSettings;
@@ -3633,7 +3633,7 @@
* @since 4.7.0
* @access public
*
- * @returns {void}
+ * @return {void}
*/
linkElements: function () {
var control = this, nodes, radios, element;
@@ -3708,7 +3708,7 @@
/**
* Triggered when the control's markup has been injected into the DOM.
*
- * @returns {void}
+ * @return {void}
*/
ready: function() {
var control = this, newItem;
@@ -3739,7 +3739,7 @@
* including special handling for nav menu items and widgets.
*
* @since 4.6.0
- * @returns {jQuery} Setting validation message element.
+ * @return {jQuery} Setting validation message element.
*/
getNotificationsContainerElement: function() {
var control = this, controlTitle, notificationsContainer;
@@ -3770,7 +3770,7 @@
* Set up notifications.
*
* @since 4.9.0
- * @returns {void}
+ * @return {void}
*/
setupNotifications: function() {
var control = this, renderNotificationsIfVisible, onSectionAssigned;
@@ -4047,7 +4047,7 @@
*
* @since 4.7.0
* @access private
- * @returns {void}
+ * @return {void}
*/
addNewPage: function () {
var control = this, promise, toggle, container, input, title, select;
@@ -4570,7 +4570,7 @@
*
* @param {wp.media.model.Attachment} attachment
* @param {wp.media.controller.Cropper} controller
- * @returns {Object} Options
+ * @return {Object} Options
*/
calculateImageSelectOptions: function( attachment, controller ) {
var control = controller.get( 'control' ),
@@ -4853,7 +4853,7 @@
*
* @since 4.2.0
*
- * @returns {Object} Options
+ * @return {Object} Options
*/
getInitialHeaderImage: function() {
if ( ! api.get().header_image || ! api.get().header_image_data || _.contains( [ 'remove-header', 'random-default-image', 'random-uploaded-image' ], api.get().header_image ) ) {
@@ -4886,7 +4886,7 @@
*
* @param {wp.media.model.Attachment} attachment
* @param {wp.media.controller.Cropper} controller
- * @returns {Object} Options
+ * @return {Object} Options
*/
calculateImageSelectOptions: function(attachment, controller) {
var xInit = parseInt(_wpCustomizeHeader.data.width, 10),
@@ -5155,7 +5155,7 @@
*
* @since 4.2.0
* @param {Array} terms - An array of terms to search for.
- * @returns {boolean} Whether a theme control was activated or not.
+ * @return {boolean} Whether a theme control was activated or not.
*/
filter: function( terms ) {
var control = this,
@@ -5207,7 +5207,7 @@
*
* @since 4.9.0
*
- * @returns {void}
+ * @return {void}
*/
rerenderAsInstalled: function( installed ) {
var control = this, section;
@@ -5238,7 +5238,7 @@
* @since 4.9.0
* @param {string} id - Unique identifier for the control instance.
* @param {object} options - Options hash for the control instance.
- * @returns {void}
+ * @return {void}
*/
initialize: function( id, options ) {
var control = this;
@@ -5273,7 +5273,7 @@
* Initialize the editor when the containing section is ready and expanded.
*
* @since 4.9.0
- * @returns {void}
+ * @return {void}
*/
ready: function() {
var control = this;
@@ -5305,7 +5305,7 @@
* Initialize editor.
*
* @since 4.9.0
- * @returns {void}
+ * @return {void}
*/
initEditor: function() {
var control = this, element, editorSettings = false;
@@ -5356,7 +5356,7 @@
* @since 4.9.0
* @param {Object} [params] - Focus params.
* @param {Function} [params.completeCallback] - Function to call when expansion is complete.
- * @returns {void}
+ * @return {void}
*/
focus: function( params ) {
var control = this, extendedParams = _.extend( {}, params ), originalCompleteCallback;
@@ -5377,7 +5377,7 @@
*
* @since 4.9.0
* @param {object} codeEditorSettings - Code editor settings.
- * @returns {void}
+ * @return {void}
*/
initSyntaxHighlightingEditor: function( codeEditorSettings ) {
var control = this, $textarea = control.container.find( 'textarea' ), settings, suspendEditorUpdate = false;
@@ -5436,7 +5436,7 @@
* Handle tabbing to the field after the editor.
*
* @since 4.9.0
- * @returns {void}
+ * @return {void}
*/
onTabNext: function onTabNext() {
var control = this, controls, controlIndex, section;
@@ -5454,7 +5454,7 @@
* Handle tabbing to the field before the editor.
*
* @since 4.9.0
- * @returns {void}
+ * @return {void}
*/
onTabPrevious: function onTabPrevious() {
var control = this, controls, controlIndex, section;
@@ -5473,7 +5473,7 @@
*
* @since 4.9.0
* @param {Array} errorAnnotations - Error annotations.
- * @returns {void}
+ * @return {void}
*/
onUpdateErrorNotice: function onUpdateErrorNotice( errorAnnotations ) {
var control = this, message;
@@ -5496,7 +5496,7 @@
* Initialize plain-textarea editor when syntax highlighting is disabled.
*
* @since 4.9.0
- * @returns {void}
+ * @return {void}
*/
initPlainTextareaEditor: function() {
var control = this, $textarea = control.container.find( 'textarea' ), textarea = $textarea[0];
@@ -5556,7 +5556,7 @@
* Initialize behaviors.
*
* @since 4.9.0
- * @returns {void}
+ * @return {void}
*/
ready: function ready() {
var control = this;
@@ -5618,7 +5618,7 @@
* @since 4.9.0
*
* @param {string} datetime - Date/Time string. Accepts Y-m-d[ H:i[:s]] format.
- * @returns {object|null} Returns object containing date components or null if parse error.
+ * @return {object|null} Returns object containing date components or null if parse error.
*/
parseDateTime: function parseDateTime( datetime ) {
var control = this, matches, date, midDayHour = 12;
@@ -5733,7 +5733,7 @@
* Populate setting value from the inputs.
*
* @since 4.9.0
- * @returns {boolean} If setting updated.
+ * @return {boolean} If setting updated.
*/
populateSetting: function populateSetting() {
var control = this, date;
@@ -5794,7 +5794,7 @@
* Check if the date is in the future.
*
* @since 4.9.0
- * @returns {boolean} True if future date.
+ * @return {boolean} True if future date.
*/
isFutureDate: function isFutureDate() {
var control = this;
@@ -5807,7 +5807,7 @@
* @since 4.9.0
* @param {string} hourInTwelveHourFormat - Hour in twelve hour format.
* @param {string} meridian - Either 'am' or 'pm'.
- * @returns {string} Hour in twenty four hour format.
+ * @return {string} Hour in twenty four hour format.
*/
convertHourToTwentyFourHourFormat: function convertHour( hourInTwelveHourFormat, meridian ) {
var hourInTwentyFourHourFormat, hour, midDayHour = 12;
@@ -5832,7 +5832,7 @@
* Populates date inputs in date fields.
*
* @since 4.9.0
- * @returns {boolean} Whether the inputs were populated.
+ * @return {boolean} Whether the inputs were populated.
*/
populateDateInputs: function populateDateInputs() {
var control = this, parsed;
@@ -5914,7 +5914,7 @@
* Initialize behaviors.
*
* @since 4.9.0
- * @returns {void}
+ * @return {void}
*/
ready: function ready() {
var control = this, element, component, node, url, input, button;
@@ -6042,7 +6042,8 @@
* @type {Function}
* @param {...string} ids - One or more ids for controls to obtain.
* @param {deferredControlsCallback} [callback] - Function called when all supplied controls exist.
- * @returns {wp.customize.Control|undefined|jQuery.promise} Control instance or undefined (if function called with one id param), or promise resolving to requested controls.
+ * @return {wp.customize.Control|undefined|jQuery.promise} Control instance or undefined (if function called with one id param),
+ * or promise resolving to requested controls.
*
* @example
Loop over all registered controls.
* wp.customize.control.each( function( control ) { ... } );
@@ -6103,7 +6104,8 @@
* @type {Function}
* @param {...string} ids - One or more ids for sections to obtain.
* @param {deferredSectionsCallback} [callback] - Function called when all supplied sections exist.
- * @returns {wp.customize.Section|undefined|jQuery.promise} Section instance or undefined (if function called with one id param), or promise resolving to requested sections.
+ * @return {wp.customize.Section|undefined|jQuery.promise} Section instance or undefined (if function called with one id param),
+ * or promise resolving to requested sections.
*
* @example
Loop over all registered sections.
* wp.customize.section.each( function( section ) { ... } )
@@ -6137,7 +6139,8 @@
* @type {Function}
* @param {...string} ids - One or more ids for panels to obtain.
* @param {deferredPanelsCallback} [callback] - Function called when all supplied panels exist.
- * @returns {wp.customize.Panel|undefined|jQuery.promise} Panel instance or undefined (if function called with one id param), or promise resolving to requested panels.
+ * @return {wp.customize.Panel|undefined|jQuery.promise} Panel instance or undefined (if function called with one id param),
+ * or promise resolving to requested panels.
*
* @example
Loop over all registered panels.
* wp.customize.panel.each( function( panel ) { ... } )
@@ -6171,7 +6174,8 @@
* @type {Function}
* @param {...string} codes - One or more codes for notifications to obtain.
* @param {deferredNotificationsCallback} [callback] - Function called when all supplied notifications exist.
- * @returns {wp.customize.Notification|undefined|jQuery.promise} notification instance or undefined (if function called with one code param), or promise resolving to requested notifications.
+ * @return {wp.customize.Notification|undefined|jQuery.promise} Notification instance or undefined (if function called with one code param),
+ * or promise resolving to requested notifications.
*
* @example