Skip to content

Commit

Permalink
Merge pull request #871 from szepeviktor/typos
Browse files Browse the repository at this point in the history
Fix typos
  • Loading branch information
mogmarsh authored May 23, 2024
2 parents 9e756e6 + 9884885 commit 584979f
Show file tree
Hide file tree
Showing 10 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion credits.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Open Source components consulted or used:
* [08/26/12] Aspects of the Drupal Fields System and its precursor CCK provided
inspiration, especially the excellent 6.x-3.0 branch which allowed
nested fieldgroups.
* [10/15/12] Incoprorated Handsontable (http://handsontable.com/) by Marcin
* [10/15/12] Incorporated Handsontable (http://handsontable.com/) by Marcin
Warpechowski for Fieldmanager_Grid (used by KFF)
* [11/03/12] Incorporated Chosen.js (http://harvesthq.github.com/chosen/) by
Patrick Filler and Matthew Lettini at Harvest
Expand Down
2 changes: 1 addition & 1 deletion fieldmanager.php
Original file line number Diff line number Diff line change
Expand Up @@ -633,7 +633,7 @@ class FM_Exception extends Exception { }
class FM_Class_Not_Found_Exception extends Exception { }

/**
* Exception class for unitialized submenus.
* Exception class for uninitialized submenus.
*
* @package Fieldmanager
*/
Expand Down
2 changes: 1 addition & 1 deletion php/class-fieldmanager-checkbox.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public function form_element( $value = null ) {
* Override presave function to swap in unchecked_value if needed.
*
* @param mixed $value The new value.
* @param mixed $current_value The curent value.
* @param mixed $current_value The current value.
* @return mixed Proper value.
*/
public function presave( $value = null, $current_value = array() ) {
Expand Down
4 changes: 2 additions & 2 deletions php/class-fieldmanager-field.php
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,7 @@ public function set_options( $label, $options ) {
} elseif ( self::$debug ) {
$message = sprintf(
/* translators: 1: option key, 2: field class, 3: field name */
__( 'You attempted to set a property "%1$s" that is nonexistant or invalid for an instance of "%2$s" named "%3$s".', 'fieldmanager' ),
__( 'You attempted to set a property "%1$s" that is nonexistent or invalid for an instance of "%2$s" named "%3$s".', 'fieldmanager' ),
$key,
get_class( $this ),
! empty( $options['name'] ) ? $options['name'] : 'NULL'
Expand Down Expand Up @@ -1219,7 +1219,7 @@ public function get_collapse_handle() {
}

/**
* Return extra element classes; overriden by some fields.
* Return extra element classes; overridden by some fields.
*
* @return array
*/
Expand Down
2 changes: 1 addition & 1 deletion php/class-fieldmanager-richtextarea.php
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ public function form_element( $value = '' ) {
}

/**
* Before generating the editor, manipualte the settings as needed.
* Before generating the editor, manipulate the settings as needed.
*/
protected function prep_editor_config() {
// Attempt to maintain some backwards compatibility for $init_options.
Expand Down
2 changes: 1 addition & 1 deletion php/class-fieldmanager-textarea.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public function __construct( $label = '', $options = array() ) {
'rows' => '10',
);

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

parent::__construct( $label, $options );
Expand Down
4 changes: 2 additions & 2 deletions php/datasource/class-fieldmanager-datasource-post.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class Fieldmanager_Datasource_Post extends Fieldmanager_Datasource {

/**
* Arguments to get_posts(), which uses WP's defaults, plus
* suppress_filters = False, which can be overriden by setting
* suppress_filters = False, which can be overridden by setting
* suppress_filters = True here.
*
* @see http://codex.wordpress.org/Template_Tags/get_posts
Expand Down Expand Up @@ -213,7 +213,7 @@ public function get_ajax_action() {
* when trying to autocomplete a title.
*
* @param string $where The where clause.
* @param WP_Query $wp_query The reference to teh query object.
* @param WP_Query $wp_query The reference to the query object.
*/
public function title_like( $where, $wp_query ) {
global $wpdb;
Expand Down
4 changes: 2 additions & 2 deletions php/datasource/class-fieldmanager-datasource.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,13 +84,13 @@ public function __construct( $options = array() ) {
} catch ( Exception $e ) {
$message = sprintf(
/* translators: 1: property name, 2: current class name, 3: option name */
__( 'You attempted to set a property "%1$s" that is nonexistant or invalid for an instance of "%2$s" named "%3$s".', 'fieldmanager' ),
__( 'You attempted to set a property "%1$s" that is nonexistent or invalid for an instance of "%2$s" named "%3$s".', 'fieldmanager' ),
$k,
get_class(),
! empty( $options['name'] ) ? $options['name'] : 'NULL'
);
if ( ! Fieldmanager_Field::$debug ) {
wp_die( esc_html( $message ), esc_html__( 'Nonexistant or invalid option', 'fieldmanager' ) );
wp_die( esc_html( $message ), esc_html__( 'Nonexistent or invalid option', 'fieldmanager' ) );
} else {
throw new FM_Developer_Exception( esc_html( $message ) );
}
Expand Down
2 changes: 1 addition & 1 deletion tests/php/test-fieldmanager-context-term.php
Original file line number Diff line number Diff line change
Expand Up @@ -551,7 +551,7 @@ public function test_term_meta_saving_on_term_create_when_a_filter_alters_the_te
$name => $value,
];

// Manipualte the term name prior to insert.
// Manipulate the term name prior to insert.
add_filter(
'pre_insert_term',
function( $term_name ) {
Expand Down
2 changes: 1 addition & 1 deletion tests/php/test-fieldmanager-field.php
Original file line number Diff line number Diff line change
Expand Up @@ -1072,7 +1072,7 @@ public function test_unserialize_data_single_field_save() {
}

/**
* Verify passing false to seralize_data through the save_to_post_meta method on data
* Verify passing false to serialize_data through the save_to_post_meta method on data
* that requires serialization.
*
* @group serialize_data
Expand Down

0 comments on commit 584979f

Please sign in to comment.