Update kejilion.sh

This commit is contained in:
科技lion 2025-06-25 14:15:07 +08:00 committed by GitHub
parent c95d949b13
commit 4493104070
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1788,7 +1788,7 @@ patch_wp_debug() {
sed -i "/define(['\"]WP_DEBUG_LOG['\"].*/d" "$FILE"

# 插入新定义,放在含 "Happy publishing" 的行前
awk -v insert="define('WP_DEBUG', $DEBUG);\ndefine('WP_DEBUG_DISPLAY', $DEBUG_DISPLAY);\ndefine('WP_DEBUG_LOG', $DEBUG_LOG);" \
awk -v insert="define('WP_DEBUG_DISPLAY', $DEBUG_DISPLAY);\ndefine('WP_DEBUG_LOG', $DEBUG_LOG);" \
'
/Happy publishing/ {
print insert
@ -12656,4 +12656,3 @@ else
esac
fi