From 9884885626f4c766c87d85d6b077ed1fe210b764 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Viktor=20Sz=C3=A9pe?= Date: Sun, 19 May 2024 22:30:56 +0000 Subject: [PATCH] Fix typos --- credits.txt | 2 +- fieldmanager.php | 2 +- php/class-fieldmanager-checkbox.php | 2 +- php/class-fieldmanager-field.php | 4 ++-- php/class-fieldmanager-richtextarea.php | 2 +- php/class-fieldmanager-textarea.php | 2 +- php/datasource/class-fieldmanager-datasource-post.php | 4 ++-- php/datasource/class-fieldmanager-datasource.php | 4 ++-- tests/php/test-fieldmanager-context-term.php | 2 +- tests/php/test-fieldmanager-field.php | 2 +- 10 files changed, 13 insertions(+), 13 deletions(-) diff --git a/credits.txt b/credits.txt index 664f46523c..d5c230da22 100644 --- a/credits.txt +++ b/credits.txt @@ -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 diff --git a/fieldmanager.php b/fieldmanager.php index d15627f150..d639c0e6b4 100644 --- a/fieldmanager.php +++ b/fieldmanager.php @@ -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 */ diff --git a/php/class-fieldmanager-checkbox.php b/php/class-fieldmanager-checkbox.php index 7db9827f9c..d9b816bdff 100644 --- a/php/class-fieldmanager-checkbox.php +++ b/php/class-fieldmanager-checkbox.php @@ -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() ) { diff --git a/php/class-fieldmanager-field.php b/php/class-fieldmanager-field.php index 187313290f..0be1885d00 100644 --- a/php/class-fieldmanager-field.php +++ b/php/class-fieldmanager-field.php @@ -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' @@ -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 */ diff --git a/php/class-fieldmanager-richtextarea.php b/php/class-fieldmanager-richtextarea.php index d5bcf1b227..c84f477224 100644 --- a/php/class-fieldmanager-richtextarea.php +++ b/php/class-fieldmanager-richtextarea.php @@ -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. diff --git a/php/class-fieldmanager-textarea.php b/php/class-fieldmanager-textarea.php index 68afdb031a..6932140443 100644 --- a/php/class-fieldmanager-textarea.php +++ b/php/class-fieldmanager-textarea.php @@ -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 ); diff --git a/php/datasource/class-fieldmanager-datasource-post.php b/php/datasource/class-fieldmanager-datasource-post.php index c02cea2c8a..06b89229a8 100644 --- a/php/datasource/class-fieldmanager-datasource-post.php +++ b/php/datasource/class-fieldmanager-datasource-post.php @@ -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 @@ -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; diff --git a/php/datasource/class-fieldmanager-datasource.php b/php/datasource/class-fieldmanager-datasource.php index fdf7286796..9392fe0d0d 100644 --- a/php/datasource/class-fieldmanager-datasource.php +++ b/php/datasource/class-fieldmanager-datasource.php @@ -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 ) ); } diff --git a/tests/php/test-fieldmanager-context-term.php b/tests/php/test-fieldmanager-context-term.php index 2aaa0a23e0..1e02746038 100644 --- a/tests/php/test-fieldmanager-context-term.php +++ b/tests/php/test-fieldmanager-context-term.php @@ -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 ) { diff --git a/tests/php/test-fieldmanager-field.php b/tests/php/test-fieldmanager-field.php index d25dfeaf0d..5559a6b9c3 100644 --- a/tests/php/test-fieldmanager-field.php +++ b/tests/php/test-fieldmanager-field.php @@ -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