Skip to content

Only the first instance of insecure content is fixed #138

@kmgalanakis

Description

@kmgalanakis

Describe the bug

When having a post with multiple different insecure content instances, when the button to fix the first one is fixed every attempt to fix one of the other instances fails. Same for the highlighting.

Steps to Reproduce

  1. Create a post with this content
<!-- wp:image {"sizeSlug":"large"} -->
<figure class="wp-block-image size-large"><img src="http://cdn.pixabay.com/photo/2015/06/19/21/24/avenue-815297_960_720.jpg" alt=""/></figure>
<!-- /wp:image -->

<!-- wp:image {"sizeSlug":"large"} -->
<figure class="wp-block-image size-large"><img src="https://cdn.pixabay.com/photo/2016/09/07/16/19/pile-1651945_1280.jpg" alt=""/></figure>
<!-- /wp:image -->

<!-- wp:image {"sizeSlug":"large"} -->
<figure class="wp-block-image size-large"><img src="https://cdn.pixabay.com/photo/2014/08/15/11/29/beach-418742_1280.jpg" alt=""/></figure>
<!-- /wp:image -->

<!-- wp:paragraph -->
<p>aaa</p>
<!-- /wp:paragraph -->
  1. Try to save the post
  2. Click the button to fix the first one, it gets fixed without issues.
  3. Click the button to fix the second and the third one. Each attempt should fail to fix the content without any visible errors

Screenshots, screen recording, code snippet

No response

Environment information

No response

WordPress information

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

Labels

type:bugSomething isn't working.

Type

No type

Projects

Status

No status

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions