Make WordPress Core

Ticket #48406: 48406.diff

File 48406.diff, 2.6 KB (added by afercia, 4 years ago)
  • src/wp-admin/css/dashboard.css

     
    130130        color: #72777c;
    131131}
    132132
    133 .welcome-panel a {
     133.welcome-panel li a {
    134134        text-decoration: none;
    135135}
    136136
     
    260260        top: -2px;
    261261}
    262262
     263.welcome-panel .welcome-widgets:before {
     264        content: "\f538";
     265        top: -2px;
     266}
     267
     268.welcome-panel .welcome-menus:before {
     269        content: "\f163";
     270        top: -2px;
     271}
     272
    263273.welcome-panel .welcome-comments:before {
    264274        content: "\f117";
    265275        top: -1px;
     
    886896        min-width: 0;
    887897}
    888898
    889 #dashboard-widgets a,
    890 #dashboard-widgets .button-link {
     899#dashboard-widgets li a,
     900#dashboard-widgets .button-link,
     901.community-events-footer a {
    891902        text-decoration: none;
    892903}
    893904
  • src/wp-admin/includes/dashboard.php

     
    17971797        <div class="welcome-panel-column welcome-panel-last">
    17981798                <h3><?php _e( 'More Actions' ); ?></h3>
    17991799                <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>
    18161802                <?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>
     1805                <?php endif; ?>
    18171806                <?php if ( current_user_can( 'manage_options' ) ) : ?>
    18181807                        <li><?php printf( '<a href="%s" class="welcome-icon welcome-comments">' . __( 'Turn comments on or off' ) . '</a>', admin_url( 'options-discussion.php' ) ); ?></li>
    18191808                <?php endif; ?>