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

Adds ability to retrieve avatar with WP_Post object #47

Merged
merged 1 commit into from
Jun 3, 2020

Conversation

oscarssanchez
Copy link
Contributor

Description of the Change

This PR adds the ability to retrieve an avatar when a post object is provided (It will retrieve the post author avatar) by checking if the passed parameter is a WP_Post object and has a post_author

Alternate Designs

Benefits

Fixes #20

Possible Drawbacks

Verification Process

Checklist:

  • I have read the CONTRIBUTING document.
  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have added tests to cover my change.
  • All new and existing tests passed.

Applicable Issues

@jeffpaul jeffpaul added the type:bug Something isn’t working. label Jun 3, 2020
@jeffpaul jeffpaul requested a review from dinhtungdu June 3, 2020 03:51
@jeffpaul jeffpaul added this to the 2.2 milestone Jun 3, 2020
@jeffpaul jeffpaul merged commit be66138 into 10up:develop Jun 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:bug Something isn’t working.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Retrieving avatar fails when using WP_Post
3 participants