From 6fcee063152c2b9469076eaef926114a07e6dcb9 Mon Sep 17 00:00:00 2001 From: sunxiyuan Date: Fri, 10 Apr 2020 16:50:14 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=BB=AA=E8=A1=A8=E7=9B=98?= =?UTF-8?q?=E8=B5=9E=E5=8A=A9=E8=80=85=E5=B0=8F=E9=83=A8=E4=BB=B6=E7=9A=84?= =?UTF-8?q?=E5=90=8D=E7=A7=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.php | 6 +++--- donors_widgets.php => sponsor_widget.php | 0 2 files changed, 3 insertions(+), 3 deletions(-) rename donors_widgets.php => sponsor_widget.php (100%) diff --git a/index.php b/index.php index f95f80f..b7ab004 100644 --- a/index.php +++ b/index.php @@ -55,7 +55,7 @@ class WP_CHINA_YES { )); add_action('wp_dashboard_setup', array( __CLASS__, - 'donors_widgets' + 'sponsor_widget' )); if (empty(get_option('wp_china_yes_options'))) { @@ -169,9 +169,9 @@ EOT; self::success(); } - public static function donors_widgets() { + public static function sponsor_widget() { wp_add_dashboard_widget('custom_help_widget', '《WordPress中国区仓库源建设计划》赞助者', function () { - require_once plugin_dir_path(__FILE__) . 'donors_widgets.php'; + require_once plugin_dir_path(__FILE__) . 'sponsor_widget.php'; }); } diff --git a/donors_widgets.php b/sponsor_widget.php similarity index 100% rename from donors_widgets.php rename to sponsor_widget.php