Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

📖 DOC: Correct spelling mistakes #228

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion assets/build/js/_acf-condition.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@
// - this field is used to setup the conditional logic events
var field = target.getField( rule.field );

// bail ealry if no target or no field (possible if field doesn't exist due to HTML error)
// bail early if no target or no field (possible if field doesn't exist due to HTML error)
if( !target || !field ) {
return false;
}
Expand Down
2 changes: 1 addition & 1 deletion assets/build/js/_acf-conditions.js
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@
// instantiate
var condition = acf.newCondition( rule, this );

// bail ealry if condition failed (field did not exist)
// bail early if condition failed (field did not exist)
if( !condition ) {
return false;
}
Expand Down
6 changes: 3 additions & 3 deletions assets/build/js/_acf-field-date-picker.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,12 +115,12 @@
var rtl = acf.get('rtl');
var l10n = acf.get('datePickerL10n');

// bail ealry if no l10n
// bail early if no l10n
if( !l10n ) {
return false;
}

// bail ealry if no datepicker library
// bail early if no datepicker library
if( typeof $.datepicker === 'undefined' ) {
return false;
}
Expand All @@ -137,7 +137,7 @@
// add
acf.newDatePicker = function( $input, args ){

// bail ealry if no datepicker library
// bail early if no datepicker library
if( typeof $.datepicker === 'undefined' ) {
return false;
}
Expand Down
6 changes: 3 additions & 3 deletions assets/build/js/_acf-field-date-time-picker.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,12 @@
var rtl = acf.get('rtl');
var l10n = acf.get('dateTimePickerL10n');

// bail ealry if no l10n
// bail early if no l10n
if( !l10n ) {
return false;
}

// bail ealry if no datepicker library
// bail early if no datepicker library
if( typeof $.timepicker === 'undefined' ) {
return false;
}
Expand All @@ -79,7 +79,7 @@
// add
acf.newDateTimePicker = function( $input, args ){

// bail ealry if no datepicker library
// bail early if no datepicker library
if( typeof $.timepicker === 'undefined' ) {
return false;
}
Expand Down
2 changes: 1 addition & 1 deletion assets/build/js/_acf-field-relationship.js
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@

onClickRemove: function( e, $el ){

// Prevent default here because generic handler wont be triggered.
// Prevent default here because generic handler won't be triggered.
e.preventDefault();

// vars
Expand Down
2 changes: 1 addition & 1 deletion assets/build/js/_acf-field-time-picker.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
// add
acf.newTimePicker = function( $input, args ){

// bail ealry if no datepicker library
// bail early if no datepicker library
if( typeof $.timepicker === 'undefined' ) {
return false;
}
Expand Down
4 changes: 2 additions & 2 deletions assets/build/js/_acf-field-true-false.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,15 @@
// vars
var $switch = this.$switch();

// bail ealry if no $switch
// bail early if no $switch
if( !$switch.length ) return;

// vars
var $on = $switch.children('.acf-switch-on');
var $off = $switch.children('.acf-switch-off');
var width = Math.max( $on.width(), $off.width() );

// bail ealry if no width
// bail early if no width
if( !width ) return;

// set widths
Expand Down
2 changes: 1 addition & 1 deletion assets/build/js/_acf-helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@
return false;
}

// bail ealry if is .-left
// bail early if is .-left
if( $el.hasClass('-left') ) {
$fields.removeAttr('data-width');
$fields.css('width', 'auto');
Expand Down
2 changes: 1 addition & 1 deletion assets/build/js/_acf-select2.js
Original file line number Diff line number Diff line change
Expand Up @@ -659,7 +659,7 @@
var l10n = acf.get('select2L10n');
var version = getVersion();

// bail ealry if no l10n
// bail early if no l10n
if( !l10n ) {
return false;
}
Expand Down
2 changes: 1 addition & 1 deletion assets/build/js/_acf-tinymce.js
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@
// bail early
if( typeof switchEditors === 'undefined' ) return false;

// bail ealry if not initialized
// bail early if not initialized
if( typeof tinyMCEPreInit.mceInit[ id ] === 'undefined' ) return false;

// toggle
Expand Down
2 changes: 1 addition & 1 deletion assets/build/js/_acf-tooltip.js
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@
// vars
var title = $el.attr('title');

// bail ealry if no title
// bail early if no title
if( !title ) {
return;
}
Expand Down
2 changes: 1 addition & 1 deletion assets/build/js/_acf-unload.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@

startListening: function(){

// bail ealry if already changed, not active
// bail early if already changed, not active
if( this.changed || !this.active ) {
return;
}
Expand Down
2 changes: 1 addition & 1 deletion assets/build/js/_field-group-settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
var mid = modelId( type + ' ' + name );
var model = acf.models[ mid ] || null;

// bail ealry if no setting
// bail early if no setting
if( model === null ) return false;

// instantiate
Expand Down
2 changes: 1 addition & 1 deletion assets/build/js/_field-group.js
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@

onNewField: function( field ){

// bail ealry if not append
// bail early if not append
if( !field.has('append') ) return;

// vars
Expand Down
4 changes: 2 additions & 2 deletions assets/js/acf-field-group.js
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@

onNewField: function( field ){

// bail ealry if not append
// bail early if not append
if( !field.has('append') ) return;

// vars
Expand Down Expand Up @@ -1046,7 +1046,7 @@
var mid = modelId( type + ' ' + name );
var model = acf.models[ mid ] || null;

// bail ealry if no setting
// bail early if no setting
if( model === null ) return false;

// instantiate
Expand Down
34 changes: 17 additions & 17 deletions assets/js/acf-input.js
Original file line number Diff line number Diff line change
Expand Up @@ -3503,7 +3503,7 @@

startListening: function(){

// bail ealry if already changed, not active
// bail early if already changed, not active
if( this.changed || !this.active ) {
return;
}
Expand Down Expand Up @@ -4217,7 +4217,7 @@
// vars
var title = $el.attr('title');

// bail ealry if no title
// bail early if no title
if( !title ) {
return;
}
Expand Down Expand Up @@ -5711,12 +5711,12 @@
var rtl = acf.get('rtl');
var l10n = acf.get('datePickerL10n');

// bail ealry if no l10n
// bail early if no l10n
if( !l10n ) {
return false;
}

// bail ealry if no datepicker library
// bail early if no datepicker library
if( typeof $.datepicker === 'undefined' ) {
return false;
}
Expand All @@ -5733,7 +5733,7 @@
// add
acf.newDatePicker = function( $input, args ){

// bail ealry if no datepicker library
// bail early if no datepicker library
if( typeof $.datepicker === 'undefined' ) {
return false;
}
Expand Down Expand Up @@ -5810,12 +5810,12 @@
var rtl = acf.get('rtl');
var l10n = acf.get('dateTimePickerL10n');

// bail ealry if no l10n
// bail early if no l10n
if( !l10n ) {
return false;
}

// bail ealry if no datepicker library
// bail early if no datepicker library
if( typeof $.timepicker === 'undefined' ) {
return false;
}
Expand All @@ -5833,7 +5833,7 @@
// add
acf.newDateTimePicker = function( $input, args ){

// bail ealry if no datepicker library
// bail early if no datepicker library
if( typeof $.timepicker === 'undefined' ) {
return false;
}
Expand Down Expand Up @@ -7381,7 +7381,7 @@

onClickRemove: function( e, $el ){

// Prevent default here because generic handler wont be triggered.
// Prevent default here because generic handler won't be triggered.
e.preventDefault();

// vars
Expand Down Expand Up @@ -8550,7 +8550,7 @@
// add
acf.newTimePicker = function( $input, args ){

// bail ealry if no datepicker library
// bail early if no datepicker library
if( typeof $.timepicker === 'undefined' ) {
return false;
}
Expand Down Expand Up @@ -8603,15 +8603,15 @@
// vars
var $switch = this.$switch();

// bail ealry if no $switch
// bail early if no $switch
if( !$switch.length ) return;

// vars
var $on = $switch.children('.acf-switch-on');
var $off = $switch.children('.acf-switch-off');
var width = Math.max( $on.width(), $off.width() );

// bail ealry if no width
// bail early if no width
if( !width ) return;

// set widths
Expand Down Expand Up @@ -8917,7 +8917,7 @@
// - this field is used to setup the conditional logic events
var field = target.getField( rule.field );

// bail ealry if no target or no field (possible if field doesn't exist due to HTML error)
// bail early if no target or no field (possible if field doesn't exist due to HTML error)
if( !target || !field ) {
return false;
}
Expand Down Expand Up @@ -9361,7 +9361,7 @@
// instantiate
var condition = acf.newCondition( rule, this );

// bail ealry if condition failed (field did not exist)
// bail early if condition failed (field did not exist)
if( !condition ) {
return false;
}
Expand Down Expand Up @@ -11926,7 +11926,7 @@
var l10n = acf.get('select2L10n');
var version = getVersion();

// bail ealry if no l10n
// bail early if no l10n
if( !l10n ) {
return false;
}
Expand Down Expand Up @@ -12396,7 +12396,7 @@
// bail early
if( typeof switchEditors === 'undefined' ) return false;

// bail ealry if not initialized
// bail early if not initialized
if( typeof tinyMCEPreInit.mceInit[ id ] === 'undefined' ) return false;

// toggle
Expand Down Expand Up @@ -13756,7 +13756,7 @@
return false;
}

// bail ealry if is .-left
// bail early if is .-left
if( $el.hasClass('-left') ) {
$fields.removeAttr('data-width');
$fields.css('width', 'auto');
Expand Down
2 changes: 1 addition & 1 deletion includes/admin/admin-field-group.php
Original file line number Diff line number Diff line change
Expand Up @@ -791,7 +791,7 @@ function ajax_move_field() {
if( !$field_group['ID'] ) continue;


// bail ealry if is current
// bail early if is current
if( $field_group['ID'] == $args['post_id'] ) continue;


Expand Down
4 changes: 2 additions & 2 deletions includes/admin/admin-upgrade.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ function __construct() {
*/
function admin_menu() {

// check if upgrade is avaialble
// check if upgrade is available
if( acf_has_upgrade() ) {

// add notice
Expand Down Expand Up @@ -84,7 +84,7 @@ function network_admin_menu() {
restore_current_blog();
}}

// check if upgrade is avaialble
// check if upgrade is available
if( $has_upgrade ) {

// add notice
Expand Down
2 changes: 1 addition & 1 deletion includes/admin/views/field-group-locations.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

<?php foreach( $field_group['location'] as $i => $group ):

// bail ealry if no group
// bail early if no group
if( empty($group) ) return;


Expand Down
Loading