Skip to content
This repository has been archived by the owner on Oct 4, 2019. It is now read-only.

Remove the 'visible' property from the variations endpoint and adds status #4

Merged
merged 3 commits into from
Jun 1, 2017

Conversation

justinshreve
Copy link
Contributor

This is the change I made in woocommerce/woocommerce#15216 -- but I'm moving it to the feature plugin. Just want a quick review since this adds prepare_object_for_response and prepare_object_for_database to the v3 endpoint.

cc @claudiosanches

if ( is_array( $request['image'] ) ) {
$image = $request['image'];
if ( is_array( $image ) ) {
$image['position'] = 0;
Copy link
Contributor

Choose a reason for hiding this comment

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

I think this can be removed now.

Copy link
Contributor

@claudiosanches claudiosanches left a comment

Choose a reason for hiding this comment

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

Looks good, just need to remember to remove the image position later.

@justinshreve justinshreve force-pushed the add/variations-rest-api-status branch from 1cff6c6 to d000aa4 Compare June 1, 2017 20:19
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