From 52e72d16de6baac22be422739511637887cfd92d Mon Sep 17 00:00:00 2001 From: sunxiyuan Date: Sat, 15 Aug 2020 15:32:49 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E7=A7=BB=E9=99=A4=E6=9C=AC=E5=9C=9F?= =?UTF-8?q?=E6=96=B0=E9=97=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- wp-china-yes.php | 27 --------------------------- 1 file changed, 27 deletions(-) diff --git a/wp-china-yes.php b/wp-china-yes.php index df05681..ea2b78e 100644 --- a/wp-china-yes.php +++ b/wp-china-yes.php @@ -84,33 +84,6 @@ if (is_admin()) { return wp_remote_request($url, $r); }, 10, 3); - - - /** - * 替换仪表盘默认的“WordPress活动与新闻”为本土化版本 - */ - add_action('wp_dashboard_setup', function () { - global $wp_meta_boxes; - - unset($wp_meta_boxes['dashboard']['side']['core']['dashboard_primary']); - - wp_add_dashboard_widget('sponsor_widget', 'WordPress活动及新闻', function () { - echo << -
-EOT; - wp_widget_rss_output('https://wp-china.org/archives/category/news/feed/'); - echo << -
- -EOT; - }); - }); }