Possible Bug: Duplicated Values in Attributes for Images
-
Hello – foremost, thank you for this helpful plugin!
I’ve experienced a possible bug when attempting to apply attributes to IMAGE blocks.
I added the following attributes to a paragraph block:
- data-rellax-percentage (with a value of “0.5”)
- data-rellax-speed (with a value of “1”)
And the
<p>
tag was accurately modified to be<p data-rellax-speed="1" data-rellax-percentage="0.5">
on the front-end.Then, I added the following attributes to an image block:
- data-rellax-speed (with a value of “1”)
- sample-attribute (with a value of “123”)
But, on the front-end, the
<figure>
tag had duplicate instance of each value, resulting in<figure class="wp-block-image size-large" sample-attribute="123 123" data-rellax-speed="1 1">
I performed this test on a basic install of WordPress (latest) with the “Twenty Twenty-Two” theme (latest) after experiencing the same issue on another site. (both sites are local, so I can’t provide a live example)
Thanks again for your work on this appreciated plugin!
- The topic ‘Possible Bug: Duplicated Values in Attributes for Images’ is closed to new replies.