diff --git a/src/wp-admin/includes/class-plugin-upgrader.php b/src/wp-admin/includes/class-plugin-upgrader.php
index 27dc757f19..dd622a3ae4 100644
a
|
b
|
class Plugin_Upgrader extends WP_Upgrader { |
447 | 447 | if ( ! is_php_version_compatible( $requires_php ) ) { |
448 | 448 | $error = sprintf( |
449 | 449 | /* translators: 1: Current PHP version, 2: Version required by the uploaded plugin. */ |
450 | | __( 'The PHP version on your server is %1$s, however the uploaded plugin requires %2$s.' ), |
| 450 | __( 'The PHP version on your server is %1$s, however the uploaded plugin requires %2$s. <a href="%3$s">Learn more about updating PHP</a>' ), |
451 | 451 | phpversion(), |
452 | | $requires_php |
| 452 | $requires_php, |
| 453 | __( 'https://wordpress.org/support/update-php/' ) |
453 | 454 | ); |
454 | 455 | |
455 | 456 | return new WP_Error( 'incompatible_php_required_version', $this->strings['incompatible_archive'], $error ); |
… |
… |
class Plugin_Upgrader extends WP_Upgrader { |
458 | 459 | if ( ! is_wp_version_compatible( $requires_wp ) ) { |
459 | 460 | $error = sprintf( |
460 | 461 | /* translators: 1: Current WordPress version, 2: Version required by the uploaded plugin. */ |
461 | | __( 'Your WordPress version is %1$s, however the uploaded plugin requires %2$s.' ), |
| 462 | __( 'Your WordPress version is %1$s, however the uploaded plugin requires %2$s. <a href="%3$s">Learn more about updating WordPress</a>' ), |
462 | 463 | $GLOBALS['wp_version'], |
463 | | $requires_wp |
| 464 | $requires_wp, |
| 465 | __( 'https://wordpress.org/support/article/updating-wordpress/' ) |
464 | 466 | ); |
465 | 467 | |
466 | 468 | return new WP_Error( 'incompatible_wp_required_version', $this->strings['incompatible_archive'], $error ); |
diff --git a/src/wp-admin/includes/class-theme-installer-skin.php b/src/wp-admin/includes/class-theme-installer-skin.php
index 16e99332a6..74f9f4e7d9 100644
a
|
b
|
class Theme_Installer_Skin extends WP_Upgrader_Skin { |
298 | 298 | if ( ! is_php_version_compatible( $requires_php ) ) { |
299 | 299 | $error = sprintf( |
300 | 300 | /* translators: 1: Current PHP version, 2: Version required by the uploaded theme. */ |
301 | | __( 'The PHP version on your server is %1$s, however the uploaded theme requires %2$s.' ), |
| 301 | __( 'The PHP version on your server is %1$s, however the uploaded theme requires %2$s. <a href="%3$s">Learn more about updating PHP</a>' ), |
302 | 302 | phpversion(), |
303 | | $requires_php |
| 303 | $requires_php, |
| 304 | __( 'https://wordpress.org/support/update-php/' ) |
304 | 305 | ); |
305 | 306 | |
306 | 307 | $blocked_message .= '<li>' . esc_html( $error ) . '</li>'; |
… |
… |
class Theme_Installer_Skin extends WP_Upgrader_Skin { |
310 | 311 | if ( ! is_wp_version_compatible( $requires_wp ) ) { |
311 | 312 | $error = sprintf( |
312 | 313 | /* translators: 1: Current WordPress version, 2: Version required by the uploaded theme. */ |
313 | | __( 'Your WordPress version is %1$s, however the uploaded theme requires %2$s.' ), |
| 314 | __( 'Your WordPress version is %1$s, however the uploaded theme requires %2$s. <a href="%3$s">Learn more about updating WordPress</a>' ), |
314 | 315 | get_bloginfo( 'version' ), |
315 | | $requires_wp |
| 316 | $requires_wp, |
| 317 | __( 'https://wordpress.org/support/article/updating-wordpress/' ) |
316 | 318 | ); |
317 | 319 | |
318 | 320 | $blocked_message .= '<li>' . esc_html( $error ) . '</li>'; |
diff --git a/src/wp-admin/includes/class-theme-upgrader.php b/src/wp-admin/includes/class-theme-upgrader.php
index c08d3c2d5c..10cdc320de 100644
a
|
b
|
class Theme_Upgrader extends WP_Upgrader { |
595 | 595 | if ( ! is_php_version_compatible( $requires_php ) ) { |
596 | 596 | $error = sprintf( |
597 | 597 | /* translators: 1: Current PHP version, 2: Version required by the uploaded theme. */ |
598 | | __( 'The PHP version on your server is %1$s, however the uploaded theme requires %2$s.' ), |
| 598 | __( 'The PHP version on your server is %1$s, however the uploaded theme requires %2$s. <a href="%3$s">Learn more about updating PHP</a>' ), |
599 | 599 | phpversion(), |
600 | | $requires_php |
| 600 | $requires_php, |
| 601 | __( 'https://wordpress.org/support/update-php/' ) |
601 | 602 | ); |
602 | 603 | |
603 | 604 | return new WP_Error( 'incompatible_php_required_version', $this->strings['incompatible_archive'], $error ); |
… |
… |
class Theme_Upgrader extends WP_Upgrader { |
605 | 606 | if ( ! is_wp_version_compatible( $requires_wp ) ) { |
606 | 607 | $error = sprintf( |
607 | 608 | /* translators: 1: Current WordPress version, 2: Version required by the uploaded theme. */ |
608 | | __( 'Your WordPress version is %1$s, however the uploaded theme requires %2$s.' ), |
| 609 | __( 'Your WordPress version is %1$s, however the uploaded theme requires %2$s. <a href="%3$s">Learn more about updating WordPress</a>' ), |
609 | 610 | $GLOBALS['wp_version'], |
610 | | $requires_wp |
| 611 | $requires_wp, |
| 612 | __( 'https://wordpress.org/support/article/updating-wordpress/' ) |
611 | 613 | ); |
612 | 614 | |
613 | 615 | return new WP_Error( 'incompatible_wp_required_version', $this->strings['incompatible_archive'], $error ); |