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

File Block: unexpected or invalid content when a link is pasted in #54700

Open
MadtownLems opened this issue Sep 21, 2023 · 4 comments
Open

File Block: unexpected or invalid content when a link is pasted in #54700

MadtownLems opened this issue Sep 21, 2023 · 4 comments
Labels
[Block] File Affects the File Block Needs Testing Needs further testing to be confirmed. [Type] Bug An existing feature does not function as intended

Comments

@MadtownLems
Copy link

Description

On one of our sites, we found a lot of "unexpected or invalid content" on File Blocks. Looking into it, we think it was caused by pasting links over the filename.

Step-by-step reproduction instructions

  1. Add a File Block
  2. Disable inline embed. The file name should now be visible and editable
  3. Paste some basic link markup as the filename, such as <a href='https://wordpress.org/'>WordPress</a> (The block preview will just show WordPress as a link.)
  4. Publish/update the post. It does so without issue.
  5. Reload the editor. You should now see that "This block contains unexpected of invalid content."

Screenshots, screen recording, code snippet

No response

Environment info

WP 6.3.1, Gutenberg 16.6.0
(Also WP 6.3.1 without Gutenberg and WP 6.2.2 without Gutenberg)

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

@Mamaduka Mamaduka added Needs Testing Needs further testing to be confirmed. [Block] File Affects the File Block labels Sep 21, 2023
@jordesign jordesign added the [Type] Bug An existing feature does not function as intended label Sep 21, 2023
@github-actions
Copy link

Hi,
This issue has gone 30 days without any activity. This means it is time for a check-in to make sure it is still relevant. If you are still experiencing this issue with the latest versions, you can help the project by responding to confirm the problem and by providing any updated reproduction steps.
Thanks for helping out.

@github-actions github-actions bot added the [Status] Stale Gives the original author opportunity to update before closing. Can be reopened as needed. label Oct 22, 2023
@MadtownLems
Copy link
Author

I've confirmed this issue is still present on WordPress Core 6.4-RC-1

@github-actions github-actions bot removed the [Status] Stale Gives the original author opportunity to update before closing. Can be reopened as needed. label Oct 24, 2023
Copy link

Hi,
This issue has gone 30 days without any activity. This means it is time for a check-in to make sure it is still relevant. If you are still experiencing this issue with the latest versions, you can help the project by responding to confirm the problem and by providing any updated reproduction steps.
Thanks for helping out.

@github-actions github-actions bot added the [Status] Stale Gives the original author opportunity to update before closing. Can be reopened as needed. label Nov 25, 2023
@MadtownLems
Copy link
Author

This means it is time for a check-in to make sure it is still relevant

Yes - the issue still exists in 6.4.1

@github-actions github-actions bot removed the [Status] Stale Gives the original author opportunity to update before closing. Can be reopened as needed. label Nov 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Block] File Affects the File Block Needs Testing Needs further testing to be confirmed. [Type] Bug An existing feature does not function as intended
Projects
None yet
Development

No branches or pull requests

3 participants