WordPress.org

Make WordPress Core

Changeset 27711


Ignore:
Timestamp:
03/25/2014 02:35:23 PM (7 years ago)
Author:
nacin
Message:

Restore the update message in the dashboard, removed in 3.8.

props obenland.
fixes #26664.

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

Legend:

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

    r27583 r27711  
    363363
    364364#dashboard_right_now .main {
     365    overflow: hidden;
    365366    padding: 0 12px 11px;
    366367}
     
    368369#dashboard_right_now .main p {
    369370    margin: 0;
     371}
     372
     373#dashboard_right_now #wp-version-message .button {
     374    clear: right;
     375    float: right;
     376    position: relative;
     377    top: -5px;
    370378}
    371379
  • trunk/src/wp-admin/includes/dashboard.php

    r27669 r27711  
    282282    ?>
    283283    </ul>
    284     <p><?php printf( __( 'WordPress %1$s running %2$s theme.' ), get_bloginfo( 'version', 'display' ), $theme_name ); ?></p>
    285284    <?php
     285    update_right_now_message();
    286286
    287287    // Check if search engines are asked not to index this site.
  • trunk/src/wp-admin/includes/update.php

    r27369 r27711  
    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    }
     228
     229    $msg = sprintf( __( 'WordPress %1$s running %2$s theme.' ), get_bloginfo( 'version', 'display' ), $theme_name );
    225230
    226231    if ( current_user_can('update_core') ) {
     
    231236    }
    232237
    233     echo "<span id='wp-version-message'>$msg</span>";
     238    echo "<p id='wp-version-message'>$msg</p>";
    234239}
    235240
Note: See TracChangeset for help on using the changeset viewer.