diff --git src/wp-admin/includes/class-wp-plugin-install-list-table.php src/wp-admin/includes/class-wp-plugin-install-list-table.php
index 3ff7991fc5..9c09a80a16 100644
|
|
|
class WP_Plugin_Install_List_Table extends WP_List_Table { |
| 634 | 634 | if ( ! $compatible_php || ! $compatible_wp ) { |
| 635 | 635 | echo '<div class="notice inline notice-error notice-alt"><p>'; |
| 636 | 636 | if ( ! $compatible_php && ! $compatible_wp ) { |
| 637 | | _e( 'This plugin doesn’t work with your versions of WordPress and PHP. ' ); |
| | 637 | _e( 'This plugin doesn’t work with your versions of WordPress and PHP.' ); |
| 638 | 638 | if ( current_user_can( 'update_core' ) && current_user_can( 'update_php' ) ) { |
| 639 | 639 | printf( |
| 640 | 640 | /* translators: 1: "Update WordPress" screen URL, 2: "Update PHP" page URL */ |
| 641 | | __( '<a href="%1$s">Please update WordPress</a>, and then <a href="%2$s">learn more about updating PHP</a>.' ), |
| | 641 | ' ' . __( '<a href="%1$s">Please update WordPress</a>, and then <a href="%2$s">learn more about updating PHP</a>.' ), |
| 642 | 642 | self_admin_url( 'update-core.php' ), |
| 643 | 643 | esc_url( wp_get_update_php_url() ) |
| 644 | 644 | ); |
| … |
… |
class WP_Plugin_Install_List_Table extends WP_List_Table { |
| 646 | 646 | } elseif ( current_user_can( 'update_core' ) ) { |
| 647 | 647 | printf( |
| 648 | 648 | /* translators: %s: "Update WordPress" screen URL */ |
| 649 | | __( '<a href="%s">Please update WordPress</a>.' ), |
| | 649 | ' ' . __( '<a href="%s">Please update WordPress</a>.' ), |
| 650 | 650 | self_admin_url( 'update-core.php' ) |
| 651 | 651 | ); |
| 652 | 652 | } elseif ( current_user_can( 'update_php' ) ) { |
| 653 | 653 | printf( |
| 654 | 654 | /* translators: %s: "Update PHP" page URL */ |
| 655 | | __( '<a href="%s">Learn more about updating PHP</a>.' ), |
| | 655 | ' ' . __( '<a href="%s">Learn more about updating PHP</a>.' ), |
| 656 | 656 | esc_url( wp_get_update_php_url() ) |
| 657 | 657 | ); |
| 658 | 658 | wp_update_php_annotation(); |
| 659 | 659 | } |
| 660 | 660 | } elseif ( ! $compatible_wp ) { |
| 661 | | _e( 'This plugin doesn’t work with your version of WordPress. ' ); |
| | 661 | _e( 'This plugin doesn’t work with your version of WordPress.' ); |
| 662 | 662 | if ( current_user_can( 'update_core' ) ) { |
| 663 | 663 | printf( |
| 664 | 664 | /* translators: %s: "Update WordPress" screen URL */ |
| 665 | | __( '<a href="%s">Please update WordPress</a>.' ), |
| | 665 | ' ' . __( '<a href="%s">Please update WordPress</a>.' ), |
| 666 | 666 | self_admin_url( 'update-core.php' ) |
| 667 | 667 | ); |
| 668 | 668 | } |
| 669 | 669 | } elseif ( ! $compatible_php ) { |
| 670 | | _e( 'This plugin doesn’t work with your version of PHP. ' ); |
| | 670 | _e( 'This plugin doesn’t work with your version of PHP.' ); |
| 671 | 671 | if ( current_user_can( 'update_php' ) ) { |
| 672 | 672 | printf( |
| 673 | 673 | /* translators: %s: "Update PHP" page URL */ |
| 674 | | __( '<a href="%s">Learn more about updating PHP</a>.' ), |
| | 674 | ' ' . __( '<a href="%s">Learn more about updating PHP</a>.' ), |
| 675 | 675 | esc_url( wp_get_update_php_url() ) |
| 676 | 676 | ); |
| 677 | 677 | wp_update_php_annotation(); |