Changeset 49108 for trunk/src/wp-includes/class-wp-date-query.php
- Timestamp:
- 10/08/2020 09:13:57 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-date-query.php
r48586 r49108 875 875 // Y 876 876 $datetime = array( 877 'year' => intval( $matches[1] ),877 'year' => (int) $matches[1], 878 878 ); 879 879 … … 881 881 // Y-m 882 882 $datetime = array( 883 'year' => intval( $matches[1] ),884 'month' => intval( $matches[2] ),883 'year' => (int) $matches[1], 884 'month' => (int) $matches[2], 885 885 ); 886 886 … … 888 888 // Y-m-d 889 889 $datetime = array( 890 'year' => intval( $matches[1] ),891 'month' => intval( $matches[2] ),892 'day' => intval( $matches[3] ),890 'year' => (int) $matches[1], 891 'month' => (int) $matches[2], 892 'day' => (int) $matches[3], 893 893 ); 894 894 … … 896 896 // Y-m-d H:i 897 897 $datetime = array( 898 'year' => intval( $matches[1] ),899 'month' => intval( $matches[2] ),900 'day' => intval( $matches[3] ),901 'hour' => intval( $matches[4] ),902 'minute' => intval( $matches[5] ),898 'year' => (int) $matches[1], 899 'month' => (int) $matches[2], 900 'day' => (int) $matches[3], 901 'hour' => (int) $matches[4], 902 'minute' => (int) $matches[5], 903 903 ); 904 904 }
Note: See TracChangeset
for help on using the changeset viewer.