Skip to content

Accept all expected parameters.#11

Merged
LasseRafn merged 2 commits intoLasseRafn:masterfrom
mayukojpn:check-url
Sep 16, 2018
Merged

Accept all expected parameters.#11
LasseRafn merged 2 commits intoLasseRafn:masterfrom
mayukojpn:check-url

Conversation

@mayukojpn
Copy link
Copy Markdown
Contributor

Hi! I'm sorry but I found an error for accepting $id_or_email parameter other than user id, email or comment object.
Type check part was copied from get_avatar_data function.
https://github.com/WordPress/WordPress/blob/4.9.8/wp-includes/link-template.php#L3883

I also added validation for $url param to avoid conflicting with other avatar plugins.

@LasseRafn LasseRafn merged commit edee6fe into LasseRafn:master Sep 16, 2018
@LasseRafn
Copy link
Copy Markdown
Owner

Amazing! Will release today

@LasseRafn
Copy link
Copy Markdown
Owner

LasseRafn commented Sep 19, 2018

A little late. 0.9 tagged, thanks again! you rock 💪🏼 (and I hope WordCamp went well!)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants