[wp-trac] [WordPress Trac] #12824: Allow a method to be used for unique_filename_callback

WordPress Trac wp-trac at lists.automattic.com
Fri Apr 2 21:43:06 UTC 2010


#12824: Allow a method to be used for unique_filename_callback
---------------------------+------------------------------------------------
 Reporter:  aaroncampbell  |       Owner:                         
     Type:  defect (bug)   |      Status:  new                    
 Priority:  normal         |   Milestone:  3.0                    
Component:  General        |     Version:                         
 Severity:  normal         |    Keywords:  has-patch needs-testing
---------------------------+------------------------------------------------
 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.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/12824>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list