Changeset 21922 for trunk/wp-includes/post.php
- Timestamp:
- 09/20/2012 10:46:50 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/post.php
r21921 r21922 2638 2638 $jj = substr( $post_date, 8, 2 ); 2639 2639 $aa = substr( $post_date, 0, 4 ); 2640 $valid_date = apply_filters( 'wp_insert_post_validate_date', checkdate( $mm, $jj, $aa ), $post_date );2640 $valid_date = wp_checkdate( $mm, $jj, $aa, $post_date ); 2641 2641 if ( !$valid_date ) { 2642 return new WP_Error( 'invalid_date', __( 'Woops, the provided date is invalid.' ) ); 2642 if ( $wp_error ) 2643 return new WP_Error( 'invalid_date', __( 'Whoops, the provided date is invalid.' ) ); 2644 else 2645 return 0; 2643 2646 } 2644 2647
Note: See TracChangeset
for help on using the changeset viewer.