Thanks to visit codestin.com
Credit goes to github.com

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

Conversation

@rachelbaker
Copy link
Member

  • Remove unused date error handling for invalid Comment & Post dates (handled by schema validation)
  • Add unit tests for updating a comment with invalid dates
  • Add unit test for creating a comment with an invalid date
  • Add unit tests for updating Posts with invalid dates
  • Add readonly attribute to the modified dates for Posts, since WP doesn't allow them to be set in wp_insert_post() or wp_update_post()
  • Add a unit test to make sure a readonly property (like modified) is ignored per 0e8364e

Replaces #1881

Copy link
Member

Choose a reason for hiding this comment

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

For the next person to be curious as to whether rand_str() can produce a valid date, no it can't — it uses md5() under the hood.

@danielbachhuber
Copy link
Member

Look at all of those unit tests! 😄 💕

danielbachhuber added a commit that referenced this pull request Dec 29, 2015
Remove extra date handling errors and expand on unit tests
@danielbachhuber danielbachhuber merged commit 8d382aa into develop Dec 29, 2015
@danielbachhuber danielbachhuber deleted the invalid-date-errors branch December 29, 2015 00:19
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants