Make WordPress Core


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

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

props obenland.
fixes #26664.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.