wp/wp-admin/js/dashboard.js
changeset 16 a86126ab1dd4
parent 9 177826044cd9
child 18 be944660c56a
--- a/wp/wp-admin/js/dashboard.js	Tue Oct 22 16:11:46 2019 +0200
+++ b/wp/wp-admin/js/dashboard.js	Tue Dec 15 13:49:49 2020 +0100
@@ -23,7 +23,7 @@
 	 *
 	 * @param {boolean} visible Should it be visible or not.
 	 *
-	 * @returns {void}
+	 * @return {void}
 	 */
 	updateWelcomePanel = function( visible ) {
 		$.post( ajaxurl, {
@@ -64,7 +64,7 @@
 	window.ajaxWidgets = ['dashboard_primary'];
 
 	/**
-	 * Triggers widget updates via AJAX.
+	 * Triggers widget updates via Ajax.
 	 *
 	 * @since 2.7.0
 	 *
@@ -72,7 +72,7 @@
 	 *
 	 * @param {string} el Optional. Widget to fetch or none to update all.
 	 *
-	 * @returns {void}
+	 * @return {void}
 	 */
 	window.ajaxPopulateWidgets = function(el) {
 		/**
@@ -81,7 +81,7 @@
 		 * @param {number} i Number of half-seconds to use as the timeout.
 		 * @param {string} id ID of the element which is going to be checked for changes.
 		 *
-		 * @returns {void}
+		 * @return {void}
 		 */
 		function show(i, id) {
 			var p, e = $('#' + id + ' div.inside:visible').find('.widget-loading');
@@ -103,7 +103,7 @@
 		// If we have received a specific element to fetch, check if it is valid.
 		if ( el ) {
 			el = el.toString();
-			// If the element is available as AJAX widget, show it.
+			// If the element is available as Ajax widget, show it.
 			if ( $.inArray(el, ajaxWidgets) !== -1 ) {
 				// Show element without any delay.
 				show(0, el);
@@ -127,7 +127,7 @@
 	 *
 	 * @global
 	 *
-	 * @returns {void}
+	 * @return {void}
 	 */
 	window.quickPressLoad = function() {
 		var act = $('#quickpost-action'), t;
@@ -159,7 +159,7 @@
 			/**
 			 * Highlights the latest post for one second.
 			 *
-			 * @returns {void}
+			 * @return {void}
  			 */
 			function highlightLatestPost () {
 				var latestPost = $('.drafts ul li').first();
@@ -189,7 +189,7 @@
 	 *
 	 * @since 3.6.0
 	 *
-	 * @returns {void}
+	 * @return {void}
 	 */
 	function autoResizeTextarea() {
 		// When IE8 or older is used to render this document, exit.
@@ -285,7 +285,7 @@
 		 *
 		 * @since 4.8.0
 		 *
-		 * @returns {void}
+		 * @return {void}
 		 */
 		init: function() {
 			if ( app.initialized ) {
@@ -319,7 +319,7 @@
 			/**
 			 * Filters events based on entered location.
 			 *
-			 * @returns {void}
+			 * @return {void}
 			 */
 			$container.on( 'submit', '.community-events-form', function( event ) {
 				var location = $.trim( $( '#community-events-location' ).val() );
@@ -356,7 +356,7 @@
 		 * @param {event|string} action 'show' or 'hide' to specify a state;
 		 *                              or an event object to flip between states.
 		 *
-		 * @returns {void}
+		 * @return {void}
 		 */
 		toggleLocationForm: function( action ) {
 			var $toggleButton = $( '.community-events-toggle-location' ),
@@ -401,7 +401,7 @@
 		 *
 		 * @param {Object} requestParams REST API Request parameters object.
 		 *
-		 * @returns {void}
+		 * @return {void}
 		 */
 		getEvents: function( requestParams ) {
 			var initiatedBy,
@@ -455,7 +455,7 @@
 		 * @param {string} initiatedBy    'user' to indicate that this was triggered manually by the user;
 		 *                                'app' to indicate it was triggered automatically by the app itself.
 		 *
-		 * @returns {void}
+		 * @return {void}
 		 */
 		renderEventsTemplate: function( templateParams, initiatedBy ) {
 			var template,