Peter Westwood d86f9f140f Posting: Improve the invalid date protection code based on feedback from nacin.
* Introduce a wp_checkdate() function with a single filter to centralise the code that validates dates.
 * Improve the error message
 * Correctly handle the return value of wp_insert_post which is not always a WP_Error on failure

Fixes #17180


git-svn-id: https://develop.svn.wordpress.org/trunk@21922 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-20 10:46:50 +00:00
..
2012-06-12 19:27:41 +00:00
2012-09-08 04:58:34 +00:00
2012-05-03 16:41:59 +00:00
2011-12-01 04:51:35 +00:00
2012-01-05 20:10:39 +00:00
2012-06-10 17:37:49 +00:00