Skip to content
This repository was archived by the owner on Sep 24, 2018. It is now read-only.

Conversation

@nullvariable
Copy link
Contributor

If show_avatars=>false, then avatar_url shouldn't be included on the User Resource.

See #1872

Copy link
Member

Choose a reason for hiding this comment

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

Indentation is a bit off here. Also rest_get_avatar_urls() needs spaces around the parameter: rest_get_avatar_urls( $user->user_email );

@danielbachhuber danielbachhuber changed the title respect 'show_avatars' solves #1872 Respect show_avatars option when adding avatars to Users Jan 29, 2016
@danielbachhuber danielbachhuber added this to the 2.0 Beta 12 milestone Jan 29, 2016
danielbachhuber added a commit that referenced this pull request Jan 29, 2016
Respect `show_avatars` option when adding avatars to Users
@danielbachhuber danielbachhuber merged commit 988b5e5 into WP-API:develop Jan 29, 2016
BE-Webdesign added a commit to BE-Webdesign/WP-API that referenced this pull request Feb 11, 2016
Possible fix for WP-API#2248.  Respects the show_avatars option when
retrieving avatars data for comments. Modeled after WP-API#2151.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants