mirror of
https://github.com/WenPai-org/wp-china-yes.git
synced 2025-08-04 03:29:37 +08:00
修复PHP5.6下的兼容问题
This commit is contained in:
parent
6343b1dfbc
commit
52ebe726e3
2 changed files with 5 additions and 8 deletions
|
@ -1,7 +1,7 @@
|
|||
<?php
|
||||
/*
|
||||
* Plugin Name: WP-China-Yes
|
||||
* Description: 此插件将全面改善中国大陆站点在访问官方服务时的用户体验,原理是将官方仓库源替换为由社区志愿者维护的国内源。
|
||||
* Description: 此插件将全面改善中国大陆站点在访问WP官方服务时的用户体验,原理是将官方仓库源替换为由社区志愿者维护的国内源。
|
||||
* Author: 孙锡源
|
||||
* Version: 1.9.9
|
||||
* Author URI:https://www.ibadboy.net/
|
||||
|
@ -15,9 +15,6 @@ define('WP_CHINA_YES_BASE_FILE', __FILE__);
|
|||
WP_CHINA_YES::init();
|
||||
|
||||
class WP_CHINA_YES {
|
||||
public static string $name = 'wp_china_yes';
|
||||
public static string $option_name = 'wp_china_yes_option';
|
||||
|
||||
public static function init() {
|
||||
if (is_admin()) {
|
||||
register_activation_hook(WP_CHINA_YES_BASE_FILE, array(
|
||||
|
@ -213,7 +210,7 @@ class WP_CHINA_YES {
|
|||
return $links;
|
||||
}
|
||||
|
||||
$settings_link = '<a href="' . menu_page_url(self::$name, false) . '">设置</a>';
|
||||
$settings_link = '<a href="' . menu_page_url('wp_china_yes', false) . '">设置</a>';
|
||||
|
||||
array_unshift($links, $settings_link);
|
||||
|
||||
|
@ -225,7 +222,7 @@ class WP_CHINA_YES {
|
|||
'WP-China-Yes',
|
||||
'WP-China-Yes',
|
||||
'manage_options',
|
||||
self::$name,
|
||||
'wp_china_yes',
|
||||
array(__CLASS__, 'settings')
|
||||
);
|
||||
}
|
||||
|
|
|
@ -4,12 +4,12 @@ Donate link: https://www.ibadboy.net/archives/3204.html
|
|||
Tags: China Super, 429, WP China Yes, wp-china-yes, WP-China-Yes
|
||||
Requires at least: 4.5
|
||||
Tested up to: 5.4.0
|
||||
Requires PHP: 5.2
|
||||
Requires PHP: 5.6
|
||||
Stable tag: 2.0.0
|
||||
License: GPLv3 or later
|
||||
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
||||
|
||||
W此插件将全面改善中国大陆站点在访问官方服务时的用户体验,原理是将官方仓库源替换为由社区志愿者维护的国内源。
|
||||
W此插件将全面改善中国大陆站点在访问WP官方服务时的用户体验,原理是将官方仓库源替换为由社区志愿者维护的国内源。
|
||||
|
||||
== Description ==
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue