admin-message.php
22 lines
| 1 | <?php |
| 2 | if (!defined('WORDFENCE_VERSION')) { exit; } |
| 3 | /** |
| 4 | * Presents the unsupported PHP version modal. |
| 5 | */ |
| 6 | |
| 7 | require(dirname(__FILE__) . '/../../lib/wfVersionSupport.php'); |
| 8 | /** |
| 9 | * @var string $wfPHPDeprecatingVersion |
| 10 | * @var string $wfPHPMinimumVersion |
| 11 | */ |
| 12 | ?> |
| 13 | <div style="padding: 10px; border: 2px solid #00709e; background-color: #fff; margin: 20px 20px 10px 0px; color: #00709e"> |
| 14 | <img style="display: block; float: left; margin: 0 10px 0 0" src="<?php echo plugins_url('', WORDFENCE_FCPATH) . '/' ?>images/wordfence-logo.svg" alt="" width="35" height="35"> |
| 15 | <p style="margin: 10px"><?php echo esc_html(sprintf( |
| 16 | /* translators: 1. PHP version. 2. Wordfence version. 3. Minimum PHP version. */ |
| 17 | __('You are running PHP version %1$s that is not supported by Wordfence %2$s. Wordfence features will not be available until PHP has been upgraded. We recommend using PHP version 8.1, but Wordfence will run on PHP version %3$s at a minimum.', 'wordfence'), |
| 18 | PHP_VERSION, |
| 19 | WORDFENCE_VERSION, |
| 20 | $wfPHPMinimumVersion |
| 21 | )) ?></p> |
| 22 | </div> |