| @@ 355-362 (lines=8) @@ | ||
| 352 | ' ' . __( '<a href="%s">Please update WordPress</a>.' ), |
|
| 353 | self_admin_url( 'update-core.php' ) |
|
| 354 | ); |
|
| 355 | } elseif ( current_user_can( 'update_php' ) ) { |
|
| 356 | printf( |
|
| 357 | /* translators: %s: "Update PHP" page URL */ |
|
| 358 | ' ' . __( '<a href="%s">Learn more about updating PHP</a>.' ), |
|
| 359 | esc_url( wp_get_update_php_url() ) |
|
| 360 | ); |
|
| 361 | wp_update_php_annotation(); |
|
| 362 | } |
|
| 363 | } elseif ( ! $compatible_wp ) { |
|
| 364 | _e( 'This plugin doesn’t work with your version of WordPress.' ); |
|
| 365 | if ( current_user_can( 'update_core' ) ) { |
|
| @@ 372-382 (lines=11) @@ | ||
| 369 | self_admin_url( 'update-core.php' ) |
|
| 370 | ); |
|
| 371 | } |
|
| 372 | } elseif ( ! $compatible_php ) { |
|
| 373 | _e( 'This plugin doesn’t work with your version of PHP.' ); |
|
| 374 | if ( current_user_can( 'update_php' ) ) { |
|
| 375 | printf( |
|
| 376 | /* translators: %s: "Update PHP" page URL */ |
|
| 377 | ' ' . __( '<a href="%s">Learn more about updating PHP</a>.' ), |
|
| 378 | esc_url( wp_get_update_php_url() ) |
|
| 379 | ); |
|
| 380 | wp_update_php_annotation(); |
|
| 381 | } |
|
| 382 | } |
|
| 383 | echo '</p></div>'; |
|
| 384 | } |
|
| 385 | ?> |
|