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: |
|
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)
Change History (2)
Note: See
TracTickets for help on using
tickets.
(In [13952]) Allow methods to be used as a callback in wp_unique_filename(). fixes #12824 props aaroncampbell.