WordPress.org

Make WordPress Core

Ticket #26664: 26664.2.diff

File 26664.2.diff, 2.1 KB (added by obenland, 7 years ago)
  • src/wp-admin/css/dashboard.css

     
    367367
    368368#dashboard_right_now .main p {
    369369        margin: 0;
     370        overflow: hidden;
    370371}
    371372
     373#dashboard_right_now #wp-version-message .button {
     374        float: right;
     375}
     376
    372377.mu-storage {
    373378        overflow: hidden;
    374379}
  • src/wp-admin/includes/dashboard.php

     
    233233
    234234        ?>
    235235        </ul>
    236         <p><?php printf( __( 'WordPress %1$s running %2$s theme.' ), get_bloginfo( 'version', 'display' ), $theme_name ); ?></p>
    237236        <?php
     237        update_right_now_message();
    238238
    239239        // Check if search engines are asked not to index this site.
    240240        if ( ! is_network_admin() && ! is_user_admin() && current_user_can( 'manage_options' ) && '1' != get_option( 'blog_public' ) ) {
  • src/wp-admin/includes/update.php

     
    221221
    222222// Called directly from dashboard
    223223function update_right_now_message() {
    224         $msg = sprintf( __( 'You are using <span class="b">WordPress %s</span>.' ), get_bloginfo( 'version', 'display' ) );
     224        $theme_name = wp_get_theme();
     225        if ( current_user_can( 'switch_themes' ) ) {
     226                $theme_name = sprintf( '<a href="themes.php">%1$s</a>', $theme_name );
     227        }
    225228
     229        $msg = sprintf( __( 'WordPress %1$s running %2$s theme.' ), get_bloginfo( 'version', 'display' ), $theme_name );
     230
    226231        if ( current_user_can('update_core') ) {
    227232                $cur = get_preferred_from_update_core();
    228233
     
    230235                        $msg .= " <a href='" . network_admin_url( 'update-core.php' ) . "' class='button'>" . sprintf( __('Update to %s'), $cur->current ? $cur->current : __( 'Latest' ) ) . '</a>';
    231236        }
    232237
    233         echo "<span id='wp-version-message'>$msg</span>";
     238        echo "<p id='wp-version-message'>$msg</p>";
    234239}
    235240
    236241function get_plugin_updates() {