Changeset 54126 for trunk/src/wp-includes/post.php
- Timestamp:
- 09/11/2022 09:56:42 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/post.php
r54085 r54126 4946 4946 4947 4947 // Validate the date. 4948 $month = substr( $post_date, 5, 2 );4949 $day = substr( $post_date, 8, 2 );4950 $year = substr( $post_date, 0, 4 );4948 $month = (int) substr( $post_date, 5, 2 ); 4949 $day = (int) substr( $post_date, 8, 2 ); 4950 $year = (int) substr( $post_date, 0, 4 ); 4951 4951 4952 4952 $valid_date = wp_checkdate( $month, $day, $year, $post_date );
Note: See TracChangeset
for help on using the changeset viewer.