Skip to content

Commit 3612564

Browse files
authored
Transformer: Remove embed filter once done. (#1388)
* Transformer: Remove embed filter once done. Fixes #1387. * Add ticket reference * Let's not unit test this
1 parent 3f60a9e commit 3612564

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1414

1515
### Fixed
1616

17-
* Remove `activitypub_reply_block` Filter after Activity-JSON is rendered, to not affect the HTML representation.
17+
* Remove `activitypub_reply_block` filter after Activity-JSON is rendered, to not affect the HTML representation.
18+
* Remove `render_block_core/embed` filter after Activity-JSON is rendered, to not affect the HTML representation.
1819

1920
## [5.3.1] - 2025-02-26
2021

includes/transformer/class-post.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -531,6 +531,7 @@ protected function get_content() {
531531
// Don't need these anymore, should never appear in a post.
532532
Shortcodes::unregister();
533533

534+
\remove_filter( 'render_block_core/embed', array( $this, 'revert_embed_links' ) );
534535
\remove_filter( 'activitypub_reply_block', '__return_empty_string' );
535536

536537
return $content;

readme.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,8 @@ For reasons of data protection, it is not possible to see the followers of other
133133

134134
* Changed: Bumped minimum required WordPress version to 6.4.
135135
* Changed: Use a later hook for Posts to get published to the Outbox, to get sure all `post_meta`s and `taxonomy`s are set stored properly.
136-
* Fixed: Remove `activitypub_reply_block` Filter after Activity-JSON is rendered, to not affect the HTML representation.
136+
* Fixed: Remove `activitypub_reply_block` filter after Activity-JSON is rendered, to not affect the HTML representation.
137+
* Fixed: Remove `render_block_core/embed` filter after Activity-JSON is rendered, to not affect the HTML representation.
137138

138139
= 5.3.1 =
139140

0 commit comments

Comments
 (0)