WordPress/wp-includes
Sergey Biryukov 8f855f46b0 Media: In wp_unique_filename(), use explicit type casting when incrementing $number.
This prevents the "non-numeric value encountered" warning in PHP 7.1, caused by trying to increment an empty string on the first loop iteration.

Props drrobotnik for initial patch.
Fixes #39774.


Built from https://develop.svn.wordpress.org/trunk@40039


git-svn-id: http://core.svn.wordpress.org/trunk@39976 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-02-03 20:58:42 +00:00
..
2016-12-03 03:30:42 +00:00
2017-01-11 01:23:41 +00:00
2016-12-03 04:16:38 +00:00
2016-12-03 03:51:41 +00:00