Skip to content

Commit

Permalink
📝 更新PHP最低版本要求
Browse files Browse the repository at this point in the history
  • Loading branch information
Licoy committed Apr 24, 2023
1 parent e1d8d28 commit 06ddf1b
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 8 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<img src="https://img.shields.io/badge/WordPress-V5.0+-0099CC.svg?logo=wordpress" alt="WordPress-Version">
</a>
<a href="https://github.com/Licoy/wordpress-theme-puock">
<img src="https://img.shields.io/badge/PHP-V7.4+-666699.svg?logo=php" alt="PHP-Version">
<img src="https://img.shields.io/badge/PHP-V8.0.2+-666699.svg?logo=php" alt="PHP-Version">
</a>
<a href="https://gitee.com/licoy/wordpress-theme-puock">
<img src="https://img.shields.io/badge/Gitee-码云-CC3333.svg?logo=gitee" alt="Gitee">
Expand Down Expand Up @@ -59,7 +59,7 @@
### 环境要求

- WordPress `5.0+`
- PHP `7.4+`
- PHP `8.0.2+`
- MySQL `5.6+`

## 主题特性
Expand Down
2 changes: 1 addition & 1 deletion inc/init.php
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ function pk_disable_emojis_tinymce($plugins)
function pk_env_check()
{
$php_version = phpversion();
$last_version = '7.4';
$last_version = '8.0.2';
$content = [];
if (version_compare($php_version, $last_version, '<')) {
$content[] = '<p>您正在使用过时的PHP版本<code>' . $php_version . '</code>,Puock主题需要PHP版本大于<code>' . $last_version . '</code>才能完整使用全部功能,请升级PHP版本。</p>';
Expand Down
4 changes: 0 additions & 4 deletions vendor/composer/platform_check.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,6 @@

$issues = array();

if (!(PHP_VERSION_ID >= 80002)) {
$issues[] = 'Your Composer dependencies require a PHP version ">= 8.0.2". You are running ' . PHP_VERSION . '.';
}

if ($issues) {
if (!headers_sent()) {
header('HTTP/1.1 500 Internal Server Error');
Expand Down
1 change: 0 additions & 1 deletion vendor/gioni06/gpt3-tokenizer/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
}
],
"require": {
"php": "^8.0.2",
"ext-mbstring": "*"
},
"require-dev": {
Expand Down

0 comments on commit 06ddf1b

Please sign in to comment.