WordPress.org

Make WordPress Core

Ticket #4166: functions.php-dif

File functions.php-dif, 547 bytes (added by josephscott, 8 years ago)
Line 
1Index: wp-includes/functions.php
2===================================================================
3--- wp-includes/functions.php   (revision 5282)
4+++ wp-includes/functions.php   (working copy)
5@@ -8,7 +8,7 @@
6        if ( empty($m) ) {
7                return false;
8        }
9-       $i = mktime(substr($m,11,2),substr($m,14,2),substr($m,17,2),substr($m,5,2),substr($m,8,2),substr($m,0,4));
10+       $i = mktime((int)substr($m,11,2),(int)substr($m,14,2),(int)substr($m,17,2),(int)substr($m,5,2),(int)substr($m,8,2),(int)substr($m,0,4));
11 
12        if( 'U' == $dateformatstring )
13                return $i;