mirror of
https://github.com/kejilion/sh.git
synced 2025-10-03 23:34:20 +08:00
Update kejilion.sh
This commit is contained in:
parent
c95d949b13
commit
4493104070
1 changed files with 1 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue