createInterpolateElement
is breaking backwards compatibility within Advanced filters
#39021
Closed
2 of 4 tasks
Labels
focus: analytics
plugin: woocommerce
Issues related to the WooCommerce Core plugin.
type: bug
The issue is a confirmed bug.
Prerequisites (mark completed items with an [x]):
Issue Description:
We are currently handling interpolation of the
title
attribute within theAdvancedFilters
. This is also something that can be extended by plugins.We recently replaced our interpolation function for this in this PR: #37967
which also requires a different syntax (
{{ select /}}
to<select />
). This is currently breaking backwards compatibility in other plugins. See fix in WC Pay for example: https://github.com/Automattic/woocommerce-payments/pull/6617/filesWe should re-introduce
interpolateComponents
when the old format is used and add a deprecation warning. Otherwise we can use the new format.It might be relatively save to replace the format on the fly with some code like this:
Acceptance criteria
The text was updated successfully, but these errors were encountered: