Ticket #54186: 54186.patch
File 54186.patch, 517 bytes (added by , 3 years ago) |
---|
-
post.php
4715 4715 } 4716 4716 4717 4717 // Validate the date. 4718 $month = substr( $post_date, 5, 2 );4719 $day = substr( $post_date, 8, 2 );4720 $year = substr( $post_date, 0, 4 );4718 $month = (int)substr( $post_date, 5, 2 ); 4719 $day = (int)substr( $post_date, 8, 2 ); 4720 $year = (int)substr( $post_date, 0, 4 ); 4721 4721 4722 4722 $valid_date = wp_checkdate( $month, $day, $year, $post_date ); 4723 4723