Skip to content

Commit dd911ce

Browse files
committed
Fix for plugin built auth
1 parent bfbfd0b commit dd911ce

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

micropub.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,8 +171,8 @@ public static function parse_query( $wp ) {
171171
$user_id = get_current_user_id();
172172

173173
// The WordPress IndieAuth plugin uses filters for this
174-
static::$scopes = apply_filters( 'indieauth_scopes', null );
175-
static::$micropub_auth_response = apply_filters( 'indieauth_response', null );
174+
static::$scopes = apply_filters( 'indieauth_scopes', static::$scopes );
175+
static::$micropub_auth_response = apply_filters( 'indieauth_response', static::$micropub_auth_response );
176176

177177
if ( ! $user_id ) {
178178
static::handle_authorize_error( 401, 'Unauthorized' );

0 commit comments

Comments
 (0)