From fce96a62e946d8d4c441cd1bd4b7ac2d792b62a3 Mon Sep 17 00:00:00 2001 From: sunxiyuan Date: Sat, 15 Aug 2020 15:31:28 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E5=B0=86=E6=8F=92=E4=BB=B6=E8=8F=9C?= =?UTF-8?q?=E5=8D=95=E7=A7=BB=E5=85=A5=E2=80=9C=E8=AE=BE=E7=BD=AE=E2=80=9D?= =?UTF-8?q?=E6=A0=8F=E7=9B=AE=E4=B8=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- wp-china-yes.php | 19 +++++-------------- 1 file changed, 5 insertions(+), 14 deletions(-) diff --git a/wp-china-yes.php b/wp-china-yes.php index 5ab4291..5089533 100644 --- a/wp-china-yes.php +++ b/wp-china-yes.php @@ -56,21 +56,12 @@ if (is_admin()) { * 菜单注册 */ add_action('admin_menu', function () { - add_menu_page( - '本土化', - '本土化', - '', - 'wpcy' - ); - - add_submenu_page( - 'wpcy', - 'WP&China Yes!', - '系统本土化', + add_options_page( + 'WP-China-Yes', + 'WP-China-Yes', 'manage_options', - 'wpcy-setting', - 'wpcy_options_page_html', - 0 + 'wp_china_yes', + 'wpcy_options_page_html' ); });