WordPress.org

Make WordPress Core

Changeset 45536


Ignore:
Timestamp:
06/14/2019 12:28:54 AM (5 months ago)
Author:
SergeyBiryukov
Message:

Administration: Adjust code for "Manage widgets or menus" item on "Welcome to WordPress" panel to avoid an extra space after [42343].

Props Presskopp, davidbaumwald.
Fixes #47536.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/dashboard.php

    r45505 r45536  
    17181718        <h3><?php _e( 'More Actions' ); ?></h3>
    17191719        <ul>
    1720         <?php if ( current_theme_supports( 'widgets' ) || current_theme_supports( 'menus' ) ) : ?>
    1721             <li><div class="welcome-icon welcome-widgets-menus">
    1722             <?php
     1720        <?php
     1721        if ( current_theme_supports( 'widgets' ) || current_theme_supports( 'menus' ) ) :
    17231722            if ( current_theme_supports( 'widgets' ) && current_theme_supports( 'menus' ) ) {
    1724                 printf(
     1723                $widgets_menus_link = sprintf(
    17251724                    __( 'Manage <a href="%1$s">widgets</a> or <a href="%2$s">menus</a>' ),
    17261725                    admin_url( 'widgets.php' ),
     
    17281727                );
    17291728            } elseif ( current_theme_supports( 'widgets' ) ) {
    1730                 echo '<a href="' . admin_url( 'widgets.php' ) . '">' . __( 'Manage widgets' ) . '</a>';
     1729                $widgets_menus_link = '<a href="' . admin_url( 'widgets.php' ) . '">' . __( 'Manage widgets' ) . '</a>';
    17311730            } else {
    1732                 echo '<a href="' . admin_url( 'nav-menus.php' ) . '">' . __( 'Manage menus' ) . '</a>';
     1731                $widgets_menus_link = '<a href="' . admin_url( 'nav-menus.php' ) . '">' . __( 'Manage menus' ) . '</a>';
    17331732            }
    17341733            ?>
    1735             </div></li>
     1734            <li><div class="welcome-icon welcome-widgets-menus"><?php echo $widgets_menus_link; ?></div></li>
    17361735        <?php endif; ?>
    17371736        <?php if ( current_user_can( 'manage_options' ) ) : ?>
Note: See TracChangeset for help on using the changeset viewer.