Make WordPress Core


Ignore:
Timestamp:
07/08/2020 01:42:30 PM (5 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-pages.php

    r48388 r48410  
    109109            </ul>
    110110
    111             <?php if ( 'html5' === $format ) : ?>
    112                 </nav>
    113             <?php endif; ?>
     111            <?php
     112            if ( 'html5' === $format ) {
     113                echo '</nav>';
     114            }
    114115
    115             <?php
    116116            echo $args['after_widget'];
    117117        }
Note: See TracChangeset for help on using the changeset viewer.