Skip to content
This repository has been archived by the owner on Sep 6, 2024. It is now read-only.

Commit

Permalink
Define subdomain_multiste as default in rest endpoint (#97)
Browse files Browse the repository at this point in the history
  • Loading branch information
oskosk authored Feb 18, 2018
1 parent f976b8b commit 5e96fa6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/rest-api-stuff.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ function add_rest_api_endpoints() {
'woocommerce' => (bool) settings( 'add_woocommerce_by_default', false ),
'wp-debug-log' => (bool) settings( 'set_wp_debug_log_by_default', false ),
'shortlife' => false,
'subdomain_multisite' => false,
'ssl' => (bool) settings( 'ssl_use_custom_certificate', false ),
];
$json_params = $request->get_json_params();
Expand Down Expand Up @@ -104,6 +105,7 @@ function add_rest_api_endpoints() {
add_post_endpoint( 'specialops/create', function ( $request ) {
$json_params = $request->get_json_params();
$defaults = [
'subdomain_multisite' => false,
'ssl' => (bool) settings( 'ssl_use_custom_certificate', false ),
];
$features = $json_params && is_array( $json_params ) ? $json_params : [];
Expand Down

0 comments on commit 5e96fa6

Please sign in to comment.