Make WordPress Core


Ignore:
Timestamp:
03/30/2020 01:23:47 AM (5 years ago)
Author:
SergeyBiryukov
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/site-health.php

    r47198 r47529  
    151151    <div id="health-check-accordion-block-{{ data.test }}" class="health-check-accordion-panel" hidden="hidden">
    152152        {{{ data.description }}}
    153         <div class="actions">
    154             <p class="button-container">{{{ data.actions }}}</p>
    155         </div>
     153        <# if ( data.actions ) { #>
     154            <div class="actions">
     155                {{{ data.actions }}}
     156            </div>
     157        <# } #>
    156158    </div>
    157159</script>
Note: See TracChangeset for help on using the changeset viewer.