File tree Expand file tree Collapse file tree 3 files changed +15
-4
lines changed Expand file tree Collapse file tree 3 files changed +15
-4
lines changed Original file line number Diff line number Diff line change 2222 # Loop through each multisite URL
2323 for _wputools_multisite_url in ${_wputools_multisite_urls} ; do
2424 echo " # Flushing rewrite rules for ${_wputools_multisite_url} " ;
25- _WPCLICOMMAND --url=" ${_wputools_multisite_url} " rewrite flush --hard ;
25+ _WPCLICOMMAND --url=" ${_wputools_multisite_url} " rewrite flush;
2626 done
2727fi ;
2828
Original file line number Diff line number Diff line change @@ -365,6 +365,8 @@ function wputools_select_multisite(){
365365
366366 local _wputools_sites=($( wputools_get_multisite_urls) );
367367 local _tmp_home_url=" " ;
368+ local _tmp_url_www=" " ;
369+ local _tmp_site_www=" " ;
368370
369371 for arg in " $@ " ; do
370372
@@ -373,11 +375,20 @@ function wputools_select_multisite(){
373375
374376 # Clean argument
375377 _tmp_home_url=$( wputools_format_home_url " ${arg#* -url=} " ) ;
378+ _tmp_url_www=${_tmp_home_url/ \/\/ / \/\/ www\. } ;
376379 for site in " ${_wputools_sites[@]} " ; do
380+ _tmp_site_www=${site/ \/\/ / \/\/ www\. } ;
377381
378382 # If the URL matches a website, use it
379- if [[ " $site " == " $_tmp_home_url " || " $site " == " ${_tmp_home_url} /" ]]; then
380- _HOME_URL=" $_tmp_home_url "
383+ if [[
384+ " ${site} " == " ${_tmp_home_url} " ||
385+ " ${site} " == " ${_tmp_home_url} /" ||
386+ " ${_tmp_site_www} " == " ${_tmp_home_url} " ||
387+ " ${site} " == " ${_tmp_url_www} " ||
388+ " ${_tmp_site_www} " == " ${_tmp_home_url} /" ||
389+ " ${site} " == " ${_tmp_url_www} /"
390+ ]]; then
391+ _HOME_URL=" $site "
381392 echo " Site URL set to ${_HOME_URL} from argument." ;
382393 return ;
383394 fi
Original file line number Diff line number Diff line change 22
33WPUTools (){
44
5- local _WPUTOOLS_VERSION=' 0.144.4 ' ;
5+ local _WPUTOOLS_VERSION=' 0.144.5 ' ;
66local _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)
77local _PHP_VERSIONS_OBSOLETES=(7.0 7.1 7.2 7.3 7.4 8.0)
88local _PHP_VERSIONS_ADVANCED=(8.3 8.4 8.5 9.0)
You can’t perform that action at this time.
0 commit comments