Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pull token data from IndieAuth plugin #127

Merged
merged 3 commits into from May 27, 2018
Merged

Conversation

dshanske
Copy link
Member

I noticed that when I use the IndieAuth endpoint, the auth response storage vanished. This restores that behavior.

@dshanske dshanske requested a review from snarfed April 26, 2018 11:51
micropub.php Outdated
@@ -175,6 +174,10 @@ public static function parse_query( $wp ) {
if ( ! empty( $indieauth_scopes ) ) {
static::$scopes = $indieauth_scopes;
}
global $indieauth_token;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

huh. is this really an ok way for plugins to communicate?! seems like they should use hooks or filters instead?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i do get that the code was already working this way, and this just extends that. still though.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am happy to see explore changibg it to a filter on both ends

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks! if you plan to switch to filters, feel free to merge this now and do that afterward.

@dshanske
Copy link
Member Author

@snarfed Switches to filters.

@dshanske dshanske merged commit bfbfd0b into indieweb:master May 27, 2018
@dshanske dshanske deleted the response branch July 25, 2020 04:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants