Skip to content

Commit

Permalink
Merge pull request woocommerce#22057 from leewillis77/status-report-p…
Browse files Browse the repository at this point in the history
…lugin-fix

"Active plugins" fix for status report
  • Loading branch information
claudiulodro authored Nov 28, 2018
2 parents fd195cf + 6f24d5b commit 7049cd2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions includes/api/v2/class-wc-rest-system-status-v2-controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ class WC_REST_System_Status_V2_Controller extends WC_REST_Controller {
*/
public function register_routes() {
register_rest_route(
$this->namespace, '/' . $this->rest_base,
$this->namespace,
'/' . $this->rest_base,
array(
array(
'methods' => WP_REST_Server::READABLE,
Expand Down Expand Up @@ -835,7 +836,6 @@ public function get_active_plugins() {
'changelog' => $body->sections['changelog'],
);
set_transient( md5( $plugin ) . '_version_data', $version_data, DAY_IN_SECONDS );
break;
}
}
}
Expand Down

0 comments on commit 7049cd2

Please sign in to comment.