WordPress.org

Make WordPress Core

Changeset 31928


Ignore:
Timestamp:
03/30/2015 12:49:38 PM (5 years ago)
Author:
SergeyBiryukov
Message:

Make sure the update button in "At a Glance" dashboard widget does not overlap with long strings.

props SergeyBiryukov, afercia, tyxla.
fixes #30766.

Location:
trunk/src/wp-admin
Files:
2 edited

Legend:

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

    r31422 r31928  
    353353
    354354#dashboard_right_now #wp-version-message .button {
    355     clear: right;
    356355    float: right;
    357356    position: relative;
    358357    top: -5px;
     358    margin-left: 5px;
    359359}
    360360
  • trunk/src/wp-admin/includes/update.php

    r31333 r31928  
    222222    }
    223223
    224     $msg = sprintf( __( 'WordPress %1$s running %2$s theme.' ), get_bloginfo( 'version', 'display' ), $theme_name );
     224    $msg = '';
    225225
    226226    if ( current_user_can('update_core') ) {
     
    228228
    229229        if ( isset( $cur->response ) && $cur->response == 'upgrade' )
    230             $msg .= " <a href='" . network_admin_url( 'update-core.php' ) . "' class='button'>" . sprintf( __('Update to %s'), $cur->current ? $cur->current : __( 'Latest' ) ) . '</a>';
    231     }
     230            $msg .= '<a href="' . network_admin_url( 'update-core.php' ) . '" class="button" aria-describedby="wp-version">' . sprintf( __( 'Update to %s' ), $cur->current ? $cur->current : __( 'Latest' ) ) . '</a> ';
     231    }
     232
     233    $msg .= sprintf( '<span id="wp-version">' . __( 'WordPress %1$s running %2$s theme.' ) . '</span>', get_bloginfo( 'version', 'display' ), $theme_name );
    232234
    233235    echo "<p id='wp-version-message'>$msg</p>";
Note: See TracChangeset for help on using the changeset viewer.