Skip to content

Commit a416c34

Browse files
authored
Fix typos (#120)
* Fix typos * Fix
1 parent d1dde09 commit a416c34

File tree

9 files changed

+26
-26
lines changed

9 files changed

+26
-26
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -470,7 +470,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
470470
## [1.2.4] - 2018-01-31
471471

472472
### Fixed
473-
- Fixed a bug that occured after the change made in 1.2.3.
473+
- Fixed a bug that occurred after the change made in 1.2.3.
474474

475475
## [1.2.3] - 2018-01-30
476476

docs/classes.md

Lines changed: 13 additions & 13 deletions
Large diffs are not rendered by default.

src/Block.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ public function remove_post_type( string $post_type ) : self {
344344
}
345345

346346
/**
347-
* Setter for the post_ ypes.
347+
* Setter for the post_types.
348348
*
349349
* @param array $post_types The post types to set.
350350
* @return self

src/Field.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -829,7 +829,7 @@ protected static function redipress_include_search_filter( $value, $post_id, arr
829829
* @param string $field_name Optional field name to RediSearch index. Defaults to field name.
830830
* @param float $weight Optional weight for the search field.
831831
* @param string $method The method to use with multiple values. Defaults to "use_last".
832-
* Possibilites: use_last, concat, concat_with_spaces, sum, custom (needs filter).
832+
* Possibilities: use_last, concat, concat_with_spaces, sum, custom (needs filter).
833833
* @return self
834834
*/
835835
public function redipress_add_queryable(

src/Field/Common/File.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ public function add_mime_type( string $mime_type ) {
182182
/**
183183
* A better named wrapper for add_mime_type()
184184
*
185-
* Adds an extensions to allowed file extentions, e.g. jpn, png, gif
185+
* Adds an extensions to allowed file extensions, e.g. jpg, png, gif
186186
*
187187
* @param string $file_extension
188188
* @return void
@@ -192,7 +192,7 @@ public function add_allowed_file_extension( string $file_extension ) {
192192
}
193193

194194
/**
195-
* Remove a file extensions from allowed file extenions
195+
* Remove a file extensions from allowed file extensions
196196
*
197197
* @param string $mime_type File extension.
198198
* @return self
@@ -220,9 +220,9 @@ public function remove_allowed_file_extension( string $file_extension ) {
220220
}
221221

222222
/**
223-
* Get allowed file extenions
223+
* Get allowed file extensions
224224
*
225-
* @return array File extenions
225+
* @return array File extensions
226226
*/
227227
public function get_mime_types() {
228228
return $this->mime_types;

src/Field/PostContent.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
class PostContent extends \Geniem\ACF\Field\Wysiwyg {
1212

1313
/**
14-
* Overriden constructor to provide our special functionality
14+
* Overridden constructor to provide our special functionality
1515
*
1616
* @param string $label Label for the field.
1717
* @param string|null $key Key for the field.

src/Field/PostExcerpt.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
class PostExcerpt extends \Geniem\ACF\Field\Textarea {
1212

1313
/**
14-
* Overriden constructor to provide our special functionality
14+
* Overridden constructor to provide our special functionality
1515
*
1616
* @param string $label Label for the field.
1717
* @param string|null $key Key for the field.

src/Fields/MultisiteTaxonomy.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ public function get_terms( $value, $taxonomy = [ 'category' ] ) {
245245
}
246246

247247
/**
248-
* This filter is appied to the $value after it is loaded from the db
248+
* This filter is applied to the $value after it is loaded from the db
249249
*
250250
* @param array $value The value found in the database.
251251
* @param int $post_id The $post_id from which the value was loaded from.

src/Fields/Multitaxonomy.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ public function get_terms( $value, $taxonomy = [ 'category' ] ) {
237237
}
238238

239239
/**
240-
* This filter is appied to the $value after it is loaded from the db
240+
* This filter is applied to the $value after it is loaded from the db
241241
*
242242
* @param array $value The value found in the database.
243243
* @param int $post_id The $post_id from which the value was loaded from.
@@ -290,7 +290,7 @@ function load_value( $value, $post_id, $field ) {
290290

291291
}
292292

293-
// convert back from array if neccessary
293+
// convert back from array if necessary
294294
if ( $field['field_type'] == 'select' || $field['field_type'] == 'radio' ) {
295295

296296
$value = array_shift( $value );
@@ -303,7 +303,7 @@ function load_value( $value, $post_id, $field ) {
303303
}
304304

305305
/**
306-
* This filter is appied to the $value before it is updated in the db
306+
* This filter is applied to the $value before it is updated in the db
307307
308308
* @param array $value The value that will be save in the database.
309309
* @param int $post_id The $post_id from which the value was loaded from.

0 commit comments

Comments
 (0)