Skip to content

Commit

Permalink
馃悰 FIX: Staging sites
Browse files Browse the repository at this point in the history
  • Loading branch information
austinginder committed Apr 26, 2019
1 parent ca3821e commit 079efc5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion woocommerce/myaccount/sites-endpoint.php
Expand Up @@ -4899,9 +4899,11 @@ function tryParseJSON (jsonString){
this.sites_selected.forEach(site => window.open(site.environments[0].home_url));
}
if ( this.dialog_bulk.environment_selected == "Staging" || this.dialog_bulk.environment_selected == "Both" ) {
this.sites_selected.forEach(site => {
if ( site.environments[1].home_url ) {
this.sites_selected.forEach(site => window.open(site.environments[1].home_url));
window.open( site.environments[1].home_url );
}
});
}
},
bulkactionSubmit() {
Expand Down

0 comments on commit 079efc5

Please sign in to comment.