Changes between Version 4 and Version 5 of Ticket #17180, comment 11
- 06/27/12 21:03:32 (18 months ago)
v4 v5 2 2 3 3 * Check the dates via js whenever the post publishing form `#post` is submitted. If the dates are invalid, prevent publish, hide the ajax spinner, remove the disabled state from the publish button and slide down the `#timestampdiv` revealing the date error (highlited in red), giving the user a visual indication of the problem and an opportunity to fix it. 4 * Check the dates with php's native `chekdate()` function before beforesaving a post and return a `WP_Error` if the date is wrong 4 * Check the dates with php's native `chekdate()` function before saving a post and return a `WP_Error` if the date is wrong 5 5 6 6 Tested the patch with posts, pages and quick edit and it all works as expected.