Make WordPress Core


Ignore:
Timestamp:
07/08/2020 01:42:30 PM (6 years ago)
Author:
SergeyBiryukov
Message:

Widgets: Adjust formatting for displaying the closing </nav> tag in widgets for consistency with the opening tag.

Follow-up to [48349].

See #48170.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/widgets/class-wp-widget-recent-posts.php

    r48409 r48410  
    127127                </ul>
    128128
    129                 <?php if ( 'html5' === $format ) : ?>
    130                         </nav>
    131                 <?php endif; ?>
     129                <?php
     130                if ( 'html5' === $format ) {
     131                        echo '</nav>';
     132                }
    132133
    133                 <?php
    134134                echo $args['after_widget'];
    135135        }
Note: See TracChangeset for help on using the changeset viewer.