-
Notifications
You must be signed in to change notification settings - Fork 797
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
Sync post list 1.1 endpoint. #7008
Conversation
Merges r134116-wpcom.
… post type Merges r138391-wpcom.
Merges r144233-wpcom.
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] ) ) |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🐑
if ( defined( 'IS_WPCOM' ) && IS_WPCOM ) { | ||
if ( !isset( $return[$key] ) ) | ||
$return[$key] = new stdClass; | ||
$return[$key]->wpcom = true; |
There was a problem hiding this comment.
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.
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! |
No description provided.