Make WordPress Core

Changeset 48409


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

Widgets: Correct the logic for displaying the after_widget parameter of the Archives widget.

Follow-up to [48349].

Props mukesh27, joyously.
Fixes #50609.

Location:
trunk/src/wp-includes
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/general-template.php

    r48370 r48409  
    313313                        $aria_label = '';
    314314                }
     315
    315316                if ( 'html5' === $format ) {
    316317                        $form = '<form role="search" ' . $aria_label . 'method="get" class="search-form" action="' . esc_url( home_url( '/' ) ) . '">
  • trunk/src/wp-includes/widgets/class-wp-widget-archives.php

    r48388 r48409  
    162162                                ?>
    163163                        </ul>
     164
    164165                        <?php if ( 'html5' === $format ) : ?>
    165166                                </nav>
    … …  
    167168
    168169                        <?php
    169                         echo $args['after_widget'];
    170170                }
     171
     172                echo $args['after_widget'];
    171173        }
    172174
  • trunk/src/wp-includes/widgets/class-wp-widget-meta.php

    r48388 r48409  
    6767                }
    6868                ?>
    69 
    7069
    7170                <ul>
  • trunk/src/wp-includes/widgets/class-wp-widget-recent-posts.php

    r48388 r48409  
    126126                        <?php endforeach; ?>
    127127                </ul>
     128
    128129                <?php if ( 'html5' === $format ) : ?>
    129130                        </nav>
Note: See TracChangeset for help on using the changeset viewer.