summaryrefslogtreecommitdiffstatshomepage
path: root/src/js
diff options
context:
space:
mode:
Diffstat (limited to 'src/js')
-rw-r--r--src/js/_enqueues/lib/admin-bar.js2
-rw-r--r--src/js/_enqueues/wp/backbone.js2
-rw-r--r--src/js/_enqueues/wp/customize/controls.js4
-rw-r--r--src/js/_enqueues/wp/customize/loader.js2
-rw-r--r--src/js/_enqueues/wp/customize/selective-refresh.js8
-rw-r--r--src/js/_enqueues/wp/customize/widgets.js2
-rw-r--r--src/js/_enqueues/wp/dashboard.js2
-rw-r--r--src/js/_enqueues/wp/editor/base.js4
-rw-r--r--src/js/_enqueues/wp/editor/dfw.js2
-rw-r--r--src/js/_enqueues/wp/theme-plugin-editor.js2
-rw-r--r--src/js/_enqueues/wp/theme.js6
-rw-r--r--src/js/media/views/toolbar.js2
12 files changed, 19 insertions, 19 deletions
diff --git a/src/js/_enqueues/lib/admin-bar.js b/src/js/_enqueues/lib/admin-bar.js
index 01b175d1b0..dbee866325 100644
--- a/src/js/_enqueues/lib/admin-bar.js
+++ b/src/js/_enqueues/lib/admin-bar.js
@@ -203,7 +203,7 @@
}
/**
- * Toogle hover class for mobile devices.
+ * Toggle hover class for mobile devices.
*
* @since 5.3.1
*
diff --git a/src/js/_enqueues/wp/backbone.js b/src/js/_enqueues/wp/backbone.js
index 74297e8e06..4fd194f573 100644
--- a/src/js/_enqueues/wp/backbone.js
+++ b/src/js/_enqueues/wp/backbone.js
@@ -310,7 +310,7 @@ window.wp = window.wp || {};
* @since 3.6.0
*
* @param {Object} options Options for call.
- * @param {boolean} options.silent If true, `unset` wil *not* be triggered on
+ * @param {boolean} options.silent If true, `unset` will *not* be triggered on
* the master views' parent.
*
* @return {wp.Backbone.Subviews} The current Subviews instance.
diff --git a/src/js/_enqueues/wp/customize/controls.js b/src/js/_enqueues/wp/customize/controls.js
index 650ac8a161..dbfef020f7 100644
--- a/src/js/_enqueues/wp/customize/controls.js
+++ b/src/js/_enqueues/wp/customize/controls.js
@@ -1799,7 +1799,7 @@
section.closeDetails();
} else {
- // Escape from the inifinite scroll list.
+ // Escape from the infinite scroll list.
section.headerContainer.find( '.customize-themes-section-title' ).focus();
}
event.stopPropagation(); // Prevent section from being collapsed.
@@ -7199,7 +7199,7 @@
} ) );
/**
- * Return whether the pubish settings section should be active.
+ * Return whether the publish settings section should be active.
*
* @return {boolean} Is section active.
*/
diff --git a/src/js/_enqueues/wp/customize/loader.js b/src/js/_enqueues/wp/customize/loader.js
index e9368c3f83..2326f1f7df 100644
--- a/src/js/_enqueues/wp/customize/loader.js
+++ b/src/js/_enqueues/wp/customize/loader.js
@@ -22,7 +22,7 @@ window.wp = window.wp || {};
});
/**
- * Allows the Customizer to be overlayed on any page.
+ * Allows the Customizer to be overlaid on any page.
*
* By default, any element in the body with the load-customize class will open
* an iframe overlay with the URL specified.
diff --git a/src/js/_enqueues/wp/customize/selective-refresh.js b/src/js/_enqueues/wp/customize/selective-refresh.js
index 2967d45152..6744361066 100644
--- a/src/js/_enqueues/wp/customize/selective-refresh.js
+++ b/src/js/_enqueues/wp/customize/selective-refresh.js
@@ -429,7 +429,7 @@ wp.customize.selectiveRefresh = ( function( $, api ) {
}
/* jshint ignore:start */
- self.orginalDocumentWrite = document.write;
+ self.originalDocumentWrite = document.write;
document.write = function() {
throw new Error( self.data.l10n.badDocumentWrite );
};
@@ -473,8 +473,8 @@ wp.customize.selectiveRefresh = ( function( $, api ) {
partial.fallback( error, [ placement ] );
}
/* jshint ignore:start */
- document.write = self.orginalDocumentWrite;
- self.orginalDocumentWrite = null;
+ document.write = self.originalDocumentWrite;
+ self.originalDocumentWrite = null;
/* jshint ignore:end */
partial.createEditShortcutForPlacement( placement );
@@ -673,7 +673,7 @@ wp.customize.selectiveRefresh = ( function( $, api ) {
self._pendingPartialRequests = {};
/**
- * Timeout ID for the current requesr, or null if no request is current.
+ * Timeout ID for the current request, or null if no request is current.
*
* @since 4.5.0
* @type {number|null}
diff --git a/src/js/_enqueues/wp/customize/widgets.js b/src/js/_enqueues/wp/customize/widgets.js
index 2ba8aeed81..05bd65c901 100644
--- a/src/js/_enqueues/wp/customize/widgets.js
+++ b/src/js/_enqueues/wp/customize/widgets.js
@@ -388,7 +388,7 @@
},
/**
- * Adds keyboard accessiblity to the panel.
+ * Adds keyboard accessibility to the panel.
*/
keyboardAccessible: function( event ) {
var isEnter = ( event.which === 13 ),
diff --git a/src/js/_enqueues/wp/dashboard.js b/src/js/_enqueues/wp/dashboard.js
index 3354790472..0115611fe9 100644
--- a/src/js/_enqueues/wp/dashboard.js
+++ b/src/js/_enqueues/wp/dashboard.js
@@ -92,7 +92,7 @@ jQuery( function($) {
setTimeout( function(){
// Request the widget content.
p.load( ajaxurl + '?action=dashboard-widgets&widget=' + id + '&pagenow=' + pagenow, '', function() {
- // Hide the parent and slide it out for visual fancyness.
+ // Hide the parent and slide it out for visual fanciness.
p.hide().slideDown('normal', function(){
$(this).css('display', '');
});
diff --git a/src/js/_enqueues/wp/editor/base.js b/src/js/_enqueues/wp/editor/base.js
index d5fe958c19..2465af3227 100644
--- a/src/js/_enqueues/wp/editor/base.js
+++ b/src/js/_enqueues/wp/editor/base.js
@@ -265,7 +265,7 @@ window.wp = window.wp || {};
}
/**
- * Gets a list of unique shortcodes or shortcode-look-alikes in the content.
+ * Gets a list of unique shortcodes or shortcode-lookalikes in the content.
*
* @param {string} content The content we want to scan for shortcodes.
*/
@@ -561,7 +561,7 @@ window.wp = window.wp || {};
* By default TinyMCE wraps loose inline tags in a `<p>`.
* When removing selection markers an empty `<p>` may be left behind, remove it.
*
- * @param {Object} $marker The marker to be removed from the editor DOM, wrapped in an instnce of `editor.$`
+ * @param {Object} $marker The marker to be removed from the editor DOM, wrapped in an instance of `editor.$`
*/
function removeSelectionMarker( $marker ) {
var $markerParent = $marker.parent();
diff --git a/src/js/_enqueues/wp/editor/dfw.js b/src/js/_enqueues/wp/editor/dfw.js
index a47c548dc9..04b001e1c8 100644
--- a/src/js/_enqueues/wp/editor/dfw.js
+++ b/src/js/_enqueues/wp/editor/dfw.js
@@ -1552,7 +1552,7 @@
// Bind and unbind based on the distraction free writing focus.
$document.on( 'dfw-on.focus', mceBind ).on( 'dfw-off.focus', mceUnbind );
- // Focuse the editor when it is the target of the click event.
+ // Focus the editor when it is the target of the click event.
editor.on( 'click', function( event ) {
if ( event.target === editor.getDoc().documentElement ) {
editor.focus();
diff --git a/src/js/_enqueues/wp/theme-plugin-editor.js b/src/js/_enqueues/wp/theme-plugin-editor.js
index 8871b0432a..2fd866531f 100644
--- a/src/js/_enqueues/wp/theme-plugin-editor.js
+++ b/src/js/_enqueues/wp/theme-plugin-editor.js
@@ -191,7 +191,7 @@ wp.themePluginEditor = (function( $ ) {
return;
}
- // Scroll ot the line that has the error.
+ // Scroll to the line that has the error.
if ( component.lintErrors.length ) {
component.instance.codemirror.setCursor( component.lintErrors[0].from.line );
return;
diff --git a/src/js/_enqueues/wp/theme.js b/src/js/_enqueues/wp/theme.js
index 13ed5aab4e..e4bebbbc1e 100644
--- a/src/js/_enqueues/wp/theme.js
+++ b/src/js/_enqueues/wp/theme.js
@@ -926,7 +926,7 @@ themes.view.Preview = themes.view.Details.extend({
currentPreviewDevice = this.$el.data( 'current-preview-device' );
if ( currentPreviewDevice ) {
- self.tooglePreviewDeviceButtons( currentPreviewDevice );
+ self.togglePreviewDeviceButtons( currentPreviewDevice );
}
themes.router.navigate( themes.router.baseUrl( themes.router.themePath + this.model.get( 'id' ) ), { replace: false } );
@@ -988,10 +988,10 @@ themes.view.Preview = themes.view.Details.extend({
.addClass( 'preview-' + device )
.data( 'current-preview-device', device );
- this.tooglePreviewDeviceButtons( device );
+ this.togglePreviewDeviceButtons( device );
},
- tooglePreviewDeviceButtons: function( newDevice ) {
+ togglePreviewDeviceButtons: function( newDevice ) {
var $devices = $( '.wp-full-overlay-footer .devices' );
$devices.find( 'button' )
diff --git a/src/js/media/views/toolbar.js b/src/js/media/views/toolbar.js
index ed40dcdfda..ec1b31aec3 100644
--- a/src/js/media/views/toolbar.js
+++ b/src/js/media/views/toolbar.js
@@ -52,7 +52,7 @@ Toolbar = View.extend(/** @lends wp.media.view.Toolbar.prototype */{
}
},
/**
- * @return {wp.media.view.Toolbar} Returns itsef to allow chaining
+ * @return {wp.media.view.Toolbar} Returns itself to allow chaining
*/
dispose: function() {
if ( this.selection ) {