From 81727efa1f3ca90d91829cc47e42737bfdb6955e Mon Sep 17 00:00:00 2001 From: Lucas Grzegorczyk Date: Mon, 13 May 2024 12:27:18 +0200 Subject: [PATCH 1/8] Initialise $fields before returning it --- includes/classes/StatusReport/IndexableContent.php | 1 + 1 file changed, 1 insertion(+) diff --git a/includes/classes/StatusReport/IndexableContent.php b/includes/classes/StatusReport/IndexableContent.php index e9f12fc8db..311d0a446c 100644 --- a/includes/classes/StatusReport/IndexableContent.php +++ b/includes/classes/StatusReport/IndexableContent.php @@ -93,6 +93,7 @@ protected function get_post_count_group() : array { $post_types = $post_indexable->get_indexable_post_types(); $post_stati = $post_indexable->get_indexable_post_status(); + $fields = []; foreach ( $post_types as $post_type ) { $post_type_obj = get_post_type_object( $post_type ); From aacf689ca5ef85a58c77bcc4e2bf5b98b492f355 Mon Sep 17 00:00:00 2001 From: Lucas Grzegorczyk Date: Mon, 13 May 2024 12:27:47 +0200 Subject: [PATCH 2/8] Initialise $limited before using it in condition --- includes/classes/StatusReport/IndexableContent.php | 1 + 1 file changed, 1 insertion(+) diff --git a/includes/classes/StatusReport/IndexableContent.php b/includes/classes/StatusReport/IndexableContent.php index 311d0a446c..afd9434389 100644 --- a/includes/classes/StatusReport/IndexableContent.php +++ b/includes/classes/StatusReport/IndexableContent.php @@ -135,6 +135,7 @@ protected function get_post_meta_fields() : array { $fields = []; $all_keys = []; $post_count_limit = 88000; + $limited = false; foreach ( $post_types as $post_type ) { $post_type_obj = get_post_type_object( $post_type ); From f6515d5efb22ca993cd7fbdae965cc93a2e13553 Mon Sep 17 00:00:00 2001 From: Felipe Elia Date: Thu, 23 May 2024 15:23:58 -0300 Subject: [PATCH 3/8] Update Support Article URLs --- README.md | 5 ++--- assets/js/features/index.js | 2 +- assets/js/sync-ui/components/controls.js | 2 +- assets/js/sync/src/hooks.js | 4 ++-- assets/js/synonyms/components/groups/replacements.js | 2 +- docs/compatibility.md | 2 +- docs/debugging.md | 2 +- docs/development.md | 2 +- docs/feature-api.md | 2 +- docs/features.md | 2 +- docs/indexables.md | 2 +- docs/indexing-process.md | 2 +- docs/install.md | 2 +- docs/react.md | 2 +- docs/theme-integration.md | 2 +- includes/classes/AdminNotices.php | 8 ++++---- includes/classes/ElasticsearchErrorInterpreter.php | 6 +++--- includes/classes/Feature/Autosuggest/Autosuggest.php | 6 +++--- includes/classes/Feature/Comments/Comments.php | 2 +- includes/classes/Feature/DidYouMean/DidYouMean.php | 6 +++--- includes/classes/Feature/Documents/Documents.php | 2 +- includes/classes/Feature/Facets/Facets.php | 2 +- .../classes/Feature/InstantResults/InstantResults.php | 4 ++-- .../Feature/ProtectedContent/ProtectedContent.php | 2 +- includes/classes/Feature/RelatedPosts/RelatedPosts.php | 6 +++--- includes/classes/Feature/Search/Search.php | 2 +- .../classes/Feature/SearchOrdering/SearchOrdering.php | 2 +- includes/classes/Feature/Terms/Terms.php | 2 +- .../classes/Feature/WooCommerce/OrdersAutosuggest.php | 2 +- includes/classes/Feature/WooCommerce/WooCommerce.php | 2 +- includes/classes/IndexHelper.php | 2 +- includes/classes/Upgrades.php | 10 +++++----- readme.txt | 2 +- tests/php/TestAdminNotices.php | 4 ++-- tests/php/TestElasticsearchErrorInterpreter.php | 4 ++-- 35 files changed, 55 insertions(+), 56 deletions(-) diff --git a/README.md b/README.md index 6f9169202e..ea485b3268 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ [![Support Level](https://img.shields.io/badge/support-active-green.svg)](#support-level) [![Tests Status](https://github.com/10up/ElasticPress/actions/workflows/test.yml/badge.svg?branch=develop)](https://github.com/10up/ElasticPress) [![Release Version](https://img.shields.io/github/release/10up/ElasticPress.svg)](https://github.com/10up/ElasticPress/releases/latest) ![WordPress tested up to version](https://img.shields.io/wordpress/plugin/tested/elasticpress?label=WordPress) [![MIT License](https://img.shields.io/github/license/10up/ElasticPress.svg)](https://github.com/10up/ElasticPress/blob/develop/LICENSE.md) -* Check out the [ElasticPress Docs](https://elasticpress.zendesk.com/hc/en-us/sections/16550523637901-Developer-Documentation) +* Check out the [ElasticPress Docs](https://www.elasticpress.io/documentation/) **Please note:** as of ElasticPress 4.0.0 `trunk` is the stable branch, built assets were removed from the `develop` branch, a ZIP with the plugin and its built assets are available on the [GitHub Releases page](https://github.com/10up/ElasticPress/releases), and will include a build script should you want to build assets from a branch. As such, please ensure you have updated any references you have from `master` to `trunk` or to GitHub releases depending on whether you require built assets or not. @@ -14,8 +14,7 @@ ElasticPress, a fast and flexible search and query engine for WordPress, enables ## Documentation -* [Docs website ☞](https://elasticpress.zendesk.com/hc/en-us/sections/16550523637901-Developer-Documentation) -* [Support site with FAQs and tutorials ☞](https://elasticpress.zendesk.com/hc/en-us) +* [Support site with FAQs, tutorials, and docs ☞](https://www.elasticpress.io/documentation/) * [Security Policy ☞](https://github.com/10up/ElasticPress/blob/develop/SECURITY.md) ## Requirements and Compatibility diff --git a/assets/js/features/index.js b/assets/js/features/index.js index 1c084f21a3..235da02e88 100644 --- a/assets/js/features/index.js +++ b/assets/js/features/index.js @@ -52,7 +52,7 @@ const App = () => ( // eslint-disable-next-line jsx-a11y/anchor-has-content, jsx-a11y/control-has-associated-label ), diff --git a/assets/js/sync-ui/components/controls.js b/assets/js/sync-ui/components/controls.js index dba138e957..9e4a77e489 100644 --- a/assets/js/sync-ui/components/controls.js +++ b/assets/js/sync-ui/components/controls.js @@ -77,7 +77,7 @@ export default () => { )}