Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions packages/interactivity/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

## Unreleased

### Deprecations

- Deprecated the `"data-wp-ignore"` directive of the Interactivity API.([#70945](https://github.com/WordPress/gutenberg/pull/70945))
It is deprecated as of WordPress 6.9 and will be removed in version 7.0.

## 6.27.0 (2025-07-23)

## 6.26.0 (2025-06-25)
Expand Down
7 changes: 6 additions & 1 deletion packages/interactivity/src/directives.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -600,7 +600,12 @@ export default () => {
}: {
element: any;
} ) => {
// Preserve the initial inner HTML.
// Shown deprecation warning
warn(
'The "data-wp-ignore" directive of the Interactivity API is deprecated since version 6.9 and will be removed in version 7.0.'
);

// Preserve the initial inner HTML
const cached = useMemo( () => innerHTML, [] );
return createElement( Type, {
dangerouslySetInnerHTML: { __html: cached },
Expand Down
Loading