Skip to content

Conversation

@kosso
Copy link
Contributor

@kosso kosso commented Dec 6, 2015

Currently there is a bug in the WP-Admin > Users > Your Profile in the list of Authorized Applications. The name of the consumer application is not being displayed.

The current code has the consumer being looked up using rest_get_client().

The array of $approved applications contains the consumer ID in the $row. This is simply the json_consumer type post in wp_posts, so modified to simply use get_post().

[ Alternatively, I suppose we could use a $wpdb SELECT post_title .. query, since we've already pulled that into global. More efficient? ]

kosso added 3 commits December 6, 2015 20:09
… th with no left padding for some reason. Hardcoded some padding inline for now. Also included missing th element.
@rmccue
Copy link
Member

rmccue commented Dec 7, 2015

Thanks for this, good catch!

[ Alternatively, I suppose we could use a $wpdb SELECT post_title .. query, since we've already pulled that into global. More efficient? ]

That'd be less efficient, as it wouldn't be cached. :)

rmccue added a commit that referenced this pull request Dec 7, 2015
Fixed bug in Profile > Authorized Applications
@rmccue rmccue merged commit ab42efc into WP-API:renaissance Dec 7, 2015
@kosso kosso deleted the renaissance branch December 7, 2015 01:02
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