Add 'update_right_now_text'
filter for the text displayed in the 'At a Glance' dashboard widget.
props obenland. fixes #33355. git-svn-id: https://develop.svn.wordpress.org/trunk@33832 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
e5eec20a25
commit
f0ab8b5a06
@ -254,7 +254,21 @@ function update_right_now_message() {
|
||||
$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> ';
|
||||
}
|
||||
|
||||
$msg .= sprintf( '<span id="wp-version">' . __( 'WordPress %1$s running %2$s theme.' ) . '</span>', get_bloginfo( 'version', 'display' ), $theme_name );
|
||||
/* translators: 1: version number, 2: theme name */
|
||||
$content = __( 'WordPress %1$s running %2$s theme.' );
|
||||
|
||||
/**
|
||||
* Filter the text displayed in the 'At a Glance' dashboard widget.
|
||||
*
|
||||
* Prior to 3.8.0, the widget was named 'Right Now'.
|
||||
*
|
||||
* @since 4.4.0
|
||||
*
|
||||
* @param string $content Default text.
|
||||
*/
|
||||
$content = apply_filters( 'update_right_now_text', $content );
|
||||
|
||||
$msg .= sprintf( '<span id="wp-version">' . $content . '</span>', get_bloginfo( 'version', 'display' ), $theme_name );
|
||||
|
||||
echo "<p id='wp-version-message'>$msg</p>";
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user