[wp-trac] [WordPress Trac] #64675: Cleanup: remove unused variable $ext2 in wp_unique_filename function

WordPress Trac noreply at wordpress.org
Fri Feb 20 19:43:26 UTC 2026


#64675: Cleanup: remove unused variable $ext2 in wp_unique_filename function
--------------------------+---------------------
 Reporter:  Soean         |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  7.0
Component:  General       |     Version:
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |     Focuses:
--------------------------+---------------------
Changes (by SergeyBiryukov):

 * milestone:  Awaiting Review => 7.0


Old description:

> The usage of `$ext2` in `wp_unique_filename()` was removed in
> https://core.trac.wordpress.org/changeset/51653
>
> So we can remove this initialisation.
> {{{#!php
> <?php
> $ext2 = null;
> }}}

New description:

 The usage of `$ext2` in `wp_unique_filename()` was removed in [51653].

 So we can remove this initialisation.
 {{{#!php
 <?php
 $ext2 = null;
 }}}

--

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/64675#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list