diff --git a/src/wp-admin/includes/class-wp-plugin-install-list-table.php b/src/wp-admin/includes/class-wp-plugin-install-list-table.php
index 7cc37c056f..4dad77ff3b 100644
a
|
b
|
class WP_Plugin_Install_List_Table extends WP_List_Table { |
637 | 637 | _e( 'This plugin doesn’t work with your versions of WordPress and PHP. ' ); |
638 | 638 | if ( current_user_can( 'update_core' ) ) { |
639 | 639 | printf( |
640 | | /* translators: 1: "Update WordPress" screen URL, 2: "Updating PHP" page URL */ |
| 640 | /* translators: 1: "Update WordPress" screen URL, 2: Update PHP page URL */ |
641 | 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 | | esc_url( __( 'https://wordpress.org/support/update-php/' ) ) |
| 643 | esc_url( wp_get_update_php_url() ) |
644 | 644 | ); |
645 | 645 | } else { |
646 | 646 | printf( |
647 | | /* translators: %s: "Updating PHP" page URL */ |
| 647 | /* translators: %s: Update PHP page URL */ |
648 | 648 | __( '<a href="%s">Learn more about updating PHP</a>.' ), |
649 | | esc_url( __( 'https://wordpress.org/support/update-php/' ) ) |
| 649 | esc_url( wp_get_update_php_url() ) |
650 | 650 | ); |
651 | 651 | } |
652 | 652 | } elseif ( ! $compatible_wp ) { |
… |
… |
class WP_Plugin_Install_List_Table extends WP_List_Table { |
661 | 661 | } elseif ( ! $compatible_php ) { |
662 | 662 | _e( 'This plugin doesn’t work with your version of PHP. ' ); |
663 | 663 | printf( |
664 | | /* translators: %s: "Updating PHP" page URL */ |
| 664 | /* translators: %s: Update PHP page URL */ |
665 | 665 | __( '<a href="%s">Learn more about updating PHP</a>.' ), |
666 | | esc_url( __( 'https://wordpress.org/support/update-php/' ) ) |
| 666 | esc_url( wp_get_update_php_url() ) |
667 | 667 | ); |
668 | 668 | } |
669 | 669 | echo '</p></div>'; |
diff --git a/src/wp-admin/includes/plugin-install.php b/src/wp-admin/includes/plugin-install.php
index c3165f2e88..ffb3d8b2c7 100644
a
|
b
|
function install_plugin_information() { |
763 | 763 | if ( ! $compatible_php ) { |
764 | 764 | echo '<div class="notice notice-error notice-alt"><p>'; |
765 | 765 | printf( |
766 | | /* translators: "Updating PHP" page URL */ |
| 766 | /* translators: %s: Update PHP page URL */ |
767 | 767 | __( '<strong>Error:</strong> This plugin <strong>requires a newer version of PHP</strong>, so unfortunately you cannot install it. <a href="%s" target="_blank">Click here to learn more about updating PHP</a>.' ), |
768 | | esc_url( __( 'https://wordpress.org/support/update-php/' ) ) |
| 768 | esc_url( wp_get_update_php_url() ) |
769 | 769 | ); |
770 | 770 | echo '</p></div>'; |
771 | 771 | } |