render.php Incompatibility
-
A recent update has caused an issue with rendered html from a custom block. The output looks like it’s now passing through the wpauotp() function. Or at least the end result is the same. Below are examples
Correct
<div role="row" class="butler-icon-links icon-1 academic-advising-icon">
<div class="favorite-tooltip-container">
<span role="gridcell" class="favorite-icon" data-name="academic-advising" data-id="1942">
<span class="butler-icon bi-paw-o butler-icon-1x"></span>
</span>
</div>
<a role="gridcell" href="https://my.butler.edu/student-success/" class="icon-url" target="_blank" data-post-id="1942" aria-label="Academic Advising, opens a new window">
<i class="butler-icon bi-link butler-icon-3x"></i>
<div class="icon-heading">
<div class="icon-title"> Academic Advising <span class="butler-icon bi-external-link butler-icon-xs"></span></div>
</div>
<i class="anww-external-link-icon" aria-hidden="true"></i></a>
</div>After Update
<div role="row" class="butler-icon-links icon-1 academic-advising-icon">
<div class="favorite-tooltip-container">
<span role="gridcell" class="favorite-icon" data-name="academic-advising" data-id="1942"><br>
<span class="butler-icon bi-paw-o butler-icon-1x"></span><br>
</span><p></p></div>
<p> <a role="gridcell" href="https://my-dev.butler.edu/student-success/" class="icon-url" target="_blank" data-post-id="1942" aria-label="opens a new window"><br>
<i class="butler-icon bi-link butler-icon-3x"></i><i class="anww-external-link-icon" aria-hidden="true"></i></a></p><a role="gridcell" href="https://my-dev.butler.edu/student-success/" class="icon-url" target="_blank" data-post-id="1942" aria-label="Academic Advising, opens a new window">
<div class="icon-heading">
<div class="icon-title"> Academic Advising <span class="butler-icon bi-external-link butler-icon-xs"></span></div>
<p></p></div>
<i class="anww-external-link-icon" aria-hidden="true"></i></a><p><a role="gridcell" href="https://my-dev.butler.edu/student-success/" class="icon-url" target="_blank" data-post-id="1942" aria-label="opens a new window"> <i class="anww-external-link-icon" aria-hidden="true"></i></a>
</p></div>The additional <p> and <br> tags can be seen in the second example.
The block was created using the create-block scaffold. And uses standard WP best practices. The content of the block is echo’d
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- You must be logged in to reply to this topic.