From 0c089361df6e97733f922b2c15dea776915fa5f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Viktor=20Sz=C3=A9pe?= Date: Wed, 1 Nov 2023 20:41:20 +0000 Subject: [PATCH] Fix typos --- CHANGELOG.md | 4 ++-- assets/js/autosuggest/index.js | 4 ++-- .../facets/common/components/range-filter.js | 2 +- .../components/facets/post-type-facet.js | 4 ++-- .../components/facets/price-range-facet.js | 4 ++-- .../components/facets/search-term-facet.js | 4 ++-- .../components/facets/taxonomy-terms-facet.js | 4 ++-- .../instant-results/components/layout/results.js | 2 +- .../components/tools/active-constraints.js | 2 +- .../components/tools/sidebar-toggle.js | 2 +- .../js/instant-results/components/tools/sort.js | 4 ++-- assets/js/instant-results/hooks.js | 2 +- assets/js/synonyms/components/SynonymsEditor.js | 6 +++--- assets/js/synonyms/utils.js | 2 +- assets/js/weighting/components/group.js | 4 ++-- assets/js/weighting/provider.js | 2 +- .../admin/orders/app/components/combobox.js | 4 ++-- assets/js/woocommerce/admin/orders/hooks.js | 2 +- includes/classes/DeprecatedCommand.php | 2 +- includes/classes/Elasticsearch.php | 2 +- includes/classes/Feature.php | 2 +- .../classes/Feature/Facets/Types/Meta/Block.php | 2 +- .../Feature/Facets/Types/MetaRange/Block.php | 2 +- .../Feature/Facets/Types/Taxonomy/Block.php | 2 +- includes/classes/Feature/Search/Weighting.php | 2 +- includes/classes/Features.php | 2 +- includes/classes/Indexable/Comment/Comment.php | 2 +- includes/classes/Indexable/Post/Post.php | 2 +- includes/classes/Indexable/Post/SyncManager.php | 2 +- includes/classes/Indexable/Term/SyncManager.php | 2 +- includes/classes/SyncManager.php | 2 +- readme.txt | 4 ++-- .../integration/features/instant-results.cy.js | 2 +- tests/php/bootstrap.php | 2 +- tests/php/indexables/TestPost.php | 16 ++++++++-------- tests/php/indexables/TestTerm.php | 4 ++-- 36 files changed, 56 insertions(+), 56 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5a0b9fc3fc..b052ea286b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1254,7 +1254,7 @@ Enhancements: * Refactor CLI indexing code for simplicity. * Limit indexed Protected Content post types removing `revision`, `oembed_cache`, `custom_css`, `user_request`, `customize_changeset`, and `wp_block`. * Cast taxonomy slug to array in case it's already an array in `WP_Query`. -* Remove unnecessary usage of `--network-wide` CLI paramter. +* Remove unnecessary usage of `--network-wide` CLI parameter. * Add name, nickname, and display name to fields used for user search. * Add `clear-transient` WP CLI command. * Don't make product categories facetable when WooCommerce feature is not active. Props [mustafauysal](https://github.com/mustafauysal). @@ -1635,7 +1635,7 @@ This is a bug fix release with some filter additions. - WooCommerce feature breaking image search in media library. Props [@Ritesh-patel](https://github.com/Ritesh-patel) - WooCommerce order search broken - Stop the insansity made private. Props [@sc0ttclark](https://github.com/sc0ttclark) -- Multidimensional meta querys. Props [@Ritesh-patel](https://github.com/Ritesh-patel). +- Multidimensional meta queries. Props [@Ritesh-patel](https://github.com/Ritesh-patel). - Properly show bulk index errors in WP-CLI - Update ep_delete_post, include $post_type argument. Props [@Ritesh-patel](https://github.com/Ritesh-patel) - post_type product getting set in any WP_Query if tax_query is provided in WooCommerce feature. Props [@Ritesh-patel](https://github.com/Ritesh-patel) diff --git a/assets/js/autosuggest/index.js b/assets/js/autosuggest/index.js index 51358caef5..d44e623bfa 100644 --- a/assets/js/autosuggest/index.js +++ b/assets/js/autosuggest/index.js @@ -25,7 +25,7 @@ const { epas } = window; if (epas.endpointUrl && epas.endpointUrl !== '') { init(); - // Publically expose API + // Publicly expose API window.epasAPI = { hideAutosuggestBox, updateAutosuggestBox, @@ -594,7 +594,7 @@ function init() { * @param {Node} input - search input field */ const fetchResults = async (input) => { - // retrieves the PHP-genereated query to pass to ElasticSearch + // retrieves the PHP-generated query to pass to ElasticSearch const queryJSON = getJsonQuery(); if (queryJSON.error) { diff --git a/assets/js/blocks/facets/common/components/range-filter.js b/assets/js/blocks/facets/common/components/range-filter.js index 31405b59f6..b945b20c96 100644 --- a/assets/js/blocks/facets/common/components/range-filter.js +++ b/assets/js/blocks/facets/common/components/range-filter.js @@ -18,7 +18,7 @@ import { __ } from '@wordpress/i18n'; * @param {number} props.max Maximum value. * @param {string} props.prefix Value prefix. * @param {string} props.suffix Value suffix. - * @param {number[]} props.value Currnet value. + * @param {number[]} props.value Current value. * @returns {WPElement} Component element. */ export default ({ clearUrl, min, max, prefix, suffix, value, ...props }) => { diff --git a/assets/js/instant-results/components/facets/post-type-facet.js b/assets/js/instant-results/components/facets/post-type-facet.js index a99c0ef173..a04f714120 100644 --- a/assets/js/instant-results/components/facets/post-type-facet.js +++ b/assets/js/instant-results/components/facets/post-type-facet.js @@ -11,7 +11,7 @@ import { useApiSearch } from '../../../api-search'; import { postTypeLabels } from '../../config'; import CheckboxList from '../common/checkbox-list'; import Panel from '../common/panel'; -import { ActiveContraint } from '../tools/active-constraints'; +import { ActiveConstraint } from '../tools/active-constraints'; /** * Post type facet component. @@ -100,7 +100,7 @@ export default ({ defaultIsOpen, label }) => { /> {selectedPostTypes.map((value) => ( - onClear(value)} diff --git a/assets/js/instant-results/components/facets/price-range-facet.js b/assets/js/instant-results/components/facets/price-range-facet.js index fd52d1ecfa..aed619c2fd 100644 --- a/assets/js/instant-results/components/facets/price-range-facet.js +++ b/assets/js/instant-results/components/facets/price-range-facet.js @@ -12,7 +12,7 @@ import { currencyCode } from '../../config'; import { formatPrice } from '../../utilities'; import Panel from '../common/panel'; import RangeSlider from '../common/range-slider'; -import { ActiveContraint } from '../tools/active-constraints'; +import { ActiveConstraint } from '../tools/active-constraints'; /** * Price range facet. @@ -137,7 +137,7 @@ export default ({ defaultIsOpen, label }) => { {maxArg !== null && minArg !== null && ( - { onChange={onChange} /> {searchTerm && ( - { {selectedTerms.map( (value) => labels?.[value] && ( - onClear(value)} diff --git a/assets/js/instant-results/components/layout/results.js b/assets/js/instant-results/components/layout/results.js index 0f7cd912af..51c326c76b 100644 --- a/assets/js/instant-results/components/layout/results.js +++ b/assets/js/instant-results/components/layout/results.js @@ -1,5 +1,5 @@ /** - * Internal depenencies. + * Internal dependencies. */ import { useEffect, useRef, WPElement } from '@wordpress/element'; import { _n, sprintf, __ } from '@wordpress/i18n'; diff --git a/assets/js/instant-results/components/tools/active-constraints.js b/assets/js/instant-results/components/tools/active-constraints.js index 6e972e776b..1486e59531 100644 --- a/assets/js/instant-results/components/tools/active-constraints.js +++ b/assets/js/instant-results/components/tools/active-constraints.js @@ -23,7 +23,7 @@ const ref = createRef(); * @param {Function} props.onClick Click handler. * @returns {WPElement} Element. */ -export const ActiveContraint = ({ label, onClick }) => { +export const ActiveConstraint = ({ label, onClick }) => { if (!ref.current) { return null; } diff --git a/assets/js/instant-results/components/tools/sidebar-toggle.js b/assets/js/instant-results/components/tools/sidebar-toggle.js index 21b92b0ad7..a8e66c9174 100644 --- a/assets/js/instant-results/components/tools/sidebar-toggle.js +++ b/assets/js/instant-results/components/tools/sidebar-toggle.js @@ -1,5 +1,5 @@ /** - * WordPress deendencies. + * WordPress dependencies. */ import { WPElement } from '@wordpress/element'; import { chevronDown, chevronUp, Icon } from '@wordpress/icons'; diff --git a/assets/js/instant-results/components/tools/sort.js b/assets/js/instant-results/components/tools/sort.js index b211c79882..22d1add8ee 100644 --- a/assets/js/instant-results/components/tools/sort.js +++ b/assets/js/instant-results/components/tools/sort.js @@ -1,11 +1,11 @@ /** - * WordPress deendencies. + * WordPress dependencies. */ import { useMemo, WPElement } from '@wordpress/element'; import { __ } from '@wordpress/i18n'; /** - * Internal deendencies. + * Internal dependencies. */ import { useApiSearch } from '../../../api-search'; import { sortOptions } from '../../config'; diff --git a/assets/js/instant-results/hooks.js b/assets/js/instant-results/hooks.js index 236d63653d..53b0e8e917 100644 --- a/assets/js/instant-results/hooks.js +++ b/assets/js/instant-results/hooks.js @@ -4,7 +4,7 @@ import { useCallback, useRef } from '@wordpress/element'; /** - * Get debounced version of a function that only runs a given ammount of time + * Get debounced version of a function that only runs a given amount of time * after the last time it was run. * * @param {Function} callback Function to debounce. diff --git a/assets/js/synonyms/components/SynonymsEditor.js b/assets/js/synonyms/components/SynonymsEditor.js index 16de25e638..1e0af57d22 100644 --- a/assets/js/synonyms/components/SynonymsEditor.js +++ b/assets/js/synonyms/components/SynonymsEditor.js @@ -7,7 +7,7 @@ import { useContext, useEffect, WPElement } from '@wordpress/element'; * Internal dependencies. */ import { State, Dispatch } from '../context'; -import AlterativesEditor from './editors/AlternativesEditor'; +import AlternativesEditor from './editors/AlternativesEditor'; import SetsEditor from './editors/SetsEditor'; import SolrEditor from './editors/SolrEditor'; @@ -95,10 +95,10 @@ const SynonymsEditor = () => {

{setsDescription}

-
+

{`${alternativesTitle} (${alternatives.length})`}

{alternativesDescription}

- +
)} diff --git a/assets/js/synonyms/utils.js b/assets/js/synonyms/utils.js index ae00c59c71..a75b0b1c41 100644 --- a/assets/js/synonyms/utils.js +++ b/assets/js/synonyms/utils.js @@ -74,7 +74,7 @@ const reduceSolrToState = (solr, currentState) => { * * @param {string} value The value. * @param {boolean} primary Whether it's a primary. - * @returns {object} Formated token + * @returns {object} Formatted token */ const formatToken = (value, primary = false) => { return { diff --git a/assets/js/weighting/components/group.js b/assets/js/weighting/components/group.js index f3cd3dc3ff..5e139e29bc 100644 --- a/assets/js/weighting/components/group.js +++ b/assets/js/weighting/components/group.js @@ -13,7 +13,7 @@ import { useWeightingSettings } from '../provider'; import Field from './field'; /** - * Post type propertes component. + * Post type properties component. * * @param {object} props Component props. * @param {string} props.group Group. @@ -42,7 +42,7 @@ export default ({ group, postType }) => { const isMetadata = group === 'ep_metadata'; /** - * Fields that belond to this group. + * Fields that belong to this group. */ const defaultFields = useMemo(() => fields.filter((f) => f.group === group), [fields, group]); diff --git a/assets/js/weighting/provider.js b/assets/js/weighting/provider.js index 8fb37f2473..e55b8e0d55 100644 --- a/assets/js/weighting/provider.js +++ b/assets/js/weighting/provider.js @@ -42,7 +42,7 @@ export const WeightingSettingsProvider = ({ * Handle data change. * * @param {string} postType Post type to update. - * @param {Array} values New valus. + * @param {Array} values New values. * @returns {void} */ const setWeightingForPostType = (postType, values) => { diff --git a/assets/js/woocommerce/admin/orders/app/components/combobox.js b/assets/js/woocommerce/admin/orders/app/components/combobox.js index 610dfb0ce0..fc5ffaa891 100644 --- a/assets/js/woocommerce/admin/orders/app/components/combobox.js +++ b/assets/js/woocommerce/admin/orders/app/components/combobox.js @@ -1,5 +1,5 @@ /** - * WordPress depdendencies. + * WordPress dependencies. */ import { ReactElement, useCallback, useEffect, useMemo, useState } from '@wordpress/element'; import { _n, sprintf } from '@wordpress/i18n'; @@ -24,7 +24,7 @@ export default ({ children, id, isBusy, onSelect, ...props }) => { /** * Active descendant ID. * - * @returns {string|null} Actve descendant id. + * @returns {string|null} Active descendant id. */ const activeDescendant = useMemo(() => { return children[selected] ? children[selected].props.id : null; diff --git a/assets/js/woocommerce/admin/orders/hooks.js b/assets/js/woocommerce/admin/orders/hooks.js index 236d63653d..53b0e8e917 100644 --- a/assets/js/woocommerce/admin/orders/hooks.js +++ b/assets/js/woocommerce/admin/orders/hooks.js @@ -4,7 +4,7 @@ import { useCallback, useRef } from '@wordpress/element'; /** - * Get debounced version of a function that only runs a given ammount of time + * Get debounced version of a function that only runs a given amount of time * after the last time it was run. * * @param {Function} callback Function to debounce. diff --git a/includes/classes/DeprecatedCommand.php b/includes/classes/DeprecatedCommand.php index 9df5970eea..f838d8b11a 100644 --- a/includes/classes/DeprecatedCommand.php +++ b/includes/classes/DeprecatedCommand.php @@ -1,6 +1,6 @@ ', esc_url( plugins_url( '/images/logo-elasticpress-io.svg', EP_FILE ) ) ); + return sprintf( '', esc_url( plugins_url( '/images/logo-elasticpress-io.svg', EP_FILE ) ) ); } /** diff --git a/includes/classes/Feature/Facets/Types/Meta/Block.php b/includes/classes/Feature/Facets/Types/Meta/Block.php index 8e3039bfd4..6508f12027 100644 --- a/includes/classes/Feature/Facets/Types/Meta/Block.php +++ b/includes/classes/Feature/Facets/Types/Meta/Block.php @@ -20,7 +20,7 @@ */ class Block extends \ElasticPress\Feature\Facets\Block { /** - * Hook block funcionality. + * Hook block functionality. */ public function setup() { add_action( 'init', [ $this, 'register_block' ] ); diff --git a/includes/classes/Feature/Facets/Types/MetaRange/Block.php b/includes/classes/Feature/Facets/Types/MetaRange/Block.php index a1adf56f7e..ebb184b6b0 100644 --- a/includes/classes/Feature/Facets/Types/MetaRange/Block.php +++ b/includes/classes/Feature/Facets/Types/MetaRange/Block.php @@ -19,7 +19,7 @@ */ class Block extends \ElasticPress\Feature\Facets\Block { /** - * Hook block funcionality. + * Hook block functionality. */ public function setup() { add_action( 'init', [ $this, 'register_block' ] ); diff --git a/includes/classes/Feature/Facets/Types/Taxonomy/Block.php b/includes/classes/Feature/Facets/Types/Taxonomy/Block.php index 1023be9bfa..e559e9546d 100644 --- a/includes/classes/Feature/Facets/Types/Taxonomy/Block.php +++ b/includes/classes/Feature/Facets/Types/Taxonomy/Block.php @@ -20,7 +20,7 @@ */ class Block extends \ElasticPress\Feature\Facets\Block { /** - * Hook block funcionality. + * Hook block functionality. */ public function setup() { add_action( 'init', [ $this, 'register_block' ] ); diff --git a/includes/classes/Feature/Search/Weighting.php b/includes/classes/Feature/Search/Weighting.php index 9f08482c00..a4fe8cabfd 100644 --- a/includes/classes/Feature/Search/Weighting.php +++ b/includes/classes/Feature/Search/Weighting.php @@ -591,7 +591,7 @@ public function post_type_has_fields( $post_type, $args = [] ) { * @hook ep_weighting_configuration_for_search * @param {array} $weight_config Current weight config * @param {array} $args WP Query arguments - * @return {array} New configutation + * @return {array} New configuration */ $weight_config = apply_filters( 'ep_weighting_configuration_for_search', $weight_config, $args ); diff --git a/includes/classes/Features.php b/includes/classes/Features.php index 2472b333f0..f56da52646 100644 --- a/includes/classes/Features.php +++ b/includes/classes/Features.php @@ -339,7 +339,7 @@ public function setup_features() { } /** - * Return currnt features settings + * Return current features settings * * @since 5.0.0 * @return false|array diff --git a/includes/classes/Indexable/Comment/Comment.php b/includes/classes/Indexable/Comment/Comment.php index 8bd5b46ba9..70a433e91b 100644 --- a/includes/classes/Indexable/Comment/Comment.php +++ b/includes/classes/Indexable/Comment/Comment.php @@ -101,7 +101,7 @@ public function format_args( $query_vars ) { /** * Support `paged` query var * - * If `offset` is used, that takes precendence + * If `offset` is used, that takes precedence * over this. */ if ( isset( $query_vars['paged'] ) && empty( $query_vars['offset'] ) && $query_vars['paged'] > 1 ) { diff --git a/includes/classes/Indexable/Post/Post.php b/includes/classes/Indexable/Post/Post.php index e1e9e124e3..91306985f7 100644 --- a/includes/classes/Indexable/Post/Post.php +++ b/includes/classes/Indexable/Post/Post.php @@ -778,7 +778,7 @@ private function get_formatted_term( \WP_Term $term, int $post_id ) : array { } /** - * Retreives term order for the object/term_taxonomy_id combination + * Retrieves term order for the object/term_taxonomy_id combination * * @param int $term_taxonomy_id Term Taxonomy ID * @param int $object_id Post ID diff --git a/includes/classes/Indexable/Post/SyncManager.php b/includes/classes/Indexable/Post/SyncManager.php index 254e555f60..a5feafcaa0 100644 --- a/includes/classes/Indexable/Post/SyncManager.php +++ b/includes/classes/Indexable/Post/SyncManager.php @@ -138,7 +138,7 @@ public function maybe_delete_meta_for_all( $check, $object_id, $meta_key, $meta_ * Filter to allow cron and WP CLI processes to index/delete documents * * @param boolean $bypass The current filtered value - * @return boolean Boolean indicating if permission checking should be bypased or not + * @return boolean Boolean indicating if permission checking should be bypassed or not * @since 3.6.0 */ public function filter_bypass_permission_checks_for_machines( $bypass ) { diff --git a/includes/classes/Indexable/Term/SyncManager.php b/includes/classes/Indexable/Term/SyncManager.php index 64491b567b..bf170f6d80 100644 --- a/includes/classes/Indexable/Term/SyncManager.php +++ b/includes/classes/Indexable/Term/SyncManager.php @@ -213,7 +213,7 @@ public function action_sync_on_delete( $term_id ) { } /** - * Enqueue sync of children terms in hierchy when deleting parent. Children terms will be reasigned to + * Enqueue sync of children terms in hierarchy when deleting parent. Children terms will be reasigned to * a different parent and we want to reflect that change in ElasticSearch * * @param int $term_id Term ID. diff --git a/includes/classes/SyncManager.php b/includes/classes/SyncManager.php index 4a6fdfe7b7..e07994adb8 100644 --- a/includes/classes/SyncManager.php +++ b/includes/classes/SyncManager.php @@ -43,7 +43,7 @@ public function __construct( $indexable_slug ) { if ( defined( 'EP_SYNC_CHUNK_LIMIT' ) && is_numeric( EP_SYNC_CHUNK_LIMIT ) ) { /** * We also sync when we exceed Chunk limit set. - * This is sometimes useful when posts are generated programatically. + * This is sometimes useful when posts are generated programmatically. */ add_action( 'ep_after_add_to_queue', [ $this, 'index_sync_on_chunk_limit' ] ); } diff --git a/readme.txt b/readme.txt index a02539c1b6..15a1a18a11 100644 --- a/readme.txt +++ b/readme.txt @@ -1398,7 +1398,7 @@ __Enhancements:__ * Refactor CLI indexing code for simplicity. * Limit indexed Protected Content post types removing `revision`, `oembed_cache`, `custom_css`, `user_request`, `customize_changeset`, and `wp_block`. * Cast taxonomy slug to array in case it's already an array in `WP_Query`. -* Remove unnecessary usage of `--network-wide` CLI paramter. +* Remove unnecessary usage of `--network-wide` CLI parameter. * Add name, nickname, and display name to fields used for user search. * Add `clear-transient` WP CLI command. * Don't make product categories facetable when WooCommerce feature is not active. Props [mustafauysal](https://github.com/mustafauysal). @@ -1767,7 +1767,7 @@ We've bumped the minimum Elasticsearch version to 1.7 (although we strongly reco * WooCommerce feature breaking image search in media library. Props [Ritesh-patel](https://github.com/Ritesh-patel) * WooCommerce order search broken * Stop the insansity made private. Props [sc0ttclark](https://github.com/sc0ttclark) -* Fix multidimensional meta querys. Props [Ritesh-patel](https://github.com/Ritesh-patel). +* Fix multidimensional meta queries. Props [Ritesh-patel](https://github.com/Ritesh-patel). * Properly show bulk index errors in WP-CLI * Update ep_delete_post, include $post_type argument. Props [Ritesh-patel](https://github.com/Ritesh-patel) * Fix post_type product getting set in any WP_Query if tax_query is provided in WooCommerce feature. Props [Ritesh-patel](https://github.com/Ritesh-patel) diff --git a/tests/cypress/integration/features/instant-results.cy.js b/tests/cypress/integration/features/instant-results.cy.js index fcfec06190..999c808eb9 100644 --- a/tests/cypress/integration/features/instant-results.cy.js +++ b/tests/cypress/integration/features/instant-results.cy.js @@ -143,7 +143,7 @@ describe('Instant Results Feature', { tags: '@slow' }, () => { cy.get('@searchBlock').find('.wp-block-search__input').type('blog'); cy.get('@searchBlock').find('.wp-block-search__button').click(); - cy.get('.ep-search-modal').as('searchModal').should('be.visible'); // Should be visible immediatly + cy.get('.ep-search-modal').as('searchModal').should('be.visible'); // Should be visible immediately cy.get('@searchModal') .find('.ep-search-results__title') .contains('Loading results'); diff --git a/tests/php/bootstrap.php b/tests/php/bootstrap.php index 96cef746d6..b04372f270 100644 --- a/tests/php/bootstrap.php +++ b/tests/php/bootstrap.php @@ -19,7 +19,7 @@ $_SERVER['REMOTE_ADDR'] = '127.0.0.1'; /** - * Make sure we only test on 1 shard because any more will lead to inconsitent results + * Make sure we only test on 1 shard because any more will lead to inconsistent results * * @since 3.0 */ diff --git a/tests/php/indexables/TestPost.php b/tests/php/indexables/TestPost.php index 412e9936b5..0a5bf7f02f 100644 --- a/tests/php/indexables/TestPost.php +++ b/tests/php/indexables/TestPost.php @@ -6896,7 +6896,7 @@ public function parseOrderbyMetaDataProvider() { * Test the parse_orderby_meta_fields() method when dealing with `'meta_value*'` and `'meta_key'` parameters * * @param string $meta_value_type Meta value type (as in WP) - * @param string $es_type Meta valye type in Elasticsearch + * @param string $es_type Meta value type in Elasticsearch * @param array $meta_values Meta values for post creation * @since 4.6.0 * @dataProvider parseOrderbyMetaDataProvider @@ -6944,7 +6944,7 @@ public function testParseOrderbyMetaValueParams( $meta_value_type, $es_type, $me * Test the parse_orderby_meta_fields() method when dealing with `'meta_value*'` parameters * * @param string $meta_value_type Meta value type (as in WP) - * @param string $es_type Meta valye type in Elasticsearch + * @param string $es_type Meta value type in Elasticsearch * @since 4.6.0 * @dataProvider parseOrderbyMetaDataProvider * @group post @@ -6986,7 +6986,7 @@ public function testParseOrderbyMetaValueWithoutMetaKeyParams( $meta_value_type, * Test the parse_orderby_meta_fields() method when dealing with named meta queries * * @param string $meta_value_type Meta value type (as in WP) - * @param string $es_type Meta valye type in Elasticsearch + * @param string $es_type Meta value type in Elasticsearch * @since 4.6.0 * @dataProvider parseOrderbyMetaDataProvider * @group post @@ -7978,7 +7978,7 @@ public function testGetSearchAlgorithm() { $this->assertSame( $version_40, $search_algorithm ); /** - * Test setting a diffent algorithm through the `ep_search_algorithm_version` filter + * Test setting a different algorithm through the `ep_search_algorithm_version` filter */ $version_35 = \ElasticPress\SearchAlgorithms::factory()->get( '3.5' ); @@ -8177,7 +8177,7 @@ public function testExcludeFromSearchQueryBypassFilter() { ); $this->ep_factory->post->create( array( - 'post_content' => 'exlcude from search', + 'post_content' => 'exclude from search', 'meta_input' => array( 'ep_exclude_from_search' => true ), ) ); @@ -8223,7 +8223,7 @@ public function testExcludeFromSearchQuery() { ); $this->ep_factory->post->create( array( - 'post_content' => 'exlcude from search', + 'post_content' => 'exclude from search', 'meta_input' => array( 'ep_exclude_from_search' => true ), ) ); @@ -8254,7 +8254,7 @@ public function testMetaValueNotSet() { ); $post_ids[1] = $this->ep_factory->post->create( array( - 'post_content' => 'exlcude from search', + 'post_content' => 'exclude from search', 'meta_input' => array( 'ep_exclude_from_search' => true ), ) ); @@ -8343,7 +8343,7 @@ function( $fields ) { /** * Test get_the_excerpt() has HTML tags when highlight_excerpt is enabled. */ - public function testExcerptHasHiglightHTMLTags() { + public function testExcerptHasHighlightHTMLTags() { ElasticPress\Features::factory()->update_feature( 'search', diff --git a/tests/php/indexables/TestTerm.php b/tests/php/indexables/TestTerm.php index a368ec196f..725196123f 100644 --- a/tests/php/indexables/TestTerm.php +++ b/tests/php/indexables/TestTerm.php @@ -317,7 +317,7 @@ public function testTermQueryNumber() { } /** - * Test a term query get paramater. + * Test a term query get parameter. * * @since 3.3 * @group term @@ -368,7 +368,7 @@ public function testTermQueryGet() { } /** - * Test a term query object ids paramater + * Test a term query object ids parameter * * @since 3.3 * @group term