Skip to content

Version 5.3.6

Latest

Choose a tag to compare

@felipeelia felipeelia released this 11 Nov 17:56
· 0 commits to develop since this release

This release includes a security fix:

  • Status Report: An unauthenticated visitor could store a script, through the orderby parameter, that ran when an administrator opened the Failed Queries report.

Added

  • $source_includes parameter to Elasticsearch::get_documents(), to fetch only some fields of each document. Props @felipeelia via #4376.
  • ep_pre_prepare_documents action, fired once before a batch of documents is prepared to be indexed. Props @felipeelia via #4378.
  • Feature settings requires_fields conditions accept a list of values. Props @felipeelia via #4379.
  • Feature settings field groups can be collapsible (collapsible, initialOpen) and show a status badge (badge). Props @felipeelia via #4380.
  • combobox field type for feature settings. Props @felipeelia via #4381.
  • ep.Features.Control JS filter to render custom feature settings fields, and ep_settings_field_types filter with ElasticPress\Utils\get_settings_field_types() to check the available field types. Props @felipeelia via #4381.
  • File, line, and stack trace of errors thrown while preparing documents, shown by wp elasticpress sync --show-errors and in the Sync page Errors tab, and written to the PHP error log when WP_DEBUG and WP_DEBUG_LOG are on. Props @anjulahettige via #4392.

Fixed

  • Memory exhaustion when preparing term documents for terms with a large number of objects, by fetching object IDs in chunks (filterable with the new ep_term_object_ids_chunk_size filter). Props @rebeccahum via #4373.
  • PHP warning Undefined array key "total" when a query sets track_total_hits to false. Props @renatonascalves via #4387.
  • Memory exhaustion when editing a term attached to a large number of posts, by fetching its object IDs in chunks. Props @rebeccahum via #4394.
  • Posts of child terms not being reindexed when editing a parent term, on sites where term IDs and term taxonomy IDs differ. Props @rebeccahum via #4394.
  • wp elasticpress sync --nobulk reports objects that fail to prepare as errors instead of counting them as indexed. Props @anjulahettige via #4405.
  • WooCommerce taxonomy query vars with comma-separated terms (e.g. product_cat=a,b) treated as a single slug. Props @yograj-vijay-yadav via #4401.
  • Sync starting over, or never ending, when a batch comes back empty before the offset reaches the total. Props @rebeccahum via #4408.
  • Instant Results search template not saved after a sync started from the dashboard on single sites. Props @burhandodhy via #4411.
  • HTML markup in the aria-label of Filter by Post Type and Filter by Metadata links when term counts are displayed. Props @burhandodhy via #4410.

Security

  • Escape Elasticsearch errors and query log values in the Failed Queries report of the Status Report, preventing stored cross-site scripting via the orderby parameter. Props Duc Manh, @felipeelia, and @jeffpaul via GHSA-6hx4-m9fj-4m2q.
  • Updated Node.js to v26.11.0 and the npm packages to their latest versions. Props @ZacharyRener via #4374.
  • Bumped fast-uri from 3.1.7 to 3.1.8 (CVE-2026-86472). Props @ZacharyRener via #4375.
  • Bumped compression from 1.8.1 to 1.8.2, follow-redirects from 1.16.0 to 1.16.3, http-cache-semantics from 4.2.0 to 4.3.0, proxy-addr from 2.0.7 to 2.0.8, shell-quote from 1.10.0 to 1.12.0, simple-git from 3.36.0 to 4.0.2, and source-map-js from 1.2.1 to 1.2.2. Props @dependabot via #4391 and #4406.
  • Bumped launch-editor from 2.14.1 to 2.14.2, markdown-it from 14.3.2 to 14.3.3, postcss-selector-parser from 6.1.4 to 6.1.5 and from 7.1.5 to 7.1.7, and serialize-javascript from 7.1.0 to 7.1.4. Props @dependabot via #4396 and #4403.
  • Explicit permissions on GitHub workflows, following code scanning alerts. Props @jeffpaul via #4397.

Developer

  • Pre-commit hook and composer lint check the test suite against PHP 8.2+, matching CI. Props @felipeelia via #4377.
  • Fixed the privileged e2e workflow, which now shows its result as a commit status on the pull request. Props @felipeelia via #4383, #4385, and #4386.
  • Stage elasticpress-playwright-utils releases from CI, to be approved before they are published to npm. Props @felipeelia via #4383 and #4384.
  • The e2e WP-CLI wrapper no longer loads the wp-env config, and calls api.wordpress.org, on every command. Props @felipeelia via #4395.
  • Test methods renamed to snake_case, a @group on every test, and PHPCS sniffs to keep it that way. Props @felipeelia via #4404.
  • Faster and more reliable e2e tests. Props @felipeelia via #4413.
  • Bumped phpunit/phpunit from 9.6.22 to 9.6.33, composer/composer from 2.10.1 to 2.11.1, league/flysystem from 3.29.1 to 3.36.0, phpcsstandards/phpcsutils from 1.1.3 to 1.2.3, squizlabs/php_codesniffer from 3.13.5 to 3.13.6, and wp-coding-standards/wpcs from 3.1.0 to 3.4.1. Props @dependabot via #4407.

See: https://github.com/10up/ElasticPress/milestone/97?closed=1