diff --git a/Service/Setting.php b/Service/Setting.php index 504b598..80d7fc7 100644 --- a/Service/Setting.php +++ b/Service/Setting.php @@ -498,7 +498,9 @@ HTML, public function admin_menu() { // 自定义名称 add_filter( 'all_plugins', function ( $plugins ) { - $plugins['wp-china-yes/wp-china-yes.php']['Name'] = $this->settings['custom_name']; + if ( isset( $plugins['wp-china-yes/wp-china-yes.php'] ) ) { + $plugins['wp-china-yes/wp-china-yes.php']['Name'] = $this->settings['custom_name']; + } return $plugins; } ); diff --git a/wp-china-yes.php b/wp-china-yes.php index 0d93e57..278cb81 100644 --- a/wp-china-yes.php +++ b/wp-china-yes.php @@ -11,7 +11,7 @@ * Network: True * Requires at least: 4.9 * Tested up to: 9.9.9 - * Requires PHP: 5.6.0 + * Requires PHP: 7.0.0 * License URI: http://www.gnu.org/licenses/gpl-3.0.html */