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

Dates for new or updated posts should honor date parameters passed #219

Merged
merged 1 commit into from May 25, 2014

Conversation

rachelbaker
Copy link
Member

There is a bug in the logic of WP_JSON_Posts->insert_post() where even if the $data['date'], $data['date_gmt'], $data['modified'], or $data['modified_gmt'] are not empty the values are populated with the current time in GMT.

This appears to be a blocker for the 1.0 release, if this bug is confirmed by @rmccue.

See current logic here: https://github.com/WP-API/WP-API/blob/master/lib/class-wp-json-posts.php#L1185

@rachelbaker rachelbaker added this to the 1.0 milestone May 24, 2014
@rachelbaker
Copy link
Member Author

@rmccue #reviewmerge

@rmccue
Copy link
Member

rmccue commented May 25, 2014

Good catch, 👍

rmccue added a commit that referenced this pull request May 25, 2014
Dates for new or updated posts should honor date parameters passed
@rmccue rmccue merged commit 2fe9d9b into master May 25, 2014
@rmccue rmccue deleted the allow-date-to-be-set branch May 25, 2014 00:46
kellbot pushed a commit to kellbot/WP-API that referenced this pull request Aug 1, 2014
kellbot pushed a commit to kellbot/WP-API that referenced this pull request Aug 1, 2014
Dates for new or updated posts should honor date parameters passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants