Changeset 45536
- Timestamp:
- 06/14/2019 12:28:54 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/dashboard.php
r45505 r45536 1718 1718 <h3><?php _e( 'More Actions' ); ?></h3> 1719 1719 <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' ) ) : 1723 1722 if ( current_theme_supports( 'widgets' ) && current_theme_supports( 'menus' ) ) { 1724 printf(1723 $widgets_menus_link = sprintf( 1725 1724 __( 'Manage <a href="%1$s">widgets</a> or <a href="%2$s">menus</a>' ), 1726 1725 admin_url( 'widgets.php' ), … … 1728 1727 ); 1729 1728 } 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>'; 1731 1730 } 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>'; 1733 1732 } 1734 1733 ?> 1735 < /div></li>1734 <li><div class="welcome-icon welcome-widgets-menus"><?php echo $widgets_menus_link; ?></div></li> 1736 1735 <?php endif; ?> 1737 1736 <?php if ( current_user_can( 'manage_options' ) ) : ?>
Note: See TracChangeset
for help on using the changeset viewer.