Skip to content

Commit

Permalink
Remove unnecessary code
Browse files Browse the repository at this point in the history
  • Loading branch information
frozzare committed Mar 13, 2016
1 parent 09b3399 commit 5e96f1c
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/class-wp-glide.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ public function __construct() {

add_action( 'init', [$this, 'add_endpoint'] );
add_action( 'parse_query', [$this, 'handle_endpoint'] );
add_action( 'glide/serve', [$this, 'serve'] );
}

/**
Expand Down Expand Up @@ -47,11 +46,7 @@ public function handle_endpoint() {
return;
}

if ( has_action( 'glide/serve' ) !== false ) {
status_header( 200 );
do_action( 'glide/serve' );
wp_die();
}
$this->serve();
}

/**
Expand Down

0 comments on commit 5e96f1c

Please sign in to comment.