Skip to content

Commit

Permalink
Display PHP version numbers in admin notice as well.
Browse files Browse the repository at this point in the history
  • Loading branch information
jeherve committed Jun 12, 2019
1 parent b2b2a71 commit 4b59173
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion vaultpress.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,16 @@ function vaultpress_admin_unsupported_php_notice() {

?>
<div class="notice notice-error is-dismissible">
<p><?php esc_html_e( 'VaultPress requires a more recent version of PHP and has been paused. Please update PHP to continue enjoying VaultPress.', 'vaultpress' ); ?></p>
<p>
<?php
printf(
/* translators: Placeholders are numbers, versions of PHP in use on the site, and required by VaultPress. */
esc_html__( 'Your version of PHP (%1$s) is lower than the version required by VaultPress (%2$s). Please update PHP to continue enjoying VaultPress.', 'vaultpress' ),
esc_html( phpversion() ),
esc_html( VAULTPRESS__MINIMUM_PHP_VERSION )
);
?>
</p>
<p class="button-container">
<?php
printf(
Expand Down

0 comments on commit 4b59173

Please sign in to comment.