Commit 7dad2976ca for wordpress.org
commit 7dad2976ca8db718499d66e7121e4745d5ffe1a2
Author: lancewillett <lancewillett@git.wordpress.org>
Date: Sat Oct 31 21:18:39 2026 +0000
Tests: Cover generated image filename collisions.
Test `_wp_check_existing_file_names()` against image dimensions, scaled and rotated suffixes, and filenames without a basename or extension.
Developed in: https://github.com/WordPress/wordpress-develop/pull/2332
Props pbearne, azouamauriac, costdev.
Fixes #55192.
Built from https://develop.svn.wordpress.org/trunk@65154
git-svn-id: http://core.svn.wordpress.org/trunk@64303 1a063a9b-81f0-0310-95a4-ce76da25c4cd
diff --git a/wp-includes/functions.php b/wp-includes/functions.php
index d3493594cb..0745f0b891 100644
--- a/wp-includes/functions.php
+++ b/wp-includes/functions.php
@@ -2912,6 +2912,7 @@ function _wp_check_existing_file_names( $filename, $files ) {
// Edge case, file names like `.ext`.
if ( empty( $fname ) ) {
+
return false;
}
diff --git a/wp-includes/version.php b/wp-includes/version.php
index b140b3740f..ed3a8f0753 100644
--- a/wp-includes/version.php
+++ b/wp-includes/version.php
@@ -16,7 +16,7 @@
*
* @global string $wp_version
*/
-$wp_version = '7.2-beta3-65153';
+$wp_version = '7.2-beta3-65154';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.