Changeset 36310
- Timestamp:
- 01/15/2016 09:38:30 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/functions.php
r36274 r36310 2004 2004 $number = $new_number; 2005 2005 } 2006 return $filename2; 2006 2007 /** 2008 * Filter the result when generating a unique file name. 2009 * 2010 * @since 4.5.0 2011 * 2012 * @param string $filename Unique file name. 2013 * @param string $ext File extension, eg. ".png". 2014 * @param string $dir Directory path. 2015 * @param callable|null $unique_filename_callback Callback function that generates the unique file name. 2016 */ 2017 return apply_filters( 'wp_unique_filename', $filename2, $ext, $dir, $unique_filename_callback ); 2007 2018 } 2008 2019 … … 2016 2027 } 2017 2028 2018 return $filename; 2029 /** This filter is documented in wp-includes/functions.php */ 2030 return apply_filters( 'wp_unique_filename', $filename, $ext, $dir, $unique_filename_callback ); 2019 2031 } 2020 2032
Note: See TracChangeset
for help on using the changeset viewer.