X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/dc1231b7312fbdca99e9e887cc2bb35a28f85cdc..refs/tags/wordpress-4.4:/wp-admin/includes/update.php diff --git a/wp-admin/includes/update.php b/wp-admin/includes/update.php index 9bbb0c0f..6661d44a 100644 --- a/wp-admin/includes/update.php +++ b/wp-admin/includes/update.php @@ -203,7 +203,7 @@ function core_update_footer( $msg = '' ) { return sprintf( __( 'You are using a development version (%1$s). Cool! Please stay updated.' ), get_bloginfo( 'version', 'display' ), network_admin_url( 'update-core.php' ) ); case 'upgrade' : - return sprintf( ''.__( 'Get Version %2$s' ).'', network_admin_url( 'update-core.php' ), $cur->current); + return '' . sprintf( __( 'Get Version %s' ), $cur->current ) . ''; case 'latest' : default : @@ -254,7 +254,21 @@ function update_right_now_message() { $msg .= '' . sprintf( __( 'Update to %s' ), $cur->current ? $cur->current : __( 'Latest' ) ) . ' '; } - $msg .= sprintf( '' . __( 'WordPress %1$s running %2$s theme.' ) . '', 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( '' . $content . '', get_bloginfo( 'version', 'display' ), $theme_name ); echo "

$msg

"; } @@ -288,7 +302,7 @@ function wp_plugin_update_rows() { $plugins = get_site_transient( 'update_plugins' ); if ( isset($plugins->response) && is_array($plugins->response) ) { $plugins = array_keys( $plugins->response ); - foreach( $plugins as $plugin_file ) { + foreach ( $plugins as $plugin_file ) { add_action( "after_plugin_row_$plugin_file", 'wp_plugin_update_row', 10, 2 ); } } @@ -401,7 +415,7 @@ function wp_theme_update_rows() { if ( isset($themes->response) && is_array($themes->response) ) { $themes = array_keys( $themes->response ); - foreach( $themes as $theme ) { + foreach ( $themes as $theme ) { add_action( "after_theme_row_$theme", 'wp_theme_update_row', 10, 2 ); } }