Skip to content

Commit 544d423

Browse files
committed
v 0.142.4
Settings : - Display which wputools-local file is in use.
1 parent b674cb1 commit 544d423

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

bin/settings.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
if [[ "${_HAS_WPUTOOLS_LOCAL}" == '1' ]];then
88
bashutilities_message "A wputools-local.sh file already exists." 'warning';
9+
bashutilities_message "Loaded from: ${_WPUTOOLS_LOCAL_LOADED[*]}" 'info';
910
fi;
1011
if [[ "${_wputools_test__file}" != '' ]];then
1112
bashutilities_message "A wputools-urls.txt file already exists." 'warning';

wputools.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
WPUTools(){
44

5-
local _WPUTOOLS_VERSION='0.142.3';
5+
local _WPUTOOLS_VERSION='0.142.4';
66
local _PHP_VERSIONS=(7.0 7.1 7.2 7.3 7.4 8.0 8.1 8.2 8.3 8.4 8.5 9.0)
77
local _PHP_VERSIONS_OBSOLETES=(7.0 7.1 7.2 7.3 7.4 8.0)
88
local _PHP_VERSIONS_ADVANCED=(8.3 8.4 8.5 9.0)
@@ -37,6 +37,7 @@ local _HAS_WPUTOOLS_LOCAL='0';
3737
local _WPUTOOLS_NO_UPDATE='0';
3838
local _WPUTOOLS_DBIMPORT_IGNORE_LOCALOVERRIDES='0';
3939
local _WPUTOOLS_ACF_PRO_LICENSE='LICENSE';
40+
local _WPUTOOLS_LOCAL_LOADED=();
4041
_WPUWOO_ACTION_DIR="${_TOOLSDIR}wpuwooimportexport/";
4142
_WPUTOOLS_PLUGIN_LIST="${_TOOLSDIR}plugins.txt";
4243
_WPUTOOLS_PLUGIN_FAV_LIST="${_TOOLSDIR}plugins-favorites.txt";
@@ -48,10 +49,12 @@ fi;
4849
if [[ -f "${_CURRENT_DIR}../wputools-local.sh" ]];then
4950
. "${_CURRENT_DIR}../wputools-local.sh";
5051
_HAS_WPUTOOLS_LOCAL='1';
52+
_WPUTOOLS_LOCAL_LOADED+=("${_CURRENT_DIR}../wputools-local.sh");
5153
fi;
5254
if [[ -f "${_CURRENT_DIR}wputools-local.sh" ]];then
5355
. "${_CURRENT_DIR}wputools-local.sh";
5456
_HAS_WPUTOOLS_LOCAL='1';
57+
_WPUTOOLS_LOCAL_LOADED+=("${_CURRENT_DIR}wputools-local.sh");
5558
fi;
5659

5760
###################################

0 commit comments

Comments
 (0)