IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
|
|
|
204 | 204 | if ( ! isset( $cur->response ) || $cur->response != 'upgrade' ) |
205 | 205 | return false; |
206 | 206 | |
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 ); |
211 | | } |
212 | | echo "<div class='update-nag'>$msg</div>"; |
213 | | } |
| 207 | if ( current_user_can( 'publish_pages' ) ) { |
| 208 | if ( current_user_can( 'update_core' ) ) { |
| 209 | $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' ) ); |
| 210 | } else { |
| 211 | $msg = sprintf( __( '<a href="http://codex.wordpress.org/Version_%1$s">WordPress %1$s</a> is available! Please notify the site administrator.' ), $cur->current ); |
| 212 | } |
| 213 | echo "<div class='update-nag'>$msg</div>"; |
| 214 | } |
| 215 | |
| 216 | } |
214 | 217 | add_action( 'admin_notices', 'update_nag', 3 ); |
215 | 218 | add_action( 'network_admin_notices', 'update_nag', 3 ); |
216 | 219 | |
… |
… |
|
422 | 425 | if ( ! $nag ) |
423 | 426 | return false; |
424 | 427 | |
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.'); |
| 428 | if ( current_user_can( 'publish_pages' ) ) { |
| 429 | if ( current_user_can( 'update_core' ) ) { |
| 430 | $msg = sprintf( __( 'An automated WordPress update has failed to complete - <a href="%s">please attempt the update again now</a>.' ), 'update-core.php' ); |
| 431 | } else { |
| 432 | $msg = __( 'An automated WordPress update has failed to complete! Please notify the site administrator.' ); |
| 433 | } |
429 | 434 | |
430 | | echo "<div class='update-nag'>$msg</div>"; |
| 435 | echo "<div class='update-nag'>$msg</div>"; |
| 436 | } |
| 437 | |
431 | 438 | } |
432 | 439 | add_action( 'admin_notices', 'maintenance_nag' ); |
433 | 440 | add_action( 'network_admin_notices', 'maintenance_nag' ); |