Skip to content
This repository has been archived by the owner on Mar 8, 2024. It is now read-only.

Commit

Permalink
fix: PHP 7.x 5.x support
Browse files Browse the repository at this point in the history
  • Loading branch information
devhaozi committed Apr 29, 2023
1 parent e747ebb commit 42c7ef8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion vendor/haozi-team/autoload/class-autoloader.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public function __construct( $prefix, $path ) {
* @param string $class The class to be loaded.
*/
public function load( $class ) {
if ( ! str_starts_with( $class, $this->prefix . self::NS_SEPARATOR ) ) {
if ( strpos( $class, $this->prefix . self::NS_SEPARATOR ) !== 0 ) {
return;
}

Expand Down
4 changes: 2 additions & 2 deletions wp-china-plus.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Description: 一个轻量级插件,用于改善WordPress在中国大陆的使用体验。
* Author: 耗子开源
* Author URI: https://github.com/HaoZi-Team/WP-China-Plus
* Version: 2.0.1
* Version: 2.0.2
* License: GPLv3 or later
* Text Domain: wp-china-plus
* Domain Path: /languages
Expand All @@ -22,7 +22,7 @@
use HaoZiTeam\WP_CHINA_PLUS\Inc\Plugin;
use HaoZiTeam\Autoload;

const VERSION = '2.0.1';
const VERSION = '2.0.2';
const PLUGIN_FILE = __FILE__;

// 加载自动加载器
Expand Down

0 comments on commit 42c7ef8

Please sign in to comment.