Skip to content

Commit

Permalink
Forgot to load the combined class
Browse files Browse the repository at this point in the history
  • Loading branch information
dshanske committed Nov 11, 2023
1 parent 9925680 commit eb7eb83
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions includes/class-indieauth-authorize.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,15 @@ class IndieAuth_Authorize {
public $scopes = array();
public $response = array();


public function __construct( $load = true ) {
// Load the hooks for this class only if true. This allows for debugging of the functions
if ( true === $load ) {
add_action( 'admin_init', array( get_called_class(), 'admin_init' ) );
$this->load();
}
}

public function load() {
// do not call in CLI environment
if ( defined( 'WP_CLI' ) ) {
Expand Down

0 comments on commit eb7eb83

Please sign in to comment.