Make WordPress Core

Opened 9 months ago

Closed 9 months ago

#64675 closed defect (bug) (fixed)

Cleanup: remove unused variable $ext2 in wp_unique_filename function

Reported by: Soean Owned by: SergeyBiryukov
Priority: normal Milestone: 7.0
Component: General Version:
Severity: normal Keywords: has-patch
Cc: Focuses:

Description (last modified by SergeyBiryukov)

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

So we can remove this initialisation.

<?php
$ext2 = null;

Change History (3)

This ticket was mentioned in ​PR #10986 on ​WordPress/wordpress-develop by ​@Soean.


9 months ago
#1

  • Keywords has-patch added

The usage of $ext2 in wp_unique_filename() was removed in https://core.trac.wordpress.org/changeset/51653
So we can remove this initialisation.

Trac ticket: https://core.trac.wordpress.org/ticket/64675

#2 @SergeyBiryukov
9 months ago

  • Description modified (diff)
  • Milestone Awaiting Review → 7.0

#3 @SergeyBiryukov
9 months ago

  • Owner set to SergeyBiryukov
  • Resolution → fixed
  • Status new → closed

In 61710:

General: Remove unused variable in wp_unique_filename().

Follow-up to [51653].

Props Soean.
Fixes #64675.

Note: See TracTickets for help on using tickets.