207 | | if ( current_user_can('update_core') ) { |
208 | | $msg = sprintf( __('<a href="http://codex.wordpress.org/Version_%1$s">WordPress %1$s</a> is available! <a href="%2$s">Please update now</a>.'), $cur->current, network_admin_url( 'update-core.php' ) ); |
209 | | } else { |
210 | | $msg = sprintf( __('<a href="http://codex.wordpress.org/Version_%1$s">WordPress %1$s</a> is available! Please notify the site administrator.'), $cur->current ); |
| 210 | if ( current_user_can( 'update_core' ) ) { |
| 211 | $msg = sprintf( __( '<a href="http://codex.wordpress.org/Version_%1$s">WordPress %1$s</a> is available! <a href="%2$s">Please update now</a>.' ), $cur->current, network_admin_url( 'update-core.php' ) ); |
| 212 | } elseif ( current_user_can( 'publish_pages' ) ) { |
| 213 | $msg = sprintf( __( '<a href="http://codex.wordpress.org/Version_%1$s">WordPress %1$s</a> is available! Please notify the site administrator.' ), $cur->current ); |
425 | | if ( current_user_can('update_core') ) |
426 | | $msg = sprintf( __('An automated WordPress update has failed to complete - <a href="%s">please attempt the update again now</a>.'), 'update-core.php' ); |
427 | | else |
428 | | $msg = __('An automated WordPress update has failed to complete! Please notify the site administrator.'); |
| 430 | if ( current_user_can( 'update_core' ) ) { |
| 431 | $msg = sprintf( __( 'An automated WordPress update has failed to complete - <a href="%s">please attempt the update again now</a>.' ), 'update-core.php' ); |
| 432 | } elseif ( current_user_can( 'publish_pages' ) ) { |
| 433 | $msg = __( 'An automated WordPress update has failed to complete! Please notify the site administrator.' ); |
| 434 | } |