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

Sync post list 1.1 endpoint. #7008

Merged
merged 3 commits into from
Apr 28, 2017

Conversation

zinigor
Copy link
Member

@zinigor zinigor commented Apr 20, 2017

No description provided.

@zinigor zinigor added the [Status] Needs Review To request a review from Crew. Label will be renamed soon. label Apr 20, 2017
@zinigor
Copy link
Member Author

zinigor commented Apr 21, 2017

Master issue: #7026

@@ -311,6 +312,13 @@ function callback( $path = '', $blog_id = 0 ) {
$return[$key]->next_page = $this->build_page_handle( $last_post, $query );
}
}

if ( defined( 'IS_WPCOM' ) && IS_WPCOM ) {
if ( !isset( $return[$key] ) )
Copy link
Member

Choose a reason for hiding this comment

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

Should we take that opportunity to clean up that code so it respects the WP coding standards?

Copy link
Contributor

@eliorivero eliorivero left a comment

Choose a reason for hiding this comment

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

🐑

@eliorivero eliorivero added [Status] Ready to Merge Go ahead, you can push that green button! and removed [Status] Needs Review To request a review from Crew. Label will be renamed soon. labels Apr 24, 2017
if ( defined( 'IS_WPCOM' ) && IS_WPCOM ) {
if ( !isset( $return[$key] ) )
$return[$key] = new stdClass;
$return[$key]->wpcom = true;
Copy link
Contributor

Choose a reason for hiding this comment

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

Although it's not a blocker @zinigor the spacing could be fixed in both sides.

@zinigor
Copy link
Member Author

zinigor commented Apr 28, 2017

Appreciate the comments, but I'd rather sync this now, and then fix spacing on a file that has a common ancestor. We'll get this all fixed!

@zinigor zinigor merged commit 756462e into feature/sync-json-endpoints Apr 28, 2017
@zinigor zinigor removed the [Status] Ready to Merge Go ahead, you can push that green button! label Apr 28, 2017
@jeherve jeherve deleted the sync/list-posts-1-1-endpoint branch April 28, 2017 15:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants