Changeset 46770 for trunk/src/wp-admin/includes/dashboard.php
- Timestamp:
- 11/24/2019 07:55:01 PM (7 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-admin/includes/dashboard.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/dashboard.php
r46596 r46770 1798 1798 <h3><?php _e( 'More Actions' ); ?></h3> 1799 1799 <ul> 1800 <?php 1801 if ( current_theme_supports( 'widgets' ) || current_theme_supports( 'menus' ) ) : 1802 if ( current_theme_supports( 'widgets' ) && current_theme_supports( 'menus' ) ) { 1803 $widgets_menus_link = sprintf( 1804 /* translators: 1: URL to Widgets screen, 2: URL to Menus screen. */ 1805 __( 'Manage <a href="%1$s">widgets</a> or <a href="%2$s">menus</a>' ), 1806 admin_url( 'widgets.php' ), 1807 admin_url( 'nav-menus.php' ) 1808 ); 1809 } elseif ( current_theme_supports( 'widgets' ) ) { 1810 $widgets_menus_link = '<a href="' . admin_url( 'widgets.php' ) . '">' . __( 'Manage widgets' ) . '</a>'; 1811 } else { 1812 $widgets_menus_link = '<a href="' . admin_url( 'nav-menus.php' ) . '">' . __( 'Manage menus' ) . '</a>'; 1813 } 1814 ?> 1815 <li><div class="welcome-icon welcome-widgets-menus"><?php echo $widgets_menus_link; ?></div></li> 1800 <?php if ( current_theme_supports( 'widgets' ) ) : ?> 1801 <li><?php printf( '<a href="%s" class="welcome-icon welcome-widgets">' . __( 'Manage widgets' ) . '</a>', admin_url( 'widgets.php' ) ); ?></li> 1802 <?php endif; ?> 1803 <?php if ( current_theme_supports( 'menus' ) ) : ?> 1804 <li><?php printf( '<a href="%s" class="welcome-icon welcome-menus">' . __( 'Manage menus' ) . '</a>', admin_url( 'nav-menus.php' ) ); ?></li> 1816 1805 <?php endif; ?> 1817 1806 <?php if ( current_user_can( 'manage_options' ) ) : ?>
Note: See TracChangeset
for help on using the changeset viewer.