Changeset 47122 for trunk/src/wp-admin/includes/comment.php
- Timestamp:
- 01/29/2020 12:43:23 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/comment.php
r47084 r47122 80 80 81 81 if ( ! empty( $_POST['edit_date'] ) ) { 82 $aa = $_POST['aa']; 83 $mm = $_POST['mm']; 84 $jj = $_POST['jj']; 85 $hh = $_POST['hh']; 86 $mn = $_POST['mn']; 87 $ss = $_POST['ss']; 88 $jj = ( $jj > 31 ) ? 31 : $jj; 89 $hh = ( $hh > 23 ) ? $hh - 24 : $hh; 90 $mn = ( $mn > 59 ) ? $mn - 60 : $mn; 91 $ss = ( $ss > 59 ) ? $ss - 60 : $ss; 82 $aa = $_POST['aa']; 83 $mm = $_POST['mm']; 84 $jj = $_POST['jj']; 85 $hh = $_POST['hh']; 86 $mn = $_POST['mn']; 87 $ss = $_POST['ss']; 88 $jj = ( $jj > 31 ) ? 31 : $jj; 89 $hh = ( $hh > 23 ) ? $hh - 24 : $hh; 90 $mn = ( $mn > 59 ) ? $mn - 60 : $mn; 91 $ss = ( $ss > 59 ) ? $ss - 60 : $ss; 92 92 93 $_POST['comment_date'] = "$aa-$mm-$jj $hh:$mn:$ss"; 93 94 }
Note: See TracChangeset
for help on using the changeset viewer.