From d33185575950612053cc137e866290810327cbd9 Mon Sep 17 00:00:00 2001 From: nanhaoluo <3075912108@qq.com> Date: Fri, 16 Jan 2026 11:27:27 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E8=A7=84=E8=8C=83=E5=8C=96=20setti?= =?UTF-8?q?ngs.php?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 修复 33 处箭头操作符空格问题 - 移除多余空行 (6061 -> 5989 行) --- settings.php | 176 +++++++++++++++------------------------------------ 1 file changed, 52 insertions(+), 124 deletions(-) diff --git a/settings.php b/settings.php index 7d1505e..c46a1be 100644 --- a/settings.php +++ b/settings.php @@ -90,8 +90,7 @@ function themeoptions_page(){ - -

+

@@ -187,9 +186,7 @@ function themeoptions_page(){ - - - +
@@ -291,8 +288,7 @@ function themeoptions_page(){ - -

+

@@ -380,8 +376,7 @@ function themeoptions_page(){ - -

+

@@ -712,8 +707,7 @@ function themeoptions_page(){ - -

+

@@ -953,8 +947,7 @@ function themeoptions_page(){ - -

+

@@ -1170,8 +1163,7 @@ function themeoptions_page(){ - -

+

@@ -1210,10 +1202,8 @@ function themeoptions_page(){
- -
- -
+
+
@@ -1222,8 +1212,7 @@ function themeoptions_page(){

- -
+
@@ -1232,8 +1221,7 @@ function themeoptions_page(){

- -
+
@@ -1242,8 +1230,7 @@ function themeoptions_page(){

- -
+
@@ -1253,8 +1240,7 @@ function themeoptions_page(){
- -
+
@@ -1344,8 +1330,7 @@ function themeoptions_page(){ - -

+

@@ -1495,8 +1480,7 @@ function themeoptions_page(){ - - +

@@ -1568,8 +1552,7 @@ function themeoptions_page(){ - -

+

SEO

@@ -1601,8 +1584,7 @@ function themeoptions_page(){ - -

+

@@ -1878,8 +1860,7 @@ function themeoptions_page(){ - -

+

@@ -2217,8 +2198,7 @@ function themeoptions_page(){ - -

+

@@ -2290,8 +2270,7 @@ function themeoptions_page(){ - -

+

@@ -2996,8 +2975,7 @@ window.pjaxLoaded = function(){ - -

+

@@ -3123,8 +3101,7 @@ window.pjaxLoaded = function(){ - -

+

@@ -3232,9 +3209,7 @@ window.pjaxLoaded = function(){ var apiServer = $('input[name="argon_geetest_api_server"]').val().trim(); - - - if (!captchaId || !captchaKey) { +if (!captchaId || !captchaKey) { alert(''); @@ -3242,9 +3217,7 @@ window.pjaxLoaded = function(){ } - - - // 验证API服务器URL格式 +// 验证API服务器URL格式 if (apiServer && !apiServer.match(/^https?:\/\/.+/)) { @@ -3260,9 +3233,7 @@ window.pjaxLoaded = function(){ } - - - $('select[name="argon_captcha_type"]').change(function() { +$('select[name="argon_captcha_type"]').change(function() { if ($(this).val() === 'geetest') { @@ -3276,9 +3247,7 @@ window.pjaxLoaded = function(){ }); - - - // 表单提交时验证 +// 表单提交时验证 $('form').submit(function(e) { @@ -3458,8 +3427,7 @@ window.pjaxLoaded = function(){ - -

+

@@ -3937,13 +3905,13 @@ window.pjaxLoaded = function(){ foreach ($all_post_types as $post_type) { - if ($post_type -> name == 'attachment'){ + if ($post_type->name == 'attachment'){ continue; } - echo '
'. $post_type -> label .'
'; + echo '
'. $post_type->label .'
'; } @@ -4027,8 +3995,7 @@ window.pjaxLoaded = function(){ - -

+

@@ -4168,8 +4135,7 @@ window.pjaxLoaded = function(){
- -