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