Skip to content

Commit 584979f

Browse files
authored
Merge pull request #871 from szepeviktor/typos
Fix typos
2 parents 9e756e6 + 9884885 commit 584979f

10 files changed

Lines changed: 13 additions & 13 deletions

credits.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Open Source components consulted or used:
2222
* [08/26/12] Aspects of the Drupal Fields System and its precursor CCK provided
2323
inspiration, especially the excellent 6.x-3.0 branch which allowed
2424
nested fieldgroups.
25-
* [10/15/12] Incoprorated Handsontable (http://handsontable.com/) by Marcin
25+
* [10/15/12] Incorporated Handsontable (http://handsontable.com/) by Marcin
2626
Warpechowski for Fieldmanager_Grid (used by KFF)
2727
* [11/03/12] Incorporated Chosen.js (http://harvesthq.github.com/chosen/) by
2828
Patrick Filler and Matthew Lettini at Harvest

fieldmanager.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -633,7 +633,7 @@ class FM_Exception extends Exception { }
633633
class FM_Class_Not_Found_Exception extends Exception { }
634634

635635
/**
636-
* Exception class for unitialized submenus.
636+
* Exception class for uninitialized submenus.
637637
*
638638
* @package Fieldmanager
639639
*/

php/class-fieldmanager-checkbox.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ public function form_element( $value = null ) {
7171
* Override presave function to swap in unchecked_value if needed.
7272
*
7373
* @param mixed $value The new value.
74-
* @param mixed $current_value The curent value.
74+
* @param mixed $current_value The current value.
7575
* @return mixed Proper value.
7676
*/
7777
public function presave( $value = null, $current_value = array() ) {

php/class-fieldmanager-field.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -448,7 +448,7 @@ public function set_options( $label, $options ) {
448448
} elseif ( self::$debug ) {
449449
$message = sprintf(
450450
/* translators: 1: option key, 2: field class, 3: field name */
451-
__( 'You attempted to set a property "%1$s" that is nonexistant or invalid for an instance of "%2$s" named "%3$s".', 'fieldmanager' ),
451+
__( 'You attempted to set a property "%1$s" that is nonexistent or invalid for an instance of "%2$s" named "%3$s".', 'fieldmanager' ),
452452
$key,
453453
get_class( $this ),
454454
! empty( $options['name'] ) ? $options['name'] : 'NULL'
@@ -1219,7 +1219,7 @@ public function get_collapse_handle() {
12191219
}
12201220

12211221
/**
1222-
* Return extra element classes; overriden by some fields.
1222+
* Return extra element classes; overridden by some fields.
12231223
*
12241224
* @return array
12251225
*/

php/class-fieldmanager-richtextarea.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ public function form_element( $value = '' ) {
197197
}
198198

199199
/**
200-
* Before generating the editor, manipualte the settings as needed.
200+
* Before generating the editor, manipulate the settings as needed.
201201
*/
202202
protected function prep_editor_config() {
203203
// Attempt to maintain some backwards compatibility for $init_options.

php/class-fieldmanager-textarea.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public function __construct( $label = '', $options = array() ) {
3636
'rows' => '10',
3737
);
3838

39-
// Sanitize the textarea to preserve newlines. Could be overriden.
39+
// Sanitize the textarea to preserve newlines. Could be overridden.
4040
$this->sanitize = 'fm_sanitize_textarea';
4141

4242
parent::__construct( $label, $options );

php/datasource/class-fieldmanager-datasource-post.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class Fieldmanager_Datasource_Post extends Fieldmanager_Datasource {
2020

2121
/**
2222
* Arguments to get_posts(), which uses WP's defaults, plus
23-
* suppress_filters = False, which can be overriden by setting
23+
* suppress_filters = False, which can be overridden by setting
2424
* suppress_filters = True here.
2525
*
2626
* @see http://codex.wordpress.org/Template_Tags/get_posts
@@ -213,7 +213,7 @@ public function get_ajax_action() {
213213
* when trying to autocomplete a title.
214214
*
215215
* @param string $where The where clause.
216-
* @param WP_Query $wp_query The reference to teh query object.
216+
* @param WP_Query $wp_query The reference to the query object.
217217
*/
218218
public function title_like( $where, $wp_query ) {
219219
global $wpdb;

php/datasource/class-fieldmanager-datasource.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,13 +84,13 @@ public function __construct( $options = array() ) {
8484
} catch ( Exception $e ) {
8585
$message = sprintf(
8686
/* translators: 1: property name, 2: current class name, 3: option name */
87-
__( 'You attempted to set a property "%1$s" that is nonexistant or invalid for an instance of "%2$s" named "%3$s".', 'fieldmanager' ),
87+
__( 'You attempted to set a property "%1$s" that is nonexistent or invalid for an instance of "%2$s" named "%3$s".', 'fieldmanager' ),
8888
$k,
8989
get_class(),
9090
! empty( $options['name'] ) ? $options['name'] : 'NULL'
9191
);
9292
if ( ! Fieldmanager_Field::$debug ) {
93-
wp_die( esc_html( $message ), esc_html__( 'Nonexistant or invalid option', 'fieldmanager' ) );
93+
wp_die( esc_html( $message ), esc_html__( 'Nonexistent or invalid option', 'fieldmanager' ) );
9494
} else {
9595
throw new FM_Developer_Exception( esc_html( $message ) );
9696
}

tests/php/test-fieldmanager-context-term.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -551,7 +551,7 @@ public function test_term_meta_saving_on_term_create_when_a_filter_alters_the_te
551551
$name => $value,
552552
];
553553

554-
// Manipualte the term name prior to insert.
554+
// Manipulate the term name prior to insert.
555555
add_filter(
556556
'pre_insert_term',
557557
function( $term_name ) {

tests/php/test-fieldmanager-field.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1072,7 +1072,7 @@ public function test_unserialize_data_single_field_save() {
10721072
}
10731073

10741074
/**
1075-
* Verify passing false to seralize_data through the save_to_post_meta method on data
1075+
* Verify passing false to serialize_data through the save_to_post_meta method on data
10761076
* that requires serialization.
10771077
*
10781078
* @group serialize_data

0 commit comments

Comments
 (0)