Site Health: Remove paragraph tag from the actions container in issue template.
Most of the tests pass content that is already wrapped in a paragraph or list tags, thus producing nested paragraphs or invalid markup. Additionally, don't output an empty `<div>` tag if the test does not provide any actions. Props maxpertici, afercia. Fixes #48948. git-svn-id: https://develop.svn.wordpress.org/trunk@47529 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
a73eca1021
commit
2b52250f1a
@ -150,9 +150,11 @@ require_once ABSPATH . 'wp-admin/admin-header.php';
|
||||
</h4>
|
||||
<div id="health-check-accordion-block-{{ data.test }}" class="health-check-accordion-panel" hidden="hidden">
|
||||
{{{ data.description }}}
|
||||
<div class="actions">
|
||||
<p class="button-container">{{{ data.actions }}}</p>
|
||||
</div>
|
||||
<# if ( data.actions ) { #>
|
||||
<div class="actions">
|
||||
{{{ data.actions }}}
|
||||
</div>
|
||||
<# } #>
|
||||
</div>
|
||||
</script>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user