mirror of
https://github.com/N0rthernL1ghts/wordpress.git
synced 2024-11-27 06:30:07 +01:00
Revert "Mark PLUGIN_PATH as mandatory variable"
This reverts commit 4fc19fa5e7
.
This commit is contained in:
parent
4fc19fa5e7
commit
c41860611d
|
@ -18,7 +18,7 @@ function scriptExitHandler() {
|
|||
function isPluginInstalled() {
|
||||
PLUGIN="${1:?PLUGIN is required}"
|
||||
|
||||
if [ -d "${PLUGIN_PATH:?}" ] && [ -f "${PLUGIN_PATH:?}/${PLUGIN}.php" ]; then
|
||||
if [ -d "${PLUGIN_PATH}" ] && [ -f "${PLUGIN_PATH}/${PLUGIN}.php" ]; then
|
||||
return 0
|
||||
fi
|
||||
return 1
|
||||
|
|
Loading…
Reference in New Issue
Block a user