From 6fa80d721d7c1e0b79f17819352b53c050312258 Mon Sep 17 00:00:00 2001 From: Jeff Behnke Date: Tue, 14 Mar 2017 14:00:37 -0500 Subject: [PATCH] Issues with the latest VVV release 2.0 changes default wp paths. ref #50 Incremented version to 0.2.0 --- README.md | 6 ++++ index.php | 2 +- new-features.txt | 6 ++-- version.txt | 2 +- views/partials/hosts-list2.php | 28 +++++++++--------- vvv_dash/hosts/defaults.php | 52 +++++++++++++++++----------------- 6 files changed, 50 insertions(+), 46 deletions(-) diff --git a/README.md b/README.md index a032d7f..691cd71 100644 --- a/README.md +++ b/README.md @@ -144,6 +144,12 @@ create a `VVV/www/default/dashboard/custom.css` file and add this mm/dd/yy +03/14/17 version: 0.2.0 + +* Fixes #50 default path issues with the VVV 2.0 +* Removed local.wordpress-trunk.dev as per https://github.com/Varying-Vagrant-Vagrants/VVV/issues/1096 +* Removed @ error suppression someone put in the host list instead of proper isset() check + 11/08/16 version: 0.1.9 * Fixes #49 PHP Warning: Invalid argument supplied for foreach() hosts-list2.php on line 80 diff --git a/index.php b/index.php index 1c6d713..6a3eaf5 100644 --- a/index.php +++ b/index.php @@ -9,7 +9,7 @@ define( 'VVV_DASH_BASE', true ); define( 'VVV_WEB_ROOT', '/srv/www' ); define( 'VVV_DASH_ROOT', __DIR__); -define( 'VVV_DASH_VERSION', '0.1.9' ); +define( 'VVV_DASH_VERSION', '0.2.0' ); define( 'VVV_DASH_VIEWS', __DIR__ . '/views' ); define('VVV_DASH_HOSTS_DEBUG', false); diff --git a/new-features.txt b/new-features.txt index 89b5496..93f0344 100644 --- a/new-features.txt +++ b/new-features.txt @@ -1,3 +1,3 @@ -* Fixes #49 PHP Warning: Invalid argument supplied for foreach() hosts-list2.php on line 80 -* Added a host tools page with database tools for each site -* A good start on plugin blueprints \ No newline at end of file +* Fixes #50 default path issues with the VVV 2.0 +* Removed local.wordpress-trunk.dev as per https://github.com/Varying-Vagrant-Vagrants/VVV/issues/1096 +* Removed @ error suppression someone put in the host list instead of proper isset() check \ No newline at end of file diff --git a/version.txt b/version.txt index 82551ad..341cf11 100644 --- a/version.txt +++ b/version.txt @@ -1 +1 @@ -0.1.9 \ No newline at end of file +0.2.0 \ No newline at end of file diff --git a/views/partials/hosts-list2.php b/views/partials/hosts-list2.php index bc2c112..d5c5a7a 100644 --- a/views/partials/hosts-list2.php +++ b/views/partials/hosts-list2.php @@ -16,7 +16,6 @@ */ /* @var $host_info \vvv_dash\hosts_container::get_host_list() loaded from the index.php */ - $host_info = ( is_array( $host_info ) ) ? $host_info : false; ?>

NOTE: After creating or changing a host/site purge the Host Cache. @@ -51,11 +50,11 @@ Debug On Debug Off ARCHIVE MS'; - - $sub_sites = $host_commands->get_sub_sites($host['hostname'], $host['wp_path']); - $sub_sites = (array) json_decode($sub_sites); - if(is_array($sub_sites) && sizeof($sub_sites)) { + $sub_sites = $host_commands->get_sub_sites( $host['hostname'], $host['wp_path'] ); + $sub_sites = (array) json_decode( $sub_sites ); + + if ( is_array( $sub_sites ) && sizeof( $sub_sites ) ) { echo '