fix #106, wp-cli bootstrap must not inhibit custom rewrite rules (#110)

isekai
Raphaël Droz 6 years ago committed by Jonathan Daggerhart
parent d45ab06e3d
commit f263fb4a16

@ -75,9 +75,6 @@ class OpenID_Connect_Generic {
* WP Hook 'init'
*/
function init(){
if ( defined( 'WP_CLI' ) && WP_CLI ) {
return;
}
$redirect_uri = admin_url( 'admin-ajax.php?action=openid-connect-authorize' );
@ -102,6 +99,10 @@ class OpenID_Connect_Generic {
);
$this->client_wrapper = OpenID_Connect_Generic_Client_Wrapper::register( $this->client, $this->settings, $this->logger );
if ( defined( 'WP_CLI' ) && WP_CLI ) {
return;
}
$this->login_form = OpenID_Connect_Generic_Login_Form::register( $this->settings, $this->client_wrapper );
// add a shortcode to get the auth url

Loading…
Cancel
Save