Make WordPress Core


Ignore:
Timestamp:
08/31/2015 09:44:02 PM (9 years ago)
Author:
SergeyBiryukov
Message:

Add 'update_right_now_text' filter for the text displayed in the 'At a Glance' dashboard widget.

props obenland.
fixes #33355.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/update.php

    r33734 r33832  
    255255    }
    256256
    257     $msg .= sprintf( '<span id="wp-version">' . __( 'WordPress %1$s running %2$s theme.' ) . '</span>', get_bloginfo( 'version', 'display' ), $theme_name );
     257    /* translators: 1: version number, 2: theme name */
     258    $content = __( 'WordPress %1$s running %2$s theme.' );
     259
     260    /**
     261     * Filter the text displayed in the 'At a Glance' dashboard widget.
     262     *
     263     * Prior to 3.8.0, the widget was named 'Right Now'.
     264     *
     265     * @since 4.4.0
     266     *
     267     * @param string $content Default text.
     268     */
     269    $content = apply_filters( 'update_right_now_text', $content );
     270
     271    $msg .= sprintf( '<span id="wp-version">' . $content . '</span>', get_bloginfo( 'version', 'display' ), $theme_name );
    258272
    259273    echo "<p id='wp-version-message'>$msg</p>";
Note: See TracChangeset for help on using the changeset viewer.