diff --git a/wp-admin/includes/update.php b/wp-admin/includes/update.php
index e01fd28eb3..b0d59b18bf 100644
a
|
b
|
function find_core_update( $version, $locale ) { |
226 | 226 | * @return string |
227 | 227 | */ |
228 | 228 | function core_update_footer( $msg = '' ) { |
| 229 | /* translators: %s: WordPress version. */ |
| 230 | $msg = sprintf( __( 'Version %s.' ), get_bloginfo( 'version', 'display' ) ); |
| 231 | |
229 | 232 | if ( ! current_user_can( 'update_core' ) ) { |
230 | | /* translators: %s: WordPress version. */ |
231 | | return sprintf( __( 'Version %s' ), get_bloginfo( 'version', 'display' ) ); |
| 233 | return $msg; |
232 | 234 | } |
233 | 235 | |
234 | 236 | $cur = get_preferred_from_update_core(); |
… |
… |
function core_update_footer( $msg = '' ) { |
249 | 251 | |
250 | 252 | $is_development_version = preg_match( '/alpha|beta|RC/', $wp_version ); |
251 | 253 | |
252 | | if ( $is_development_version && 'latest' === $cur->response ) { |
253 | | $cur->response = 'development'; |
254 | | } |
255 | | |
256 | | switch ( $cur->response ) { |
257 | | case 'development': |
258 | | return sprintf( |
259 | | /* translators: 1: WordPress version number, 2: URL to WordPress Updates screen. */ |
260 | | __( 'You are using a development version (%1$s). Cool! Please <a href="%2$s">stay updated</a>.' ), |
261 | | get_bloginfo( 'version', 'display' ), |
262 | | network_admin_url( 'update-core.php' ) |
263 | | ); |
264 | | |
265 | | case 'upgrade': |
266 | | return sprintf( |
267 | | '<strong><a href="%s">%s</a></strong>', |
268 | | network_admin_url( 'update-core.php' ), |
269 | | /* translators: %s: WordPress version. */ |
270 | | sprintf( __( 'Get Version %s' ), $cur->current ) |
271 | | ); |
272 | | |
273 | | case 'latest': |
274 | | default: |
| 254 | if ( 'upgrade' === $cur->response ) { |
| 255 | return sprintf( |
| 256 | '<strong><a href="%s">%s</a></strong>', |
| 257 | network_admin_url( 'update-core.php' ), |
275 | 258 | /* translators: %s: WordPress version. */ |
276 | | return sprintf( __( 'Version %s' ), get_bloginfo( 'version', 'display' ) ); |
| 259 | sprintf( __( 'Get Version %s' ), $cur->current ) |
| 260 | ); |
| 261 | } else { |
| 262 | /* translators: s: URL to WordPress Updates screen. */ |
| 263 | $stay_updated = sprintf( __( 'Please <a href="%s">stay updated</a>.' ), network_admin_url( 'update-core.php' ) ); |
| 264 | $msg = $is_development_version ? $msg . ' ' . $stay_updated : $msg; |
| 265 | |
| 266 | return $msg; |
277 | 267 | } |
278 | 268 | } |
279 | 269 | |