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