WordPress.org

Make WordPress Core

Changes between Version 4 and Version 5 of Ticket #17180, comment 11


Ignore:
Timestamp:
06/27/2012 09:03:32 PM (8 years ago)
Author:
jkudish
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #17180, comment 11

    v4 v5  
    22
    33* 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 before saving 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
    55
    66Tested the patch with posts, pages and quick edit and it all works as expected.