Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Post excerpt block removes added HTML in excerpt via block tools control #54129

Closed
itzmekhokan opened this issue Sep 2, 2023 · 1 comment
Closed
Labels
[Block] Post Excerpt Affects the Post Excerpt Block [Status] Duplicate Used to indicate that a current issue matches an existing one and can be closed

Comments

@itzmekhokan
Copy link
Contributor

Description

When added some HTML in prost excerpt block, its not display that style in frontend. For example if we add post excerpt block and after it change excerpt text style using block toolbar settings. The added style will not visible in frontend.

Because, $excerpt = wp_trim_words( $excerpt, $excerpt_length ); this wp_trim_words function remove html tags to play with excerpt length and return modified text after trim.

This issue is also mention in the ticket - https://core.trac.wordpress.org/ticket/59270

Step-by-step reproduction instructions

  1. Add Post Excerpt Block.
  2. Add some excerpt text content if there is no excerpt text rendered.
  3. Add some style for excerpt content using block toolbar and save or update post.
  4. Check frontend of the excerpt output, you will notice added style is not there for the excerpt content.

Screenshots, screen recording, code snippet

No response

Environment info

No response

Please confirm that you have searched existing issues in the repo.

Yes

Please confirm that you have tested with all plugins deactivated except Gutenberg.

Yes

@t-hamano t-hamano added the [Block] Post Excerpt Affects the Post Excerpt Block label Sep 3, 2023
@t-hamano
Copy link
Contributor

t-hamano commented Sep 3, 2023

@itzmekhokan Thanks for the report.

I would like to close this issue as I believe this is the same problem reported in #49449.

@t-hamano t-hamano closed this as not planned Won't fix, can't repro, duplicate, stale Sep 3, 2023
@t-hamano t-hamano added the [Status] Duplicate Used to indicate that a current issue matches an existing one and can be closed label Sep 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Block] Post Excerpt Affects the Post Excerpt Block [Status] Duplicate Used to indicate that a current issue matches an existing one and can be closed
Projects
None yet
Development

No branches or pull requests

2 participants