WordPress.org

Make WordPress Core

Changes between Version 2 and Version 3 of Ticket #17180, comment 11


Ignore:
Timestamp:
06/27/12 04:06:49 (3 years ago)
Author:
jkudish
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #17180, comment 11

    v2 v3  
    11In [http://core.trac.wordpress.org/attachment/ticket/17180/17180-3.diff 17180-3.diff]: 
    22 
    3 * Check the dates via js whenever the post publishing form `#post` is submitted. If the dates are invalid, prevent publish, hide the ajax loaded, remover the disabled state from the publish button and slide down the `#timestampdiv` revealing the date error (highlited in red) 
     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. 
    44* Check the dates with php's native `chekdate()` function before before saving a post and return a `WP_Error` if the date is wrong 
    55