WordPress.org

Make WordPress Core

Opened 3 years ago

Closed 3 years ago

#12824 closed defect (bug) (fixed)

Allow a method to be used for unique_filename_callback

Reported by: aaroncampbell Owned by:
Priority: normal Milestone: 3.0
Component: General Version:
Severity: normal Keywords: has-patch needs-testing
Cc:

Description

Currently $unique_filename_callback in wp_unique_filename() can only be a function not a method. Simply replacing function_exists with is_callable fixes it.

Attachments (1)

12824.001.diff (619 bytes) - added by aaroncampbell 3 years ago.

Download all attachments as: .zip

Change History (2)

aaroncampbell3 years ago

comment:1 nacin3 years ago

  • Resolution set to fixed
  • Status changed from new to closed

(In [13952]) Allow methods to be used as a callback in wp_unique_filename(). fixes #12824 props aaroncampbell.

Note: See TracTickets for help on using tickets.