Repository navigation
This release includes a security fix:
- Status Report: An unauthenticated visitor could store a script, through the
orderbyparameter, that ran when an administrator opened the Failed Queries report.
Added
$source_includesparameter toElasticsearch::get_documents(), to fetch only some fields of each document. Props @felipeelia via #4376.ep_pre_prepare_documentsaction, fired once before a batch of documents is prepared to be indexed. Props @felipeelia via #4378.- Feature settings
requires_fieldsconditions 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. comboboxfield type for feature settings. Props @felipeelia via #4381.ep.Features.ControlJS filter to render custom feature settings fields, andep_settings_field_typesfilter withElasticPress\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-errorsand in the Sync page Errors tab, and written to the PHP error log whenWP_DEBUGandWP_DEBUG_LOGare 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_sizefilter). Props @rebeccahum via #4373. - PHP warning
Undefined array key "total"when a query setstrack_total_hitstofalse. 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 --nobulkreports 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-labelof 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
orderbyparameter. 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-urifrom 3.1.7 to 3.1.8 (CVE-2026-86472). Props @ZacharyRener via #4375. - Bumped
compressionfrom 1.8.1 to 1.8.2,follow-redirectsfrom 1.16.0 to 1.16.3,http-cache-semanticsfrom 4.2.0 to 4.3.0,proxy-addrfrom 2.0.7 to 2.0.8,shell-quotefrom 1.10.0 to 1.12.0,simple-gitfrom 3.36.0 to 4.0.2, andsource-map-jsfrom 1.2.1 to 1.2.2. Props @dependabot via #4391 and #4406. - Bumped
launch-editorfrom 2.14.1 to 2.14.2,markdown-itfrom 14.3.2 to 14.3.3,postcss-selector-parserfrom 6.1.4 to 6.1.5 and from 7.1.5 to 7.1.7, andserialize-javascriptfrom 7.1.0 to 7.1.4. Props @dependabot via #4396 and #4403. - Explicit
permissionson GitHub workflows, following code scanning alerts. Props @jeffpaul via #4397.
Developer
- Pre-commit hook and
composer lintcheck 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-utilsreleases 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
@groupon 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/phpunitfrom 9.6.22 to 9.6.33,composer/composerfrom 2.10.1 to 2.11.1,league/flysystemfrom 3.29.1 to 3.36.0,phpcsstandards/phpcsutilsfrom 1.1.3 to 1.2.3,squizlabs/php_codesnifferfrom 3.13.5 to 3.13.6, andwp-coding-standards/wpcsfrom 3.1.0 to 3.4.1. Props @dependabot via #4407.
See: https://github.com/10up/ElasticPress/milestone/97?closed=1