WordPress.org

Make WordPress Core

Ticket #42684: 42684.diff

File 42684.diff, 607 bytes (added by aquakitty, 4 years ago)
  • wp-includes/SimplePie/Parse/Date.php

    diff --git a/wp-includes/SimplePie/Parse/Date.php b/wp-includes/SimplePie/Parse/Date.php
    index 88e46e0309..932ba11b56 100644
    a b class SimplePie_Parse_Date 
    691691                        }
    692692
    693693                        // Convert the number of seconds to an integer, taking decimals into account
    694                         $second = round($match[6] + $match[7] / pow(10, strlen($match[7])));
     694                        $second = round((int)$match[6] + (int)$match[7] / pow(10, strlen($match[7])));
    695695
    696696                        return gmmktime($match[4], $match[5], $second, $match[2], $match[3], $match[1]) - $timezone;
    697697                }