Make WordPress Core

Opened 14 years ago

Closed 14 years ago

#12824 closed defect (bug) (fixed)

Allow a method to be used for unique_filename_callback

Reported by: aaroncampbell's profile aaroncampbell Owned by:
Milestone: 3.0 Priority: normal
Severity: normal Version:
Component: General Keywords: has-patch needs-testing
Focuses: 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 14 years ago.

Download all attachments as: .zip

Change History (2)

#1 @nacin
14 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.