Skip to content

Commit

Permalink
Merge pull request #103 from aaemnnosttv/pr/bail-early-if-installing
Browse files Browse the repository at this point in the history
Bail early if installing
  • Loading branch information
danielbachhuber authored May 23, 2017
2 parents 5f7130b + c88510f commit daabd6c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions inc/Runner.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@ public static function load_remote_commands() {
}

public static function after_wp_load() {
if ( defined( 'WP_INSTALLING' ) && WP_INSTALLING ) {
return;
}
if ( ! class_exists( 'WP_REST_Server' ) ) {
return;
}
Expand Down

0 comments on commit daabd6c

Please sign in to comment.