wp_unique_filename( string $dir, string $filename, callable $unique_filename_callback = null ): string
- Since
- 2.5.0
- Source
wp-includes/functions.php:2556
Description
If the filename is not unique, then a number will be added to the filename before the extension, and will continue adding numbers until the filename is unique.
The callback function allows the caller to use their own method to create unique file names. If defined, the callback should take three arguments:
- directory, base filename, and extension - and return a unique filename.
Compatibility
- WordPress
- since 2.5.0
- PHP
- 7.4–8.6-dev
- 6.7.7
- 6.8.8
- 6.9.7
- 7.0.4
- 7.1.0
Present in every tracked release (6.7.7 to 7.1.0), and compiles on PHP 7.4 through 8.6-dev.
Parameters
$dirstring- Directory.
$filenamestring- File name.
$unique_filename_callbackcallableoptional- Callback. Default null.Default:
null
Return value
string- New filename, if given wasn't unique.
Performance profile
How much work a call to wp_unique_filename() does, and what it touches: the algorithmic scaling, the Zend instruction count per call across PHP versions, the hooks it hands control to, and the core code that calls it. Measured from the compiled opcodes, not a stopwatch, so every number is identical on any machine running the same PHP version, and every function in core is ranked by cost.
- Cost class
- Heavy
- Scaling
- Scales with input
- Instructions
- 71–181
- Plugin surface
- 2 hooks
- Called by
- 8
Reads or writes the filesystem via file_exists().
The body loops, so the work grows with what you pass in.
Executed per call on PHP 8.5, depending on the branch taken. The body compiles to 323.
Third-party callbacks on 'pre_wp_unique_filename_file_list', 'wp_unique_filename' run inside this call, and their cost is not bounded by anything here.
8 places in core call this, so the cost is paid more often than your own code shows.
What it touches
- hookthird-party callbacks
apply_filters()called directly - filesystemfilesystem access
file_exists()called directly
Further down the call graph this can also reach option, cache, serialize, query and transient. Those are the worst case, several calls deep and usually down an error path, not what a normal call pays.
What one call costs · 200 distinct outcomes
One number would be a lie: the work depends on which branch runs. These are every distinct cost wp_unique_filename() can have, taken from its control-flow graph on PHP 8.5.
| When | Instructions | Calls it makes |
|---|---|---|
$name !== false && !file_exists() && !$lc_ext | 71–74 | sanitize_file_name(), pathinfo(), pathinfo(), pathinfo(), wp_check_filetype(), wp_get_upload_dir(), strtolower(), trailingslashit(), file_exists(), apply_filters() |
$name !== false && !file_exists() && $lc_ext | 77–81 | sanitize_file_name(), pathinfo(), pathinfo(), pathinfo(), wp_check_filetype(), wp_get_upload_dir(), strtolower(), trailingslashit(), file_exists(), file_exists(), apply_filters() |
$name !== false && !file_exists() && !$lc_ext | 78–83 | sanitize_file_name(), pathinfo(), pathinfo(), pathinfo(), wp_check_filetype(), wp_get_upload_dir(), strtolower(), trailingslashit(), file_exists(), is_dir(), apply_filters() |
$name !== false && $value && $lc_ext !== false && !file_exists() && !$lc_ext | 81–82 | sanitize_file_name(), pathinfo(), pathinfo(), pathinfo(), wp_check_filetype(), wp_get_upload_dir(), strtolower(), trailingslashit(), preg_quote(), file_exists(), apply_filters() |
$name !== false && !file_exists() && $lc_ext | 84–90 | sanitize_file_name(), pathinfo(), pathinfo(), pathinfo(), wp_check_filetype(), wp_get_upload_dir(), strtolower(), trailingslashit(), file_exists(), file_exists(), is_dir(), apply_filters() |
$name !== false && $value && $lc_ext !== false && !file_exists() && $lc_ext | 87–89 | sanitize_file_name(), pathinfo(), pathinfo(), pathinfo(), wp_check_filetype(), wp_get_upload_dir(), strtolower(), trailingslashit(), preg_quote(), file_exists(), file_exists(), apply_filters() |
$name !== false && $value && $lc_ext !== false && !file_exists() && !$lc_ext | 88–91 | sanitize_file_name(), pathinfo(), pathinfo(), pathinfo(), wp_check_filetype(), wp_get_upload_dir(), strtolower(), trailingslashit(), preg_quote(), file_exists(), is_dir(), apply_filters() |
$name !== false && !file_exists() && !$lc_ext && is_dir() && $dir && $files !== null && empty($files) | 94–101 | sanitize_file_name(), pathinfo(), pathinfo(), pathinfo(), wp_check_filetype(), wp_get_upload_dir(), strtolower(), trailingslashit(), file_exists(), is_dir(), apply_filters(), apply_filters() |
$name !== false && $value && $lc_ext !== false && !file_exists() && $lc_ext | 94–98 | sanitize_file_name(), pathinfo(), pathinfo(), pathinfo(), wp_check_filetype(), wp_get_upload_dir(), strtolower(), trailingslashit(), preg_quote(), file_exists(), file_exists(), is_dir(), apply_filters() |
$name !== false && !file_exists() && !$lc_ext && empty($output_formats[$mime_type]) && empty($output_formats) | 95–105 | sanitize_file_name(), pathinfo(), pathinfo(), pathinfo(), wp_check_filetype(), wp_get_upload_dir(), strtolower(), trailingslashit(), file_exists(), wp_get_image_editor_output_format(), array_diff(), apply_filters() |
$name !== false && !file_exists() && !$lc_ext && is_dir() && $dir && $files !== null && !empty($files) | 99–106 | sanitize_file_name(), pathinfo(), pathinfo(), pathinfo(), wp_check_filetype(), wp_get_upload_dir(), strtolower(), trailingslashit(), file_exists(), is_dir(), apply_filters(), array_diff(), apply_filters() |
$name !== false && !file_exists() && !$lc_ext && is_dir() && $dir && $files === null && empty($files) | 100–107 | sanitize_file_name(), pathinfo(), pathinfo(), pathinfo(), wp_check_filetype(), wp_get_upload_dir(), strtolower(), trailingslashit(), file_exists(), is_dir(), apply_filters(), scandir(), apply_filters() |
188 further outcomes, up to 181 instructions
$name !== false && !file_exists() && $lc_ext && is_dir() && $dir && $files !== null && empty($files) | 100–108 | sanitize_file_name(), pathinfo(), pathinfo(), pathinfo(), wp_check_filetype(), wp_get_upload_dir(), strtolower(), trailingslashit(), file_exists(), file_exists(), is_dir(), apply_filters(), apply_filters() |
$name !== false && !file_exists() && $lc_ext && empty($output_formats[$mime_type]) && empty($output_formats) | 101–112 | sanitize_file_name(), pathinfo(), pathinfo(), pathinfo(), wp_check_filetype(), wp_get_upload_dir(), strtolower(), trailingslashit(), file_exists(), file_exists(), wp_get_image_editor_output_format(), array_diff(), apply_filters() |
$name !== false && !file_exists() && !$lc_ext && empty($output_formats[$mime_type]) && empty($output_formats) | 102–114 | sanitize_file_name(), pathinfo(), pathinfo(), pathinfo(), wp_check_filetype(), wp_get_upload_dir(), strtolower(), trailingslashit(), file_exists(), is_dir(), wp_get_image_editor_output_format(), array_diff(), apply_filters() |
$name !== false && !file_exists() && !$lc_ext | 104–117 | sanitize_file_name(), pathinfo(), pathinfo(), pathinfo(), wp_check_filetype(), wp_get_upload_dir(), strtolower(), trailingslashit(), file_exists(), wp_get_image_editor_output_format(), array_intersect(), array_diff(), apply_filters() |
$name !== false && !file_exists() && !$lc_ext && is_dir() && $dir && $files !== null && $i && !_wp_check_existing_file_names() | 104–106 | sanitize_file_name(), pathinfo(), pathinfo(), pathinfo(), wp_check_filetype(), wp_get_upload_dir(), strtolower(), trailingslashit(), file_exists(), is_dir(), apply_filters(), _wp_check_existing_file_names(), apply_filters() |
$name !== false && $value && $lc_ext !== false && !file_exists() && !$lc_ext && is_dir() && $dir && $files !== null && empty($files) | 104–109 | sanitize_file_name(), pathinfo(), pathinfo(), pathinfo(), wp_check_filetype(), wp_get_upload_dir(), strtolower(), trailingslashit(), preg_quote(), file_exists(), is_dir(), apply_filters(), apply_filters() |
$name !== false && $value && $lc_ext !== false && !file_exists() && !$lc_ext && empty($output_formats[$mime_type]) && empty($output_formats) | 105–113 | sanitize_file_name(), pathinfo(), pathinfo(), pathinfo(), wp_check_filetype(), wp_get_upload_dir(), strtolower(), trailingslashit(), preg_quote(), file_exists(), wp_get_image_editor_output_format(), array_diff(), apply_filters() |
$name !== false && !file_exists() && !$lc_ext && is_dir() && $dir && $files === null && !empty($files) | 105–112 | sanitize_file_name(), pathinfo(), pathinfo(), pathinfo(), wp_check_filetype(), wp_get_upload_dir(), strtolower(), trailingslashit(), file_exists(), is_dir(), apply_filters(), scandir(), array_diff(), apply_filters() |
$name !== false && !file_exists() && $lc_ext && is_dir() && $dir && $files !== null && !empty($files) | 105–113 | sanitize_file_name(), pathinfo(), pathinfo(), pathinfo(), wp_check_filetype(), wp_get_upload_dir(), strtolower(), trailingslashit(), file_exists(), file_exists(), is_dir(), apply_filters(), array_diff(), apply_filters() |
$name !== false && $value && !file_exists() && $lc_ext && is_dir() && $dir && $files === null && empty($files) | 106–114 | sanitize_file_name(), pathinfo(), pathinfo(), pathinfo(), wp_check_filetype(), wp_get_upload_dir(), strtolower(), trailingslashit(), file_exists(), file_exists(), is_dir(), apply_filters(), scandir(), apply_filters() |
$name !== false && !file_exists() && !$lc_ext && empty($output_formats[$mime_type]) && empty($output_formats) && !empty($alt_filenames) && $i && !_wp_check_alternate_file_names() | 107–111 | sanitize_file_name(), pathinfo(), pathinfo(), pathinfo(), wp_check_filetype(), wp_get_upload_dir(), strtolower(), trailingslashit(), file_exists(), wp_get_image_editor_output_format(), array_diff(), _wp_check_alternate_file_names(), apply_filters() |
$name !== false && !file_exists() && $lc_ext && empty($output_formats[$mime_type]) && empty($output_formats) | 108–121 | sanitize_file_name(), pathinfo(), pathinfo(), pathinfo(), wp_check_filetype(), wp_get_upload_dir(), strtolower(), trailingslashit(), file_exists(), file_exists(), is_dir(), wp_get_image_editor_output_format(), array_diff(), apply_filters() |
$name !== false && !file_exists() && !$lc_ext && is_dir() && $dir && $files !== null && !empty($files) && $i && !_wp_check_existing_file_names() | 109–111 | sanitize_file_name(), pathinfo(), pathinfo(), pathinfo(), wp_check_filetype(), wp_get_upload_dir(), strtolower(), trailingslashit(), file_exists(), is_dir(), apply_filters(), array_diff(), _wp_check_existing_file_names(), apply_filters() |
$name !== false && $value && $lc_ext !== false && !file_exists() && !$lc_ext && is_dir() && $dir && $files !== null && !empty($files) | 109–114 | sanitize_file_name(), pathinfo(), pathinfo(), pathinfo(), wp_check_filetype(), wp_get_upload_dir(), strtolower(), trailingslashit(), preg_quote(), file_exists(), is_dir(), apply_filters(), array_diff(), apply_filters() |
$name !== false && !file_exists() && !$lc_ext && is_dir() && $dir && $files === null && $i && !_wp_check_existing_file_names() | 110–112 | sanitize_file_name(), pathinfo(), pathinfo(), pathinfo(), wp_check_filetype(), wp_get_upload_dir(), strtolower(), trailingslashit(), file_exists(), is_dir(), apply_filters(), scandir(), _wp_check_existing_file_names(), apply_filters() |
$name !== false && !file_exists() && $lc_ext | 110–124 | sanitize_file_name(), pathinfo(), pathinfo(), pathinfo(), wp_check_filetype(), wp_get_upload_dir(), strtolower(), trailingslashit(), file_exists(), file_exists(), wp_get_image_editor_output_format(), array_intersect(), array_diff(), apply_filters() |
$name !== false && !file_exists() && $lc_ext && is_dir() && $dir && $files !== null && $i && !_wp_check_existing_file_names() | 110–113 | sanitize_file_name(), pathinfo(), pathinfo(), pathinfo(), wp_check_filetype(), wp_get_upload_dir(), strtolower(), trailingslashit(), file_exists(), file_exists(), is_dir(), apply_filters(), _wp_check_existing_file_names(), apply_filters() |
$name !== false && $value && $lc_ext !== false && !file_exists() && !$lc_ext && is_dir() && $dir && $files === null && empty($files) | 110–115 | sanitize_file_name(), pathinfo(), pathinfo(), pathinfo(), wp_check_filetype(), wp_get_upload_dir(), strtolower(), trailingslashit(), preg_quote(), file_exists(), is_dir(), apply_filters(), scandir(), apply_filters() |
$name !== false && $value && $lc_ext !== false && !file_exists() && $lc_ext && is_dir() && $dir && $files !== null && empty($files) | 110–116 | sanitize_file_name(), pathinfo(), pathinfo(), pathinfo(), wp_check_filetype(), wp_get_upload_dir(), strtolower(), trailingslashit(), preg_quote(), file_exists(), file_exists(), is_dir(), apply_filters(), apply_filters() |
$name !== false && !file_exists() && !$lc_ext | 111–126 | sanitize_file_name(), pathinfo(), pathinfo(), pathinfo(), wp_check_filetype(), wp_get_upload_dir(), strtolower(), trailingslashit(), file_exists(), is_dir(), wp_get_image_editor_output_format(), array_intersect(), array_diff(), apply_filters() |
$name !== false && $value && $lc_ext !== false && !file_exists() && $lc_ext && empty($output_formats[$mime_type]) && empty($output_formats) | 111–120 | sanitize_file_name(), pathinfo(), pathinfo(), pathinfo(), wp_check_filetype(), wp_get_upload_dir(), strtolower(), trailingslashit(), preg_quote(), file_exists(), file_exists(), wp_get_image_editor_output_format(), array_diff(), apply_filters() |
$name !== false && $value && !file_exists() && $lc_ext && is_dir() && $dir && $files === null && !empty($files) | 111–119 | sanitize_file_name(), pathinfo(), pathinfo(), pathinfo(), wp_check_filetype(), wp_get_upload_dir(), strtolower(), trailingslashit(), file_exists(), file_exists(), is_dir(), apply_filters(), scandir(), array_diff(), apply_filters() |
$name !== false && $value && $lc_ext !== false && !file_exists() && !$lc_ext && empty($output_formats[$mime_type]) && empty($output_formats) | 112–122 | sanitize_file_name(), pathinfo(), pathinfo(), pathinfo(), wp_check_filetype(), wp_get_upload_dir(), strtolower(), trailingslashit(), preg_quote(), file_exists(), is_dir(), wp_get_image_editor_output_format(), array_diff(), apply_filters() |
$name !== false && !file_exists() && $lc_ext && empty($output_formats[$mime_type]) && empty($output_formats) && !empty($alt_filenames) && $i && !_wp_check_alternate_file_names() | 113–118 | sanitize_file_name(), pathinfo(), pathinfo(), pathinfo(), wp_check_filetype(), wp_get_upload_dir(), strtolower(), trailingslashit(), file_exists(), file_exists(), wp_get_image_editor_output_format(), array_diff(), _wp_check_alternate_file_names(), apply_filters() |
$name !== false && !file_exists() && !$lc_ext && empty($output_formats[$mime_type]) && empty($output_formats) && !empty($alt_filenames) && $i && !_wp_check_alternate_file_names() | 114–120 | sanitize_file_name(), pathinfo(), pathinfo(), pathinfo(), wp_check_filetype(), wp_get_upload_dir(), strtolower(), trailingslashit(), file_exists(), is_dir(), wp_get_image_editor_output_format(), array_diff(), _wp_check_alternate_file_names(), apply_filters() |
$name !== false && $value && $lc_ext !== false && !file_exists() && !$lc_ext | 114–125 | sanitize_file_name(), pathinfo(), pathinfo(), pathinfo(), wp_check_filetype(), wp_get_upload_dir(), strtolower(), trailingslashit(), preg_quote(), file_exists(), wp_get_image_editor_output_format(), array_intersect(), array_diff(), apply_filters() |
$name !== false && $value && $lc_ext !== false && !file_exists() && !$lc_ext && is_dir() && $dir && $files !== null && $i && !_wp_check_existing_file_names() | 114 | sanitize_file_name(), pathinfo(), pathinfo(), pathinfo(), wp_check_filetype(), wp_get_upload_dir(), strtolower(), trailingslashit(), preg_quote(), file_exists(), is_dir(), apply_filters(), _wp_check_existing_file_names(), apply_filters() |
$name !== false && !file_exists() && !$lc_ext && is_dir() && $dir && $files === null && !empty($files) && $i && !_wp_check_existing_file_names() | 115–117 | sanitize_file_name(), pathinfo(), pathinfo(), pathinfo(), wp_check_filetype(), wp_get_upload_dir(), strtolower(), trailingslashit(), file_exists(), is_dir(), apply_filters(), scandir(), array_diff(), _wp_check_existing_file_names(), apply_filters() |
$name !== false && !file_exists() && $lc_ext && is_dir() && $dir && $files !== null && !empty($files) && $i && !_wp_check_existing_file_names() | 115–118 | sanitize_file_name(), pathinfo(), pathinfo(), pathinfo(), wp_check_filetype(), wp_get_upload_dir(), strtolower(), trailingslashit(), file_exists(), file_exists(), is_dir(), apply_filters(), array_diff(), _wp_check_existing_file_names(), apply_filters() |
$name !== false && $value && $lc_ext !== false && !file_exists() && !$lc_ext && is_dir() && $dir && $files === null && !empty($files) | 115–120 | sanitize_file_name(), pathinfo(), pathinfo(), pathinfo(), wp_check_filetype(), wp_get_upload_dir(), strtolower(), trailingslashit(), preg_quote(), file_exists(), is_dir(), apply_filters(), scandir(), array_diff(), apply_filters() |
$name !== false && $value && $lc_ext !== false && !file_exists() && $lc_ext && is_dir() && $dir && $files !== null && !empty($files) | 115–121 | sanitize_file_name(), pathinfo(), pathinfo(), pathinfo(), wp_check_filetype(), wp_get_upload_dir(), strtolower(), trailingslashit(), preg_quote(), file_exists(), file_exists(), is_dir(), apply_filters(), array_diff(), apply_filters() |
$name !== false && !file_exists() && !$lc_ext && !empty($alt_filenames) && $i && !_wp_check_alternate_file_names() | 116–123 | sanitize_file_name(), pathinfo(), pathinfo(), pathinfo(), wp_check_filetype(), wp_get_upload_dir(), strtolower(), trailingslashit(), file_exists(), wp_get_image_editor_output_format(), array_intersect(), array_diff(), _wp_check_alternate_file_names(), apply_filters() |
$name !== false && $value && !file_exists() && $lc_ext && is_dir() && $dir && $files === null && $i && !_wp_check_existing_file_names() | 116–119 | sanitize_file_name(), pathinfo(), pathinfo(), pathinfo(), wp_check_filetype(), wp_get_upload_dir(), strtolower(), trailingslashit(), file_exists(), file_exists(), is_dir(), apply_filters(), scandir(), _wp_check_existing_file_names(), apply_filters() |
$name !== false && $value && $lc_ext !== false && !file_exists() && $lc_ext && is_dir() && $dir && $files === null && empty($files) | 116–122 | sanitize_file_name(), pathinfo(), pathinfo(), pathinfo(), wp_check_filetype(), wp_get_upload_dir(), strtolower(), trailingslashit(), preg_quote(), file_exists(), file_exists(), is_dir(), apply_filters(), scandir(), apply_filters() |
$name !== false && $value && $lc_ext !== false && !file_exists() && !$lc_ext && empty($output_formats[$mime_type]) && empty($output_formats) && !empty($alt_filenames) && $i && !_wp_check_alternate_file_names() | 117–119 | sanitize_file_name(), pathinfo(), pathinfo(), pathinfo(), wp_check_filetype(), wp_get_upload_dir(), strtolower(), trailingslashit(), preg_quote(), file_exists(), wp_get_image_editor_output_format(), array_diff(), _wp_check_alternate_file_names(), apply_filters() |
$name !== false && !file_exists() && $lc_ext | 117–133 | sanitize_file_name(), pathinfo(), pathinfo(), pathinfo(), wp_check_filetype(), wp_get_upload_dir(), strtolower(), trailingslashit(), file_exists(), file_exists(), is_dir(), wp_get_image_editor_output_format(), array_intersect(), array_diff(), apply_filters() |
$name !== false && !file_exists() && !$lc_ext && is_dir() && $dir && $files !== null && empty($files) && empty($output_formats[$mime_type]) && empty($output_formats) | 118–132 | sanitize_file_name(), pathinfo(), pathinfo(), pathinfo(), wp_check_filetype(), wp_get_upload_dir(), strtolower(), trailingslashit(), file_exists(), is_dir(), apply_filters(), wp_get_image_editor_output_format(), array_diff(), apply_filters() |
$name !== false && $value && $lc_ext !== false && !file_exists() && $lc_ext && empty($output_formats[$mime_type]) && empty($output_formats) | 118–129 | sanitize_file_name(), pathinfo(), pathinfo(), pathinfo(), wp_check_filetype(), wp_get_upload_dir(), strtolower(), trailingslashit(), preg_quote(), file_exists(), file_exists(), is_dir(), wp_get_image_editor_output_format(), array_diff(), apply_filters() |
$name !== false && $value && $lc_ext !== false && !file_exists() && !$lc_ext && is_dir() && $dir && $files !== null && !empty($files) && $i && !_wp_check_existing_file_names() | 119 | sanitize_file_name(), pathinfo(), pathinfo(), pathinfo(), wp_check_filetype(), wp_get_upload_dir(), strtolower(), trailingslashit(), preg_quote(), file_exists(), is_dir(), apply_filters(), array_diff(), _wp_check_existing_file_names(), apply_filters() |
$name !== false && !file_exists() && $lc_ext && empty($output_formats[$mime_type]) && empty($output_formats) && !empty($alt_filenames) && $i && !_wp_check_alternate_file_names() | 120–127 | sanitize_file_name(), pathinfo(), pathinfo(), pathinfo(), wp_check_filetype(), wp_get_upload_dir(), strtolower(), trailingslashit(), file_exists(), file_exists(), is_dir(), wp_get_image_editor_output_format(), array_diff(), _wp_check_alternate_file_names(), apply_filters() |
$name !== false && $value && $lc_ext !== false && !file_exists() && !$lc_ext && is_dir() && $dir && $files === null && $i && !_wp_check_existing_file_names() | 120 | sanitize_file_name(), pathinfo(), pathinfo(), pathinfo(), wp_check_filetype(), wp_get_upload_dir(), strtolower(), trailingslashit(), preg_quote(), file_exists(), is_dir(), apply_filters(), scandir(), _wp_check_existing_file_names(), apply_filters() |
$name !== false && $value && $lc_ext !== false && !file_exists() && $lc_ext | 120–132 | sanitize_file_name(), pathinfo(), pathinfo(), pathinfo(), wp_check_filetype(), wp_get_upload_dir(), strtolower(), trailingslashit(), preg_quote(), file_exists(), file_exists(), wp_get_image_editor_output_format(), array_intersect(), array_diff(), apply_filters() |
$name !== false && $value && $lc_ext !== false && !file_exists() && $lc_ext && is_dir() && $dir && $files !== null && $i && !_wp_check_existing_file_names() | 120–121 | sanitize_file_name(), pathinfo(), pathinfo(), pathinfo(), wp_check_filetype(), wp_get_upload_dir(), strtolower(), trailingslashit(), preg_quote(), file_exists(), file_exists(), is_dir(), apply_filters(), _wp_check_existing_file_names(), apply_filters() |
$name !== false && $value && $lc_ext !== false && !file_exists() && !$lc_ext | 121–134 | sanitize_file_name(), pathinfo(), pathinfo(), pathinfo(), wp_check_filetype(), wp_get_upload_dir(), strtolower(), trailingslashit(), preg_quote(), file_exists(), is_dir(), wp_get_image_editor_output_format(), array_intersect(), array_diff(), apply_filters() |
$name !== false && $value && !file_exists() && $lc_ext && is_dir() && $dir && $files === null && !empty($files) && $i && !_wp_check_existing_file_names() | 121–124 | sanitize_file_name(), pathinfo(), pathinfo(), pathinfo(), wp_check_filetype(), wp_get_upload_dir(), strtolower(), trailingslashit(), file_exists(), file_exists(), is_dir(), apply_filters(), scandir(), array_diff(), _wp_check_existing_file_names(), apply_filters() |
$name !== false && $value && $lc_ext !== false && !file_exists() && $lc_ext && is_dir() && $dir && $files === null && !empty($files) | 121–127 | sanitize_file_name(), pathinfo(), pathinfo(), pathinfo(), wp_check_filetype(), wp_get_upload_dir(), strtolower(), trailingslashit(), preg_quote(), file_exists(), file_exists(), is_dir(), apply_filters(), scandir(), array_diff(), apply_filters() |
$name !== false && !file_exists() && $lc_ext && !empty($alt_filenames) && $i && !_wp_check_alternate_file_names() | 122–130 | sanitize_file_name(), pathinfo(), pathinfo(), pathinfo(), wp_check_filetype(), wp_get_upload_dir(), strtolower(), trailingslashit(), file_exists(), file_exists(), wp_get_image_editor_output_format(), array_intersect(), array_diff(), _wp_check_alternate_file_names(), apply_filters() |
$name !== false && !file_exists() && !$lc_ext && !empty($alt_filenames) && $i && !_wp_check_alternate_file_names() | 123–132 | sanitize_file_name(), pathinfo(), pathinfo(), pathinfo(), wp_check_filetype(), wp_get_upload_dir(), strtolower(), trailingslashit(), file_exists(), is_dir(), wp_get_image_editor_output_format(), array_intersect(), array_diff(), _wp_check_alternate_file_names(), apply_filters() |
$name !== false && !file_exists() && !$lc_ext && is_dir() && $dir && $files !== null && !empty($files) && empty($output_formats[$mime_type]) && empty($output_formats) | 123–137 | sanitize_file_name(), pathinfo(), pathinfo(), pathinfo(), wp_check_filetype(), wp_get_upload_dir(), strtolower(), trailingslashit(), file_exists(), is_dir(), apply_filters(), array_diff(), wp_get_image_editor_output_format(), array_diff(), apply_filters() |
$name !== false && $value && $lc_ext !== false && !file_exists() && $lc_ext && empty($output_formats[$mime_type]) && empty($output_formats) && !empty($alt_filenames) && $i && !_wp_check_alternate_file_names() | 123–126 | sanitize_file_name(), pathinfo(), pathinfo(), pathinfo(), wp_check_filetype(), wp_get_upload_dir(), strtolower(), trailingslashit(), preg_quote(), file_exists(), file_exists(), wp_get_image_editor_output_format(), array_diff(), _wp_check_alternate_file_names(), apply_filters() |
$name !== false && !file_exists() && !$lc_ext && is_dir() && $dir && $files === null && empty($files) && empty($output_formats[$mime_type]) && empty($output_formats) | 124–138 | sanitize_file_name(), pathinfo(), pathinfo(), pathinfo(), wp_check_filetype(), wp_get_upload_dir(), strtolower(), trailingslashit(), file_exists(), is_dir(), apply_filters(), scandir(), wp_get_image_editor_output_format(), array_diff(), apply_filters() |
$name !== false && !file_exists() && $lc_ext && is_dir() && $dir && $files !== null && empty($files) && empty($output_formats[$mime_type]) && empty($output_formats) | 124–139 | sanitize_file_name(), pathinfo(), pathinfo(), pathinfo(), wp_check_filetype(), wp_get_upload_dir(), strtolower(), trailingslashit(), file_exists(), file_exists(), is_dir(), apply_filters(), wp_get_image_editor_output_format(), array_diff(), apply_filters() |
$name !== false && $value && $lc_ext !== false && !file_exists() && !$lc_ext && empty($output_formats[$mime_type]) && empty($output_formats) && !empty($alt_filenames) && $i && !_wp_check_alternate_file_names() | 124–128 | sanitize_file_name(), pathinfo(), pathinfo(), pathinfo(), wp_check_filetype(), wp_get_upload_dir(), strtolower(), trailingslashit(), preg_quote(), file_exists(), is_dir(), wp_get_image_editor_output_format(), array_diff(), _wp_check_alternate_file_names(), apply_filters() |
$name !== false && $value && $lc_ext !== false && !file_exists() && !$lc_ext && is_dir() && $dir && $files === null && !empty($files) && $i && !_wp_check_existing_file_names() | 125 | sanitize_file_name(), pathinfo(), pathinfo(), pathinfo(), wp_check_filetype(), wp_get_upload_dir(), strtolower(), trailingslashit(), preg_quote(), file_exists(), is_dir(), apply_filters(), scandir(), array_diff(), _wp_check_existing_file_names(), apply_filters() |
$name !== false && $value && $lc_ext !== false && !file_exists() && $lc_ext && is_dir() && $dir && $files !== null && !empty($files) && $i && !_wp_check_existing_file_names() | 125–126 | sanitize_file_name(), pathinfo(), pathinfo(), pathinfo(), wp_check_filetype(), wp_get_upload_dir(), strtolower(), trailingslashit(), preg_quote(), file_exists(), file_exists(), is_dir(), apply_filters(), array_diff(), _wp_check_existing_file_names(), apply_filters() |
$name !== false && $value && $lc_ext !== false && !file_exists() && !$lc_ext && !empty($alt_filenames) && $i && !_wp_check_alternate_file_names() | 126–131 | sanitize_file_name(), pathinfo(), pathinfo(), pathinfo(), wp_check_filetype(), wp_get_upload_dir(), strtolower(), trailingslashit(), preg_quote(), file_exists(), wp_get_image_editor_output_format(), array_intersect(), array_diff(), _wp_check_alternate_file_names(), apply_filters() |
$name !== false && $value && $lc_ext !== false && !file_exists() && $lc_ext && is_dir() && $dir && $files === null && $i && !_wp_check_existing_file_names() | 126–127 | sanitize_file_name(), pathinfo(), pathinfo(), pathinfo(), wp_check_filetype(), wp_get_upload_dir(), strtolower(), trailingslashit(), preg_quote(), file_exists(), file_exists(), is_dir(), apply_filters(), scandir(), _wp_check_existing_file_names(), apply_filters() |
$name !== false && !file_exists() && !$lc_ext && is_dir() && $dir && $files !== null && empty($files) | 127–144 | sanitize_file_name(), pathinfo(), pathinfo(), pathinfo(), wp_check_filetype(), wp_get_upload_dir(), strtolower(), trailingslashit(), file_exists(), is_dir(), apply_filters(), wp_get_image_editor_output_format(), array_intersect(), array_diff(), apply_filters() |
$name !== false && $value && $lc_ext !== false && !file_exists() && $lc_ext | 127–141 | sanitize_file_name(), pathinfo(), pathinfo(), pathinfo(), wp_check_filetype(), wp_get_upload_dir(), strtolower(), trailingslashit(), preg_quote(), file_exists(), file_exists(), is_dir(), wp_get_image_editor_output_format(), array_intersect(), array_diff(), apply_filters() |
$name !== false && !file_exists() && !$lc_ext && is_dir() && $dir && $files !== null && $i && !_wp_check_existing_file_names() && empty($output_formats[$mime_type]) && empty($output_formats) | 128–137 | sanitize_file_name(), pathinfo(), pathinfo(), pathinfo(), wp_check_filetype(), wp_get_upload_dir(), strtolower(), trailingslashit(), file_exists(), is_dir(), apply_filters(), _wp_check_existing_file_names(), wp_get_image_editor_output_format(), array_diff(), apply_filters() |
$name !== false && $value && $lc_ext !== false && !file_exists() && !$lc_ext && is_dir() && $dir && $files !== null && empty($files) && empty($output_formats[$mime_type]) && empty($output_formats) | 128–140 | sanitize_file_name(), pathinfo(), pathinfo(), pathinfo(), wp_check_filetype(), wp_get_upload_dir(), strtolower(), trailingslashit(), preg_quote(), file_exists(), is_dir(), apply_filters(), wp_get_image_editor_output_format(), array_diff(), apply_filters() |
$name !== false && !file_exists() && !$lc_ext && is_dir() && $dir && $files === null && !empty($files) && empty($output_formats[$mime_type]) && empty($output_formats) | 129–143 | sanitize_file_name(), pathinfo(), pathinfo(), pathinfo(), wp_check_filetype(), wp_get_upload_dir(), strtolower(), trailingslashit(), file_exists(), is_dir(), apply_filters(), scandir(), array_diff(), wp_get_image_editor_output_format(), array_diff(), apply_filters() |
$name !== false && !file_exists() && $lc_ext && !empty($alt_filenames) && $i && !_wp_check_alternate_file_names() | 129–139 | sanitize_file_name(), pathinfo(), pathinfo(), pathinfo(), wp_check_filetype(), wp_get_upload_dir(), strtolower(), trailingslashit(), file_exists(), file_exists(), is_dir(), wp_get_image_editor_output_format(), array_intersect(), array_diff(), _wp_check_alternate_file_names(), apply_filters() |
$name !== false && !file_exists() && $lc_ext && is_dir() && $dir && $files !== null && !empty($files) && empty($output_formats[$mime_type]) && empty($output_formats) | 129–144 | sanitize_file_name(), pathinfo(), pathinfo(), pathinfo(), wp_check_filetype(), wp_get_upload_dir(), strtolower(), trailingslashit(), file_exists(), file_exists(), is_dir(), apply_filters(), array_diff(), wp_get_image_editor_output_format(), array_diff(), apply_filters() |
$name !== false && !file_exists() && !$lc_ext && is_dir() && $dir && $files !== null && empty($files) && empty($output_formats[$mime_type]) && empty($output_formats) && !empty($alt_filenames) && $i && !_wp_check_alternate_file_names() | 130–138 | sanitize_file_name(), pathinfo(), pathinfo(), pathinfo(), wp_check_filetype(), wp_get_upload_dir(), strtolower(), trailingslashit(), file_exists(), is_dir(), apply_filters(), wp_get_image_editor_output_format(), array_diff(), _wp_check_alternate_file_names(), apply_filters() |
$name !== false && $value && !file_exists() && $lc_ext && is_dir() && $dir && $files === null && empty($files) && empty($output_formats[$mime_type]) && empty($output_formats) | 130–145 | sanitize_file_name(), pathinfo(), pathinfo(), pathinfo(), wp_check_filetype(), wp_get_upload_dir(), strtolower(), trailingslashit(), file_exists(), file_exists(), is_dir(), apply_filters(), scandir(), wp_get_image_editor_output_format(), array_diff(), apply_filters() |
$name !== false && $value && $lc_ext !== false && !file_exists() && $lc_ext && empty($output_formats[$mime_type]) && empty($output_formats) && !empty($alt_filenames) && $i && !_wp_check_alternate_file_names() | 130–135 | sanitize_file_name(), pathinfo(), pathinfo(), pathinfo(), wp_check_filetype(), wp_get_upload_dir(), strtolower(), trailingslashit(), preg_quote(), file_exists(), file_exists(), is_dir(), wp_get_image_editor_output_format(), array_diff(), _wp_check_alternate_file_names(), apply_filters() |
$name !== false && $value && $lc_ext !== false && !file_exists() && $lc_ext && is_dir() && $dir && $files === null && !empty($files) && $i && !_wp_check_existing_file_names() | 131–132 | sanitize_file_name(), pathinfo(), pathinfo(), pathinfo(), wp_check_filetype(), wp_get_upload_dir(), strtolower(), trailingslashit(), preg_quote(), file_exists(), file_exists(), is_dir(), apply_filters(), scandir(), array_diff(), _wp_check_existing_file_names(), apply_filters() |
$name !== false && !file_exists() && !$lc_ext && is_dir() && $dir && $files !== null && !empty($files) | 132–149 | sanitize_file_name(), pathinfo(), pathinfo(), pathinfo(), wp_check_filetype(), wp_get_upload_dir(), strtolower(), trailingslashit(), file_exists(), is_dir(), apply_filters(), array_diff(), wp_get_image_editor_output_format(), array_intersect(), array_diff(), apply_filters() |
$name !== false && $value && $lc_ext !== false && !file_exists() && $lc_ext && !empty($alt_filenames) && $i && !_wp_check_alternate_file_names() | 132–138 | sanitize_file_name(), pathinfo(), pathinfo(), pathinfo(), wp_check_filetype(), wp_get_upload_dir(), strtolower(), trailingslashit(), preg_quote(), file_exists(), file_exists(), wp_get_image_editor_output_format(), array_intersect(), array_diff(), _wp_check_alternate_file_names(), apply_filters() |
$name !== false && !file_exists() && !$lc_ext && is_dir() && $dir && $files !== null && !empty($files) && $i && !_wp_check_existing_file_names() && empty($output_formats[$mime_type]) && empty($output_formats) | 133–142 | sanitize_file_name(), pathinfo(), pathinfo(), pathinfo(), wp_check_filetype(), wp_get_upload_dir(), strtolower(), trailingslashit(), file_exists(), is_dir(), apply_filters(), array_diff(), _wp_check_existing_file_names(), wp_get_image_editor_output_format(), array_diff(), apply_filters() |
$name !== false && !file_exists() && !$lc_ext && is_dir() && $dir && $files === null && empty($files) | 133–150 | sanitize_file_name(), pathinfo(), pathinfo(), pathinfo(), wp_check_filetype(), wp_get_upload_dir(), strtolower(), trailingslashit(), file_exists(), is_dir(), apply_filters(), scandir(), wp_get_image_editor_output_format(), array_intersect(), array_diff(), apply_filters() |
$name !== false && !file_exists() && $lc_ext && is_dir() && $dir && $files !== null && empty($files) | 133–151 | sanitize_file_name(), pathinfo(), pathinfo(), pathinfo(), wp_check_filetype(), wp_get_upload_dir(), strtolower(), trailingslashit(), file_exists(), file_exists(), is_dir(), apply_filters(), wp_get_image_editor_output_format(), array_intersect(), array_diff(), apply_filters() |
$name !== false && $value && $lc_ext !== false && !file_exists() && !$lc_ext && !empty($alt_filenames) && $i && !_wp_check_alternate_file_names() | 133–140 | sanitize_file_name(), pathinfo(), pathinfo(), pathinfo(), wp_check_filetype(), wp_get_upload_dir(), strtolower(), trailingslashit(), preg_quote(), file_exists(), is_dir(), wp_get_image_editor_output_format(), array_intersect(), array_diff(), _wp_check_alternate_file_names(), apply_filters() |
$name !== false && $value && $lc_ext !== false && !file_exists() && !$lc_ext && is_dir() && $dir && $files !== null && !empty($files) && empty($output_formats[$mime_type]) && empty($output_formats) | 133–145 | sanitize_file_name(), pathinfo(), pathinfo(), pathinfo(), wp_check_filetype(), wp_get_upload_dir(), strtolower(), trailingslashit(), preg_quote(), file_exists(), is_dir(), apply_filters(), array_diff(), wp_get_image_editor_output_format(), array_diff(), apply_filters() |
$name !== false && !file_exists() && !$lc_ext && is_dir() && $dir && $files === null && $i && !_wp_check_existing_file_names() && empty($output_formats[$mime_type]) && empty($output_formats) | 134–143 | sanitize_file_name(), pathinfo(), pathinfo(), pathinfo(), wp_check_filetype(), wp_get_upload_dir(), strtolower(), trailingslashit(), file_exists(), is_dir(), apply_filters(), scandir(), _wp_check_existing_file_names(), wp_get_image_editor_output_format(), array_diff(), apply_filters() |
$name !== false && !file_exists() && $lc_ext && is_dir() && $dir && $files !== null && $i && !_wp_check_existing_file_names() && empty($output_formats[$mime_type]) && empty($output_formats) | 134–144 | sanitize_file_name(), pathinfo(), pathinfo(), pathinfo(), wp_check_filetype(), wp_get_upload_dir(), strtolower(), trailingslashit(), file_exists(), file_exists(), is_dir(), apply_filters(), _wp_check_existing_file_names(), wp_get_image_editor_output_format(), array_diff(), apply_filters() |
$name !== false && $value && $lc_ext !== false && !file_exists() && !$lc_ext && is_dir() && $dir && $files === null && empty($files) && empty($output_formats[$mime_type]) && empty($output_formats) | 134–146 | sanitize_file_name(), pathinfo(), pathinfo(), pathinfo(), wp_check_filetype(), wp_get_upload_dir(), strtolower(), trailingslashit(), preg_quote(), file_exists(), is_dir(), apply_filters(), scandir(), wp_get_image_editor_output_format(), array_diff(), apply_filters() |
$name !== false && $value && $lc_ext !== false && !file_exists() && $lc_ext && is_dir() && $dir && $files !== null && empty($files) && empty($output_formats[$mime_type]) && empty($output_formats) | 134–147 | sanitize_file_name(), pathinfo(), pathinfo(), pathinfo(), wp_check_filetype(), wp_get_upload_dir(), strtolower(), trailingslashit(), preg_quote(), file_exists(), file_exists(), is_dir(), apply_filters(), wp_get_image_editor_output_format(), array_diff(), apply_filters() |
$name !== false && !file_exists() && !$lc_ext && is_dir() && $dir && $files !== null && !empty($files) && empty($output_formats[$mime_type]) && empty($output_formats) && !empty($alt_filenames) && $i && !_wp_check_alternate_file_names() | 135–143 | sanitize_file_name(), pathinfo(), pathinfo(), pathinfo(), wp_check_filetype(), wp_get_upload_dir(), strtolower(), trailingslashit(), file_exists(), is_dir(), apply_filters(), array_diff(), wp_get_image_editor_output_format(), array_diff(), _wp_check_alternate_file_names(), apply_filters() |
$name !== false && $value && !file_exists() && $lc_ext && is_dir() && $dir && $files === null && !empty($files) && empty($output_formats[$mime_type]) && empty($output_formats) | 135–150 | sanitize_file_name(), pathinfo(), pathinfo(), pathinfo(), wp_check_filetype(), wp_get_upload_dir(), strtolower(), trailingslashit(), file_exists(), file_exists(), is_dir(), apply_filters(), scandir(), array_diff(), wp_get_image_editor_output_format(), array_diff(), apply_filters() |
$name !== false && !file_exists() && !$lc_ext && is_dir() && $dir && $files === null && empty($files) && empty($output_formats[$mime_type]) && empty($output_formats) && !empty($alt_filenames) && $i && !_wp_check_alternate_file_names() | 136–144 | sanitize_file_name(), pathinfo(), pathinfo(), pathinfo(), wp_check_filetype(), wp_get_upload_dir(), strtolower(), trailingslashit(), file_exists(), is_dir(), apply_filters(), scandir(), wp_get_image_editor_output_format(), array_diff(), _wp_check_alternate_file_names(), apply_filters() |
$name !== false && !file_exists() && $lc_ext && is_dir() && $dir && $files !== null && empty($files) && empty($output_formats[$mime_type]) && empty($output_formats) && !empty($alt_filenames) && $i && !_wp_check_alternate_file_names() | 136–145 | sanitize_file_name(), pathinfo(), pathinfo(), pathinfo(), wp_check_filetype(), wp_get_upload_dir(), strtolower(), trailingslashit(), file_exists(), file_exists(), is_dir(), apply_filters(), wp_get_image_editor_output_format(), array_diff(), _wp_check_alternate_file_names(), apply_filters() |
$name !== false && !file_exists() && !$lc_ext && is_dir() && $dir && $files !== null && $i && !_wp_check_existing_file_names() | 137–149 | sanitize_file_name(), pathinfo(), pathinfo(), pathinfo(), wp_check_filetype(), wp_get_upload_dir(), strtolower(), trailingslashit(), file_exists(), is_dir(), apply_filters(), _wp_check_existing_file_names(), wp_get_image_editor_output_format(), array_intersect(), array_diff(), apply_filters() |
$name !== false && $value && $lc_ext !== false && !file_exists() && !$lc_ext && is_dir() && $dir && $files !== null && empty($files) | 137–152 | sanitize_file_name(), pathinfo(), pathinfo(), pathinfo(), wp_check_filetype(), wp_get_upload_dir(), strtolower(), trailingslashit(), preg_quote(), file_exists(), is_dir(), apply_filters(), wp_get_image_editor_output_format(), array_intersect(), array_diff(), apply_filters() |
$name !== false && $value && $lc_ext !== false && !file_exists() && !$lc_ext && is_dir() && $dir && $files !== null && $i && !_wp_check_existing_file_names() && empty($output_formats[$mime_type]) && empty($output_formats) | 138–145 | sanitize_file_name(), pathinfo(), pathinfo(), pathinfo(), wp_check_filetype(), wp_get_upload_dir(), strtolower(), trailingslashit(), preg_quote(), file_exists(), is_dir(), apply_filters(), _wp_check_existing_file_names(), wp_get_image_editor_output_format(), array_diff(), apply_filters() |
$name !== false && !file_exists() && !$lc_ext && is_dir() && $dir && $files === null && !empty($files) | 138–155 | sanitize_file_name(), pathinfo(), pathinfo(), pathinfo(), wp_check_filetype(), wp_get_upload_dir(), strtolower(), trailingslashit(), file_exists(), is_dir(), apply_filters(), scandir(), array_diff(), wp_get_image_editor_output_format(), array_intersect(), array_diff(), apply_filters() |
$name !== false && !file_exists() && $lc_ext && is_dir() && $dir && $files !== null && !empty($files) | 138–156 | sanitize_file_name(), pathinfo(), pathinfo(), pathinfo(), wp_check_filetype(), wp_get_upload_dir(), strtolower(), trailingslashit(), file_exists(), file_exists(), is_dir(), apply_filters(), array_diff(), wp_get_image_editor_output_format(), array_intersect(), array_diff(), apply_filters() |
$name !== false && !file_exists() && !$lc_ext && is_dir() && $dir && $files !== null && empty($files) && !empty($alt_filenames) && $i && !_wp_check_alternate_file_names() | 139–150 | sanitize_file_name(), pathinfo(), pathinfo(), pathinfo(), wp_check_filetype(), wp_get_upload_dir(), strtolower(), trailingslashit(), file_exists(), is_dir(), apply_filters(), wp_get_image_editor_output_format(), array_intersect(), array_diff(), _wp_check_alternate_file_names(), apply_filters() |
$name !== false && !file_exists() && !$lc_ext && is_dir() && $dir && $files === null && !empty($files) && $i && !_wp_check_existing_file_names() && empty($output_formats[$mime_type]) && empty($output_formats) | 139–148 | sanitize_file_name(), pathinfo(), pathinfo(), pathinfo(), wp_check_filetype(), wp_get_upload_dir(), strtolower(), trailingslashit(), file_exists(), is_dir(), apply_filters(), scandir(), array_diff(), _wp_check_existing_file_names(), wp_get_image_editor_output_format(), array_diff(), apply_filters() |
$name !== false && !file_exists() && $lc_ext && is_dir() && $dir && $files !== null && !empty($files) && $i && !_wp_check_existing_file_names() && empty($output_formats[$mime_type]) && empty($output_formats) | 139–149 | sanitize_file_name(), pathinfo(), pathinfo(), pathinfo(), wp_check_filetype(), wp_get_upload_dir(), strtolower(), trailingslashit(), file_exists(), file_exists(), is_dir(), apply_filters(), array_diff(), _wp_check_existing_file_names(), wp_get_image_editor_output_format(), array_diff(), apply_filters() |
$name !== false && $value && !file_exists() && $lc_ext && is_dir() && $dir && $files === null && empty($files) | 139–157 | sanitize_file_name(), pathinfo(), pathinfo(), pathinfo(), wp_check_filetype(), wp_get_upload_dir(), strtolower(), trailingslashit(), file_exists(), file_exists(), is_dir(), apply_filters(), scandir(), wp_get_image_editor_output_format(), array_intersect(), array_diff(), apply_filters() |
$name !== false && $value && $lc_ext !== false && !file_exists() && !$lc_ext && is_dir() && $dir && $files === null && !empty($files) && empty($output_formats[$mime_type]) && empty($output_formats) | 139–151 | sanitize_file_name(), pathinfo(), pathinfo(), pathinfo(), wp_check_filetype(), wp_get_upload_dir(), strtolower(), trailingslashit(), preg_quote(), file_exists(), is_dir(), apply_filters(), scandir(), array_diff(), wp_get_image_editor_output_format(), array_diff(), apply_filters() |
$name !== false && $value && $lc_ext !== false && !file_exists() && $lc_ext && !empty($alt_filenames) && $i && !_wp_check_alternate_file_names() | 139–147 | sanitize_file_name(), pathinfo(), pathinfo(), pathinfo(), wp_check_filetype(), wp_get_upload_dir(), strtolower(), trailingslashit(), preg_quote(), file_exists(), file_exists(), is_dir(), wp_get_image_editor_output_format(), array_intersect(), array_diff(), _wp_check_alternate_file_names(), apply_filters() |
$name !== false && $value && $lc_ext !== false && !file_exists() && $lc_ext && is_dir() && $dir && $files !== null && !empty($files) && empty($output_formats[$mime_type]) && empty($output_formats) | 139–152 | sanitize_file_name(), pathinfo(), pathinfo(), pathinfo(), wp_check_filetype(), wp_get_upload_dir(), strtolower(), trailingslashit(), preg_quote(), file_exists(), file_exists(), is_dir(), apply_filters(), array_diff(), wp_get_image_editor_output_format(), array_diff(), apply_filters() |
$name !== false && !file_exists() && !$lc_ext && is_dir() && $dir && $files !== null && $i && !_wp_check_existing_file_names() && empty($output_formats[$mime_type]) && empty($output_formats) && !empty($alt_filenames) && !_wp_check_alternate_file_names() | 140–143 | sanitize_file_name(), pathinfo(), pathinfo(), pathinfo(), wp_check_filetype(), wp_get_upload_dir(), strtolower(), trailingslashit(), file_exists(), is_dir(), apply_filters(), _wp_check_existing_file_names(), wp_get_image_editor_output_format(), array_diff(), _wp_check_alternate_file_names(), apply_filters() |
$name !== false && $value && $lc_ext !== false && !file_exists() && !$lc_ext && is_dir() && $dir && $files !== null && empty($files) && empty($output_formats[$mime_type]) && empty($output_formats) && !empty($alt_filenames) && $i && !_wp_check_alternate_file_names() | 140–146 | sanitize_file_name(), pathinfo(), pathinfo(), pathinfo(), wp_check_filetype(), wp_get_upload_dir(), strtolower(), trailingslashit(), preg_quote(), file_exists(), is_dir(), apply_filters(), wp_get_image_editor_output_format(), array_diff(), _wp_check_alternate_file_names(), apply_filters() |
$name !== false && $value && !file_exists() && $lc_ext && is_dir() && $dir && $files === null && $i && !_wp_check_existing_file_names() && empty($output_formats[$mime_type]) && empty($output_formats) | 140–150 | sanitize_file_name(), pathinfo(), pathinfo(), pathinfo(), wp_check_filetype(), wp_get_upload_dir(), strtolower(), trailingslashit(), file_exists(), file_exists(), is_dir(), apply_filters(), scandir(), _wp_check_existing_file_names(), wp_get_image_editor_output_format(), array_diff(), apply_filters() |
$name !== false && $value && $lc_ext !== false && !file_exists() && $lc_ext && is_dir() && $dir && $files === null && empty($files) && empty($output_formats[$mime_type]) && empty($output_formats) | 140–153 | sanitize_file_name(), pathinfo(), pathinfo(), pathinfo(), wp_check_filetype(), wp_get_upload_dir(), strtolower(), trailingslashit(), preg_quote(), file_exists(), file_exists(), is_dir(), apply_filters(), scandir(), wp_get_image_editor_output_format(), array_diff(), apply_filters() |
$name !== false && !file_exists() && !$lc_ext && is_dir() && $dir && $files === null && !empty($files) && empty($output_formats[$mime_type]) && empty($output_formats) && !empty($alt_filenames) && $i && !_wp_check_alternate_file_names() | 141–149 | sanitize_file_name(), pathinfo(), pathinfo(), pathinfo(), wp_check_filetype(), wp_get_upload_dir(), strtolower(), trailingslashit(), file_exists(), is_dir(), apply_filters(), scandir(), array_diff(), wp_get_image_editor_output_format(), array_diff(), _wp_check_alternate_file_names(), apply_filters() |
$name !== false && !file_exists() && $lc_ext && is_dir() && $dir && $files !== null && !empty($files) && empty($output_formats[$mime_type]) && empty($output_formats) && !empty($alt_filenames) && $i && !_wp_check_alternate_file_names() | 141–150 | sanitize_file_name(), pathinfo(), pathinfo(), pathinfo(), wp_check_filetype(), wp_get_upload_dir(), strtolower(), trailingslashit(), file_exists(), file_exists(), is_dir(), apply_filters(), array_diff(), wp_get_image_editor_output_format(), array_diff(), _wp_check_alternate_file_names(), apply_filters() |
$name !== false && !file_exists() && !$lc_ext && is_dir() && $dir && $files !== null && !empty($files) && $i && !_wp_check_existing_file_names() | 142–154 | sanitize_file_name(), pathinfo(), pathinfo(), pathinfo(), wp_check_filetype(), wp_get_upload_dir(), strtolower(), trailingslashit(), file_exists(), is_dir(), apply_filters(), array_diff(), _wp_check_existing_file_names(), wp_get_image_editor_output_format(), array_intersect(), array_diff(), apply_filters() |
$name !== false && $value && !file_exists() && $lc_ext && is_dir() && $dir && $files === null && empty($files) && empty($output_formats[$mime_type]) && empty($output_formats) && !empty($alt_filenames) && $i && !_wp_check_alternate_file_names() | 142–151 | sanitize_file_name(), pathinfo(), pathinfo(), pathinfo(), wp_check_filetype(), wp_get_upload_dir(), strtolower(), trailingslashit(), file_exists(), file_exists(), is_dir(), apply_filters(), scandir(), wp_get_image_editor_output_format(), array_diff(), _wp_check_alternate_file_names(), apply_filters() |
$name !== false && $value && $lc_ext !== false && !file_exists() && !$lc_ext && is_dir() && $dir && $files !== null && !empty($files) | 142–157 | sanitize_file_name(), pathinfo(), pathinfo(), pathinfo(), wp_check_filetype(), wp_get_upload_dir(), strtolower(), trailingslashit(), preg_quote(), file_exists(), is_dir(), apply_filters(), array_diff(), wp_get_image_editor_output_format(), array_intersect(), array_diff(), apply_filters() |
$name !== false && !file_exists() && !$lc_ext && is_dir() && $dir && $files === null && $i && !_wp_check_existing_file_names() | 143–155 | sanitize_file_name(), pathinfo(), pathinfo(), pathinfo(), wp_check_filetype(), wp_get_upload_dir(), strtolower(), trailingslashit(), file_exists(), is_dir(), apply_filters(), scandir(), _wp_check_existing_file_names(), wp_get_image_editor_output_format(), array_intersect(), array_diff(), apply_filters() |
$name !== false && !file_exists() && $lc_ext && is_dir() && $dir && $files !== null && $i && !_wp_check_existing_file_names() | 143–156 | sanitize_file_name(), pathinfo(), pathinfo(), pathinfo(), wp_check_filetype(), wp_get_upload_dir(), strtolower(), trailingslashit(), file_exists(), file_exists(), is_dir(), apply_filters(), _wp_check_existing_file_names(), wp_get_image_editor_output_format(), array_intersect(), array_diff(), apply_filters() |
$name !== false && $value && $lc_ext !== false && !file_exists() && !$lc_ext && is_dir() && $dir && $files !== null && !empty($files) && $i && !_wp_check_existing_file_names() && empty($output_formats[$mime_type]) && empty($output_formats) | 143–150 | sanitize_file_name(), pathinfo(), pathinfo(), pathinfo(), wp_check_filetype(), wp_get_upload_dir(), strtolower(), trailingslashit(), preg_quote(), file_exists(), is_dir(), apply_filters(), array_diff(), _wp_check_existing_file_names(), wp_get_image_editor_output_format(), array_diff(), apply_filters() |
$name !== false && $value && $lc_ext !== false && !file_exists() && !$lc_ext && is_dir() && $dir && $files === null && empty($files) | 143–158 | sanitize_file_name(), pathinfo(), pathinfo(), pathinfo(), wp_check_filetype(), wp_get_upload_dir(), strtolower(), trailingslashit(), preg_quote(), file_exists(), is_dir(), apply_filters(), scandir(), wp_get_image_editor_output_format(), array_intersect(), array_diff(), apply_filters() |
$name !== false && $value && $lc_ext !== false && !file_exists() && $lc_ext && is_dir() && $dir && $files !== null && empty($files) | 143–159 | sanitize_file_name(), pathinfo(), pathinfo(), pathinfo(), wp_check_filetype(), wp_get_upload_dir(), strtolower(), trailingslashit(), preg_quote(), file_exists(), file_exists(), is_dir(), apply_filters(), wp_get_image_editor_output_format(), array_intersect(), array_diff(), apply_filters() |
$name !== false && !file_exists() && !$lc_ext && is_dir() && $dir && $files !== null && !empty($files) && !empty($alt_filenames) && $i && !_wp_check_alternate_file_names() | 144–155 | sanitize_file_name(), pathinfo(), pathinfo(), pathinfo(), wp_check_filetype(), wp_get_upload_dir(), strtolower(), trailingslashit(), file_exists(), is_dir(), apply_filters(), array_diff(), wp_get_image_editor_output_format(), array_intersect(), array_diff(), _wp_check_alternate_file_names(), apply_filters() |
$name !== false && $value && $lc_ext !== false && !file_exists() && !$lc_ext && is_dir() && $dir && $files === null && $i && !_wp_check_existing_file_names() && empty($output_formats[$mime_type]) && empty($output_formats) | 144–151 | sanitize_file_name(), pathinfo(), pathinfo(), pathinfo(), wp_check_filetype(), wp_get_upload_dir(), strtolower(), trailingslashit(), preg_quote(), file_exists(), is_dir(), apply_filters(), scandir(), _wp_check_existing_file_names(), wp_get_image_editor_output_format(), array_diff(), apply_filters() |
$name !== false && $value && $lc_ext !== false && !file_exists() && $lc_ext && is_dir() && $dir && $files !== null && $i && !_wp_check_existing_file_names() && empty($output_formats[$mime_type]) && empty($output_formats) | 144–152 | sanitize_file_name(), pathinfo(), pathinfo(), pathinfo(), wp_check_filetype(), wp_get_upload_dir(), strtolower(), trailingslashit(), preg_quote(), file_exists(), file_exists(), is_dir(), apply_filters(), _wp_check_existing_file_names(), wp_get_image_editor_output_format(), array_diff(), apply_filters() |
$name !== false && $value && !file_exists() && $lc_ext && is_dir() && $dir && $files === null && !empty($files) | 144–162 | sanitize_file_name(), pathinfo(), pathinfo(), pathinfo(), wp_check_filetype(), wp_get_upload_dir(), strtolower(), trailingslashit(), file_exists(), file_exists(), is_dir(), apply_filters(), scandir(), array_diff(), wp_get_image_editor_output_format(), array_intersect(), array_diff(), apply_filters() |
$name !== false && !file_exists() && !$lc_ext && is_dir() && $dir && $files !== null && !empty($files) && $i && !_wp_check_existing_file_names() && empty($output_formats[$mime_type]) && empty($output_formats) && !empty($alt_filenames) && !_wp_check_alternate_file_names() | 145–148 | sanitize_file_name(), pathinfo(), pathinfo(), pathinfo(), wp_check_filetype(), wp_get_upload_dir(), strtolower(), trailingslashit(), file_exists(), is_dir(), apply_filters(), array_diff(), _wp_check_existing_file_names(), wp_get_image_editor_output_format(), array_diff(), _wp_check_alternate_file_names(), apply_filters() |
$name !== false && !file_exists() && !$lc_ext && is_dir() && $dir && $files === null && empty($files) && !empty($alt_filenames) && $i && !_wp_check_alternate_file_names() | 145–156 | sanitize_file_name(), pathinfo(), pathinfo(), pathinfo(), wp_check_filetype(), wp_get_upload_dir(), strtolower(), trailingslashit(), file_exists(), is_dir(), apply_filters(), scandir(), wp_get_image_editor_output_format(), array_intersect(), array_diff(), _wp_check_alternate_file_names(), apply_filters() |
$name !== false && !file_exists() && $lc_ext && is_dir() && $dir && $files !== null && empty($files) && !empty($alt_filenames) && $i && !_wp_check_alternate_file_names() | 145–157 | sanitize_file_name(), pathinfo(), pathinfo(), pathinfo(), wp_check_filetype(), wp_get_upload_dir(), strtolower(), trailingslashit(), file_exists(), file_exists(), is_dir(), apply_filters(), wp_get_image_editor_output_format(), array_intersect(), array_diff(), _wp_check_alternate_file_names(), apply_filters() |
$name !== false && $value && $lc_ext !== false && !file_exists() && !$lc_ext && is_dir() && $dir && $files !== null && !empty($files) && empty($output_formats[$mime_type]) && empty($output_formats) && !empty($alt_filenames) && $i && !_wp_check_alternate_file_names() | 145–151 | sanitize_file_name(), pathinfo(), pathinfo(), pathinfo(), wp_check_filetype(), wp_get_upload_dir(), strtolower(), trailingslashit(), preg_quote(), file_exists(), is_dir(), apply_filters(), array_diff(), wp_get_image_editor_output_format(), array_diff(), _wp_check_alternate_file_names(), apply_filters() |
$name !== false && $value && !file_exists() && $lc_ext && is_dir() && $dir && $files === null && !empty($files) && $i && !_wp_check_existing_file_names() && empty($output_formats[$mime_type]) && empty($output_formats) | 145–155 | sanitize_file_name(), pathinfo(), pathinfo(), pathinfo(), wp_check_filetype(), wp_get_upload_dir(), strtolower(), trailingslashit(), file_exists(), file_exists(), is_dir(), apply_filters(), scandir(), array_diff(), _wp_check_existing_file_names(), wp_get_image_editor_output_format(), array_diff(), apply_filters() |
$name !== false && $value && $lc_ext !== false && !file_exists() && $lc_ext && is_dir() && $dir && $files === null && !empty($files) && empty($output_formats[$mime_type]) && empty($output_formats) | 145–158 | sanitize_file_name(), pathinfo(), pathinfo(), pathinfo(), wp_check_filetype(), wp_get_upload_dir(), strtolower(), trailingslashit(), preg_quote(), file_exists(), file_exists(), is_dir(), apply_filters(), scandir(), array_diff(), wp_get_image_editor_output_format(), array_diff(), apply_filters() |
$name !== false && !file_exists() && !$lc_ext && is_dir() && $dir && $files === null && $i && !_wp_check_existing_file_names() && empty($output_formats[$mime_type]) && empty($output_formats) && !empty($alt_filenames) && !_wp_check_alternate_file_names() | 146–149 | sanitize_file_name(), pathinfo(), pathinfo(), pathinfo(), wp_check_filetype(), wp_get_upload_dir(), strtolower(), trailingslashit(), file_exists(), is_dir(), apply_filters(), scandir(), _wp_check_existing_file_names(), wp_get_image_editor_output_format(), array_diff(), _wp_check_alternate_file_names(), apply_filters() |
$name !== false && !file_exists() && $lc_ext && is_dir() && $dir && $files !== null && $i && !_wp_check_existing_file_names() && empty($output_formats[$mime_type]) && empty($output_formats) && !empty($alt_filenames) && !_wp_check_alternate_file_names() | 146–150 | sanitize_file_name(), pathinfo(), pathinfo(), pathinfo(), wp_check_filetype(), wp_get_upload_dir(), strtolower(), trailingslashit(), file_exists(), file_exists(), is_dir(), apply_filters(), _wp_check_existing_file_names(), wp_get_image_editor_output_format(), array_diff(), _wp_check_alternate_file_names(), apply_filters() |
$name !== false && $value && $lc_ext !== false && !file_exists() && !$lc_ext && is_dir() && $dir && $files === null && empty($files) && empty($output_formats[$mime_type]) && empty($output_formats) && !empty($alt_filenames) && $i && !_wp_check_alternate_file_names() | 146–152 | sanitize_file_name(), pathinfo(), pathinfo(), pathinfo(), wp_check_filetype(), wp_get_upload_dir(), strtolower(), trailingslashit(), preg_quote(), file_exists(), is_dir(), apply_filters(), scandir(), wp_get_image_editor_output_format(), array_diff(), _wp_check_alternate_file_names(), apply_filters() |
$name !== false && $value && $lc_ext !== false && !file_exists() && $lc_ext && is_dir() && $dir && $files !== null && empty($files) && empty($output_formats[$mime_type]) && empty($output_formats) && !empty($alt_filenames) && $i && !_wp_check_alternate_file_names() | 146–153 | sanitize_file_name(), pathinfo(), pathinfo(), pathinfo(), wp_check_filetype(), wp_get_upload_dir(), strtolower(), trailingslashit(), preg_quote(), file_exists(), file_exists(), is_dir(), apply_filters(), wp_get_image_editor_output_format(), array_diff(), _wp_check_alternate_file_names(), apply_filters() |
$name !== false && $value && $lc_ext !== false && !file_exists() && !$lc_ext && is_dir() && $dir && $files !== null && $i && !_wp_check_existing_file_names() | 147–157 | sanitize_file_name(), pathinfo(), pathinfo(), pathinfo(), wp_check_filetype(), wp_get_upload_dir(), strtolower(), trailingslashit(), preg_quote(), file_exists(), is_dir(), apply_filters(), _wp_check_existing_file_names(), wp_get_image_editor_output_format(), array_intersect(), array_diff(), apply_filters() |
$name !== false && $value && !file_exists() && $lc_ext && is_dir() && $dir && $files === null && !empty($files) && empty($output_formats[$mime_type]) && empty($output_formats) && !empty($alt_filenames) && $i && !_wp_check_alternate_file_names() | 147–156 | sanitize_file_name(), pathinfo(), pathinfo(), pathinfo(), wp_check_filetype(), wp_get_upload_dir(), strtolower(), trailingslashit(), file_exists(), file_exists(), is_dir(), apply_filters(), scandir(), array_diff(), wp_get_image_editor_output_format(), array_diff(), _wp_check_alternate_file_names(), apply_filters() |
$name !== false && !file_exists() && !$lc_ext && is_dir() && $dir && $files === null && !empty($files) && $i && !_wp_check_existing_file_names() | 148–160 | sanitize_file_name(), pathinfo(), pathinfo(), pathinfo(), wp_check_filetype(), wp_get_upload_dir(), strtolower(), trailingslashit(), file_exists(), is_dir(), apply_filters(), scandir(), array_diff(), _wp_check_existing_file_names(), wp_get_image_editor_output_format(), array_intersect(), array_diff(), apply_filters() |
$name !== false && $value && !file_exists() && $lc_ext && is_dir() && $dir && $files !== null && !empty($files) && $i && !_wp_check_existing_file_names() | 148–161 | sanitize_file_name(), pathinfo(), pathinfo(), pathinfo(), wp_check_filetype(), wp_get_upload_dir(), strtolower(), trailingslashit(), file_exists(), file_exists(), is_dir(), apply_filters(), array_diff(), _wp_check_existing_file_names(), wp_get_image_editor_output_format(), array_intersect(), array_diff(), apply_filters() |
$name !== false && $value && $lc_ext !== false && !file_exists() && !$lc_ext && is_dir() && $dir && $files === null && !empty($files) | 148–163 | sanitize_file_name(), pathinfo(), pathinfo(), pathinfo(), wp_check_filetype(), wp_get_upload_dir(), strtolower(), trailingslashit(), preg_quote(), file_exists(), is_dir(), apply_filters(), scandir(), array_diff(), wp_get_image_editor_output_format(), array_intersect(), array_diff(), apply_filters() |
$name !== false && $value && $lc_ext !== false && !file_exists() && $lc_ext && is_dir() && $dir && $files !== null && !empty($files) | 148–164 | sanitize_file_name(), pathinfo(), pathinfo(), pathinfo(), wp_check_filetype(), wp_get_upload_dir(), strtolower(), trailingslashit(), preg_quote(), file_exists(), file_exists(), is_dir(), apply_filters(), array_diff(), wp_get_image_editor_output_format(), array_intersect(), array_diff(), apply_filters() |
$name !== false && !file_exists() && !$lc_ext && is_dir() && $dir && $files !== null && $i && !_wp_check_existing_file_names() && !empty($alt_filenames) && !_wp_check_alternate_file_names() | 149–155 | sanitize_file_name(), pathinfo(), pathinfo(), pathinfo(), wp_check_filetype(), wp_get_upload_dir(), strtolower(), trailingslashit(), file_exists(), is_dir(), apply_filters(), _wp_check_existing_file_names(), wp_get_image_editor_output_format(), array_intersect(), array_diff(), _wp_check_alternate_file_names(), apply_filters() |
$name !== false && $value && $lc_ext !== false && !file_exists() && !$lc_ext && is_dir() && $dir && $files !== null && empty($files) && !empty($alt_filenames) && $i && !_wp_check_alternate_file_names() | 149–158 | sanitize_file_name(), pathinfo(), pathinfo(), pathinfo(), wp_check_filetype(), wp_get_upload_dir(), strtolower(), trailingslashit(), preg_quote(), file_exists(), is_dir(), apply_filters(), wp_get_image_editor_output_format(), array_intersect(), array_diff(), _wp_check_alternate_file_names(), apply_filters() |
$name !== false && $value && !file_exists() && $lc_ext && is_dir() && $dir && $files === null && $i && !_wp_check_existing_file_names() | 149–162 | sanitize_file_name(), pathinfo(), pathinfo(), pathinfo(), wp_check_filetype(), wp_get_upload_dir(), strtolower(), trailingslashit(), file_exists(), file_exists(), is_dir(), apply_filters(), scandir(), _wp_check_existing_file_names(), wp_get_image_editor_output_format(), array_intersect(), array_diff(), apply_filters() |
$name !== false && $value && $lc_ext !== false && !file_exists() && !$lc_ext && is_dir() && $dir && $files === null && !empty($files) && $i && !_wp_check_existing_file_names() && empty($output_formats[$mime_type]) && empty($output_formats) | 149–156 | sanitize_file_name(), pathinfo(), pathinfo(), pathinfo(), wp_check_filetype(), wp_get_upload_dir(), strtolower(), trailingslashit(), preg_quote(), file_exists(), is_dir(), apply_filters(), scandir(), array_diff(), _wp_check_existing_file_names(), wp_get_image_editor_output_format(), array_diff(), apply_filters() |
$name !== false && $value && $lc_ext !== false && !file_exists() && $lc_ext && is_dir() && $dir && $files !== null && !empty($files) && $i && !_wp_check_existing_file_names() && empty($output_formats[$mime_type]) && empty($output_formats) | 149–157 | sanitize_file_name(), pathinfo(), pathinfo(), pathinfo(), wp_check_filetype(), wp_get_upload_dir(), strtolower(), trailingslashit(), preg_quote(), file_exists(), file_exists(), is_dir(), apply_filters(), array_diff(), _wp_check_existing_file_names(), wp_get_image_editor_output_format(), array_diff(), apply_filters() |
$name !== false && $value && $lc_ext !== false && !file_exists() && $lc_ext && is_dir() && $dir && $files === null && empty($files) | 149–165 | sanitize_file_name(), pathinfo(), pathinfo(), pathinfo(), wp_check_filetype(), wp_get_upload_dir(), strtolower(), trailingslashit(), preg_quote(), file_exists(), file_exists(), is_dir(), apply_filters(), scandir(), wp_get_image_editor_output_format(), array_intersect(), array_diff(), apply_filters() |
$name !== false && $value && $lc_ext !== false && !file_exists() && !$lc_ext && is_dir() && $dir && $files !== null && $i && !_wp_check_existing_file_names() && empty($output_formats[$mime_type]) && empty($output_formats) && !empty($alt_filenames) && !_wp_check_alternate_file_names() | 150–151 | sanitize_file_name(), pathinfo(), pathinfo(), pathinfo(), wp_check_filetype(), wp_get_upload_dir(), strtolower(), trailingslashit(), preg_quote(), file_exists(), is_dir(), apply_filters(), _wp_check_existing_file_names(), wp_get_image_editor_output_format(), array_diff(), _wp_check_alternate_file_names(), apply_filters() |
$name !== false && !file_exists() && !$lc_ext && is_dir() && $dir && $files === null && !empty($files) && !empty($alt_filenames) && $i && !_wp_check_alternate_file_names() | 150–161 | sanitize_file_name(), pathinfo(), pathinfo(), pathinfo(), wp_check_filetype(), wp_get_upload_dir(), strtolower(), trailingslashit(), file_exists(), is_dir(), apply_filters(), scandir(), array_diff(), wp_get_image_editor_output_format(), array_intersect(), array_diff(), _wp_check_alternate_file_names(), apply_filters() |
$name !== false && !file_exists() && $lc_ext && is_dir() && $dir && $files !== null && !empty($files) && !empty($alt_filenames) && $i && !_wp_check_alternate_file_names() | 150–162 | sanitize_file_name(), pathinfo(), pathinfo(), pathinfo(), wp_check_filetype(), wp_get_upload_dir(), strtolower(), trailingslashit(), file_exists(), file_exists(), is_dir(), apply_filters(), array_diff(), wp_get_image_editor_output_format(), array_intersect(), array_diff(), _wp_check_alternate_file_names(), apply_filters() |
$name !== false && $value && $lc_ext !== false && !file_exists() && $lc_ext && is_dir() && $dir && $files === null && $i && !_wp_check_existing_file_names() && empty($output_formats[$mime_type]) && empty($output_formats) | 150–158 | sanitize_file_name(), pathinfo(), pathinfo(), pathinfo(), wp_check_filetype(), wp_get_upload_dir(), strtolower(), trailingslashit(), preg_quote(), file_exists(), file_exists(), is_dir(), apply_filters(), scandir(), _wp_check_existing_file_names(), wp_get_image_editor_output_format(), array_diff(), apply_filters() |
$name !== false && !file_exists() && !$lc_ext && is_dir() && $dir && $files === null && !empty($files) && $i && !_wp_check_existing_file_names() && empty($output_formats[$mime_type]) && empty($output_formats) && !empty($alt_filenames) && !_wp_check_alternate_file_names() | 151–154 | sanitize_file_name(), pathinfo(), pathinfo(), pathinfo(), wp_check_filetype(), wp_get_upload_dir(), strtolower(), trailingslashit(), file_exists(), is_dir(), apply_filters(), scandir(), array_diff(), _wp_check_existing_file_names(), wp_get_image_editor_output_format(), array_diff(), _wp_check_alternate_file_names(), apply_filters() |
$name !== false && !file_exists() && $lc_ext && is_dir() && $dir && $files !== null && !empty($files) && $i && !_wp_check_existing_file_names() && empty($output_formats[$mime_type]) && empty($output_formats) && !empty($alt_filenames) && !_wp_check_alternate_file_names() | 151–155 | sanitize_file_name(), pathinfo(), pathinfo(), pathinfo(), wp_check_filetype(), wp_get_upload_dir(), strtolower(), trailingslashit(), file_exists(), file_exists(), is_dir(), apply_filters(), array_diff(), _wp_check_existing_file_names(), wp_get_image_editor_output_format(), array_diff(), _wp_check_alternate_file_names(), apply_filters() |
$name !== false && $value && !file_exists() && $lc_ext && is_dir() && $dir && $files === null && empty($files) && !empty($alt_filenames) && $i && !_wp_check_alternate_file_names() | 151–163 | sanitize_file_name(), pathinfo(), pathinfo(), pathinfo(), wp_check_filetype(), wp_get_upload_dir(), strtolower(), trailingslashit(), file_exists(), file_exists(), is_dir(), apply_filters(), scandir(), wp_get_image_editor_output_format(), array_intersect(), array_diff(), _wp_check_alternate_file_names(), apply_filters() |
$name !== false && $value && $lc_ext !== false && !file_exists() && !$lc_ext && is_dir() && $dir && $files === null && !empty($files) && empty($output_formats[$mime_type]) && empty($output_formats) && !empty($alt_filenames) && $i && !_wp_check_alternate_file_names() | 151–157 | sanitize_file_name(), pathinfo(), pathinfo(), pathinfo(), wp_check_filetype(), wp_get_upload_dir(), strtolower(), trailingslashit(), preg_quote(), file_exists(), is_dir(), apply_filters(), scandir(), array_diff(), wp_get_image_editor_output_format(), array_diff(), _wp_check_alternate_file_names(), apply_filters() |
$name !== false && $value && $lc_ext !== false && !file_exists() && $lc_ext && is_dir() && $dir && $files !== null && !empty($files) && empty($output_formats[$mime_type]) && empty($output_formats) && !empty($alt_filenames) && $i && !_wp_check_alternate_file_names() | 151–158 | sanitize_file_name(), pathinfo(), pathinfo(), pathinfo(), wp_check_filetype(), wp_get_upload_dir(), strtolower(), trailingslashit(), preg_quote(), file_exists(), file_exists(), is_dir(), apply_filters(), array_diff(), wp_get_image_editor_output_format(), array_diff(), _wp_check_alternate_file_names(), apply_filters() |
$name !== false && $value && !file_exists() && $lc_ext && is_dir() && $dir && $files === null && $i && !_wp_check_existing_file_names() && empty($output_formats[$mime_type]) && empty($output_formats) && !empty($alt_filenames) && !_wp_check_alternate_file_names() | 152–156 | sanitize_file_name(), pathinfo(), pathinfo(), pathinfo(), wp_check_filetype(), wp_get_upload_dir(), strtolower(), trailingslashit(), file_exists(), file_exists(), is_dir(), apply_filters(), scandir(), _wp_check_existing_file_names(), wp_get_image_editor_output_format(), array_diff(), _wp_check_alternate_file_names(), apply_filters() |
$name !== false && $value && $lc_ext !== false && !file_exists() && !$lc_ext && is_dir() && $dir && $files !== null && !empty($files) && $i && !_wp_check_existing_file_names() | 152–162 | sanitize_file_name(), pathinfo(), pathinfo(), pathinfo(), wp_check_filetype(), wp_get_upload_dir(), strtolower(), trailingslashit(), preg_quote(), file_exists(), is_dir(), apply_filters(), array_diff(), _wp_check_existing_file_names(), wp_get_image_editor_output_format(), array_intersect(), array_diff(), apply_filters() |
$name !== false && $value && $lc_ext !== false && !file_exists() && $lc_ext && is_dir() && $dir && $files === null && empty($files) && empty($output_formats[$mime_type]) && empty($output_formats) && !empty($alt_filenames) && $i && !_wp_check_alternate_file_names() | 152–159 | sanitize_file_name(), pathinfo(), pathinfo(), pathinfo(), wp_check_filetype(), wp_get_upload_dir(), strtolower(), trailingslashit(), preg_quote(), file_exists(), file_exists(), is_dir(), apply_filters(), scandir(), wp_get_image_editor_output_format(), array_diff(), _wp_check_alternate_file_names(), apply_filters() |
$name !== false && $value && $lc_ext !== false && !file_exists() && !$lc_ext && is_dir() && $dir && $files === null && $i && !_wp_check_existing_file_names() | 153–163 | sanitize_file_name(), pathinfo(), pathinfo(), pathinfo(), wp_check_filetype(), wp_get_upload_dir(), strtolower(), trailingslashit(), preg_quote(), file_exists(), is_dir(), apply_filters(), scandir(), _wp_check_existing_file_names(), wp_get_image_editor_output_format(), array_intersect(), array_diff(), apply_filters() |
$name !== false && $value && $lc_ext !== false && !file_exists() && $lc_ext && is_dir() && $dir && $files !== null && $i && !_wp_check_existing_file_names() | 153–164 | sanitize_file_name(), pathinfo(), pathinfo(), pathinfo(), wp_check_filetype(), wp_get_upload_dir(), strtolower(), trailingslashit(), preg_quote(), file_exists(), file_exists(), is_dir(), apply_filters(), _wp_check_existing_file_names(), wp_get_image_editor_output_format(), array_intersect(), array_diff(), apply_filters() |
$name !== false && !file_exists() && !$lc_ext && is_dir() && $dir && $files !== null && !empty($files) && $i && !_wp_check_existing_file_names() && !empty($alt_filenames) && !_wp_check_alternate_file_names() | 154–160 | sanitize_file_name(), pathinfo(), pathinfo(), pathinfo(), wp_check_filetype(), wp_get_upload_dir(), strtolower(), trailingslashit(), file_exists(), is_dir(), apply_filters(), array_diff(), _wp_check_existing_file_names(), wp_get_image_editor_output_format(), array_intersect(), array_diff(), _wp_check_alternate_file_names(), apply_filters() |
$name !== false && $value && $lc_ext !== false && !file_exists() && !$lc_ext && is_dir() && $dir && $files !== null && !empty($files) && !empty($alt_filenames) && $i && !_wp_check_alternate_file_names() | 154–163 | sanitize_file_name(), pathinfo(), pathinfo(), pathinfo(), wp_check_filetype(), wp_get_upload_dir(), strtolower(), trailingslashit(), preg_quote(), file_exists(), is_dir(), apply_filters(), array_diff(), wp_get_image_editor_output_format(), array_intersect(), array_diff(), _wp_check_alternate_file_names(), apply_filters() |
$name !== false && $value && !file_exists() && $lc_ext && is_dir() && $dir && $files === null && !empty($files) && $i && !_wp_check_existing_file_names() | 154–167 | sanitize_file_name(), pathinfo(), pathinfo(), pathinfo(), wp_check_filetype(), wp_get_upload_dir(), strtolower(), trailingslashit(), file_exists(), file_exists(), is_dir(), apply_filters(), scandir(), array_diff(), _wp_check_existing_file_names(), wp_get_image_editor_output_format(), array_intersect(), array_diff(), apply_filters() |
$name !== false && $value && $lc_ext !== false && !file_exists() && $lc_ext && is_dir() && $dir && $files === null && !empty($files) | 154–170 | sanitize_file_name(), pathinfo(), pathinfo(), pathinfo(), wp_check_filetype(), wp_get_upload_dir(), strtolower(), trailingslashit(), preg_quote(), file_exists(), file_exists(), is_dir(), apply_filters(), scandir(), array_diff(), wp_get_image_editor_output_format(), array_intersect(), array_diff(), apply_filters() |
$name !== false && !file_exists() && !$lc_ext && is_dir() && $dir && $files === null && $i && !_wp_check_existing_file_names() && !empty($alt_filenames) && !_wp_check_alternate_file_names() | 155–161 | sanitize_file_name(), pathinfo(), pathinfo(), pathinfo(), wp_check_filetype(), wp_get_upload_dir(), strtolower(), trailingslashit(), file_exists(), is_dir(), apply_filters(), scandir(), _wp_check_existing_file_names(), wp_get_image_editor_output_format(), array_intersect(), array_diff(), _wp_check_alternate_file_names(), apply_filters() |
$name !== false && !file_exists() && $lc_ext && is_dir() && $dir && $files !== null && $i && !_wp_check_existing_file_names() && !empty($alt_filenames) && !_wp_check_alternate_file_names() | 155–162 | sanitize_file_name(), pathinfo(), pathinfo(), pathinfo(), wp_check_filetype(), wp_get_upload_dir(), strtolower(), trailingslashit(), file_exists(), file_exists(), is_dir(), apply_filters(), _wp_check_existing_file_names(), wp_get_image_editor_output_format(), array_intersect(), array_diff(), _wp_check_alternate_file_names(), apply_filters() |
$name !== false && $value && $lc_ext !== false && !file_exists() && !$lc_ext && is_dir() && $dir && $files !== null && !empty($files) && $i && !_wp_check_existing_file_names() && empty($output_formats[$mime_type]) && empty($output_formats) && !empty($alt_filenames) && !_wp_check_alternate_file_names() | 155–156 | sanitize_file_name(), pathinfo(), pathinfo(), pathinfo(), wp_check_filetype(), wp_get_upload_dir(), strtolower(), trailingslashit(), preg_quote(), file_exists(), is_dir(), apply_filters(), array_diff(), _wp_check_existing_file_names(), wp_get_image_editor_output_format(), array_diff(), _wp_check_alternate_file_names(), apply_filters() |
$name !== false && $value && $lc_ext !== false && !file_exists() && !$lc_ext && is_dir() && $dir && $files === null && empty($files) && !empty($alt_filenames) && $i && !_wp_check_alternate_file_names() | 155–164 | sanitize_file_name(), pathinfo(), pathinfo(), pathinfo(), wp_check_filetype(), wp_get_upload_dir(), strtolower(), trailingslashit(), preg_quote(), file_exists(), is_dir(), apply_filters(), scandir(), wp_get_image_editor_output_format(), array_intersect(), array_diff(), _wp_check_alternate_file_names(), apply_filters() |
$name !== false && $value && $lc_ext !== false && !file_exists() && $lc_ext && is_dir() && $dir && $files !== null && empty($files) && !empty($alt_filenames) && $i && !_wp_check_alternate_file_names() | 155–165 | sanitize_file_name(), pathinfo(), pathinfo(), pathinfo(), wp_check_filetype(), wp_get_upload_dir(), strtolower(), trailingslashit(), preg_quote(), file_exists(), file_exists(), is_dir(), apply_filters(), wp_get_image_editor_output_format(), array_intersect(), array_diff(), _wp_check_alternate_file_names(), apply_filters() |
$name !== false && $value && $lc_ext !== false && !file_exists() && $lc_ext && is_dir() && $dir && $files === null && !empty($files) && $i && !_wp_check_existing_file_names() && empty($output_formats[$mime_type]) && empty($output_formats) | 155–163 | sanitize_file_name(), pathinfo(), pathinfo(), pathinfo(), wp_check_filetype(), wp_get_upload_dir(), strtolower(), trailingslashit(), preg_quote(), file_exists(), file_exists(), is_dir(), apply_filters(), scandir(), array_diff(), _wp_check_existing_file_names(), wp_get_image_editor_output_format(), array_diff(), apply_filters() |
$name !== false && $value && $lc_ext !== false && !file_exists() && !$lc_ext && is_dir() && $dir && $files === null && $i && !_wp_check_existing_file_names() && empty($output_formats[$mime_type]) && empty($output_formats) && !empty($alt_filenames) && !_wp_check_alternate_file_names() | 156–157 | sanitize_file_name(), pathinfo(), pathinfo(), pathinfo(), wp_check_filetype(), wp_get_upload_dir(), strtolower(), trailingslashit(), preg_quote(), file_exists(), is_dir(), apply_filters(), scandir(), _wp_check_existing_file_names(), wp_get_image_editor_output_format(), array_diff(), _wp_check_alternate_file_names(), apply_filters() |
$name !== false && $value && $lc_ext !== false && !file_exists() && $lc_ext && is_dir() && $dir && $files !== null && $i && !_wp_check_existing_file_names() && empty($output_formats[$mime_type]) && empty($output_formats) && !empty($alt_filenames) && !_wp_check_alternate_file_names() | 156–158 | sanitize_file_name(), pathinfo(), pathinfo(), pathinfo(), wp_check_filetype(), wp_get_upload_dir(), strtolower(), trailingslashit(), preg_quote(), file_exists(), file_exists(), is_dir(), apply_filters(), _wp_check_existing_file_names(), wp_get_image_editor_output_format(), array_diff(), _wp_check_alternate_file_names(), apply_filters() |
$name !== false && $value && !file_exists() && $lc_ext && is_dir() && $dir && $files === null && !empty($files) && !empty($alt_filenames) && $i && !_wp_check_alternate_file_names() | 156–168 | sanitize_file_name(), pathinfo(), pathinfo(), pathinfo(), wp_check_filetype(), wp_get_upload_dir(), strtolower(), trailingslashit(), file_exists(), file_exists(), is_dir(), apply_filters(), scandir(), array_diff(), wp_get_image_editor_output_format(), array_intersect(), array_diff(), _wp_check_alternate_file_names(), apply_filters() |
$name !== false && $value && !file_exists() && $lc_ext && is_dir() && $dir && $files === null && !empty($files) && $i && !_wp_check_existing_file_names() && empty($output_formats[$mime_type]) && empty($output_formats) && !empty($alt_filenames) && !_wp_check_alternate_file_names() | 157–161 | sanitize_file_name(), pathinfo(), pathinfo(), pathinfo(), wp_check_filetype(), wp_get_upload_dir(), strtolower(), trailingslashit(), file_exists(), file_exists(), is_dir(), apply_filters(), scandir(), array_diff(), _wp_check_existing_file_names(), wp_get_image_editor_output_format(), array_diff(), _wp_check_alternate_file_names(), apply_filters() |
$name !== false && $value && $lc_ext !== false && !file_exists() && $lc_ext && is_dir() && $dir && $files === null && !empty($files) && empty($output_formats[$mime_type]) && empty($output_formats) && !empty($alt_filenames) && $i && !_wp_check_alternate_file_names() | 157–164 | sanitize_file_name(), pathinfo(), pathinfo(), pathinfo(), wp_check_filetype(), wp_get_upload_dir(), strtolower(), trailingslashit(), preg_quote(), file_exists(), file_exists(), is_dir(), apply_filters(), scandir(), array_diff(), wp_get_image_editor_output_format(), array_diff(), _wp_check_alternate_file_names(), apply_filters() |
$name !== false && $value && $lc_ext !== false && !file_exists() && !$lc_ext && is_dir() && $dir && $files === null && !empty($files) && $i && !_wp_check_existing_file_names() | 158–168 | sanitize_file_name(), pathinfo(), pathinfo(), pathinfo(), wp_check_filetype(), wp_get_upload_dir(), strtolower(), trailingslashit(), preg_quote(), file_exists(), is_dir(), apply_filters(), scandir(), array_diff(), _wp_check_existing_file_names(), wp_get_image_editor_output_format(), array_intersect(), array_diff(), apply_filters() |
$name !== false && $value && $lc_ext !== false && !file_exists() && $lc_ext && is_dir() && $dir && $files !== null && !empty($files) && $i && !_wp_check_existing_file_names() | 158–169 | sanitize_file_name(), pathinfo(), pathinfo(), pathinfo(), wp_check_filetype(), wp_get_upload_dir(), strtolower(), trailingslashit(), preg_quote(), file_exists(), file_exists(), is_dir(), apply_filters(), array_diff(), _wp_check_existing_file_names(), wp_get_image_editor_output_format(), array_intersect(), array_diff(), apply_filters() |
$name !== false && $value && $lc_ext !== false && !file_exists() && !$lc_ext && is_dir() && $dir && $files !== null && $i && !_wp_check_existing_file_names() && !empty($alt_filenames) && !_wp_check_alternate_file_names() | 159–163 | sanitize_file_name(), pathinfo(), pathinfo(), pathinfo(), wp_check_filetype(), wp_get_upload_dir(), strtolower(), trailingslashit(), preg_quote(), file_exists(), is_dir(), apply_filters(), _wp_check_existing_file_names(), wp_get_image_editor_output_format(), array_intersect(), array_diff(), _wp_check_alternate_file_names(), apply_filters() |
$name !== false && $value && $lc_ext !== false && !file_exists() && $lc_ext && is_dir() && $dir && $files === null && $i && !_wp_check_existing_file_names() | 159–170 | sanitize_file_name(), pathinfo(), pathinfo(), pathinfo(), wp_check_filetype(), wp_get_upload_dir(), strtolower(), trailingslashit(), preg_quote(), file_exists(), file_exists(), is_dir(), apply_filters(), scandir(), _wp_check_existing_file_names(), wp_get_image_editor_output_format(), array_intersect(), array_diff(), apply_filters() |
$name !== false && !file_exists() && !$lc_ext && is_dir() && $dir && $files === null && !empty($files) && $i && !_wp_check_existing_file_names() && !empty($alt_filenames) && !_wp_check_alternate_file_names() | 160–166 | sanitize_file_name(), pathinfo(), pathinfo(), pathinfo(), wp_check_filetype(), wp_get_upload_dir(), strtolower(), trailingslashit(), file_exists(), is_dir(), apply_filters(), scandir(), array_diff(), _wp_check_existing_file_names(), wp_get_image_editor_output_format(), array_intersect(), array_diff(), _wp_check_alternate_file_names(), apply_filters() |
$name !== false && $value && !file_exists() && $lc_ext && is_dir() && $dir && $files !== null && !empty($files) && $i && !_wp_check_existing_file_names() && !empty($alt_filenames) && !_wp_check_alternate_file_names() | 160–167 | sanitize_file_name(), pathinfo(), pathinfo(), pathinfo(), wp_check_filetype(), wp_get_upload_dir(), strtolower(), trailingslashit(), file_exists(), file_exists(), is_dir(), apply_filters(), array_diff(), _wp_check_existing_file_names(), wp_get_image_editor_output_format(), array_intersect(), array_diff(), _wp_check_alternate_file_names(), apply_filters() |
$name !== false && $value && $lc_ext !== false && !file_exists() && !$lc_ext && is_dir() && $dir && $files === null && !empty($files) && !empty($alt_filenames) && $i && !_wp_check_alternate_file_names() | 160–169 | sanitize_file_name(), pathinfo(), pathinfo(), pathinfo(), wp_check_filetype(), wp_get_upload_dir(), strtolower(), trailingslashit(), preg_quote(), file_exists(), is_dir(), apply_filters(), scandir(), array_diff(), wp_get_image_editor_output_format(), array_intersect(), array_diff(), _wp_check_alternate_file_names(), apply_filters() |
$name !== false && $value && $lc_ext !== false && !file_exists() && $lc_ext && is_dir() && $dir && $files !== null && !empty($files) && !empty($alt_filenames) && $i && !_wp_check_alternate_file_names() | 160–170 | sanitize_file_name(), pathinfo(), pathinfo(), pathinfo(), wp_check_filetype(), wp_get_upload_dir(), strtolower(), trailingslashit(), preg_quote(), file_exists(), file_exists(), is_dir(), apply_filters(), array_diff(), wp_get_image_editor_output_format(), array_intersect(), array_diff(), _wp_check_alternate_file_names(), apply_filters() |
$name !== false && $value && !file_exists() && $lc_ext && is_dir() && $dir && $files === null && $i && !_wp_check_existing_file_names() && !empty($alt_filenames) && !_wp_check_alternate_file_names() | 161–168 | sanitize_file_name(), pathinfo(), pathinfo(), pathinfo(), wp_check_filetype(), wp_get_upload_dir(), strtolower(), trailingslashit(), file_exists(), file_exists(), is_dir(), apply_filters(), scandir(), _wp_check_existing_file_names(), wp_get_image_editor_output_format(), array_intersect(), array_diff(), _wp_check_alternate_file_names(), apply_filters() |
$name !== false && $value && $lc_ext !== false && !file_exists() && !$lc_ext && is_dir() && $dir && $files === null && !empty($files) && $i && !_wp_check_existing_file_names() && empty($output_formats[$mime_type]) && empty($output_formats) && !empty($alt_filenames) && !_wp_check_alternate_file_names() | 161–162 | sanitize_file_name(), pathinfo(), pathinfo(), pathinfo(), wp_check_filetype(), wp_get_upload_dir(), strtolower(), trailingslashit(), preg_quote(), file_exists(), is_dir(), apply_filters(), scandir(), array_diff(), _wp_check_existing_file_names(), wp_get_image_editor_output_format(), array_diff(), _wp_check_alternate_file_names(), apply_filters() |
$name !== false && $value && $lc_ext !== false && !file_exists() && $lc_ext && is_dir() && $dir && $files !== null && !empty($files) && $i && !_wp_check_existing_file_names() && empty($output_formats[$mime_type]) && empty($output_formats) && !empty($alt_filenames) && !_wp_check_alternate_file_names() | 161–163 | sanitize_file_name(), pathinfo(), pathinfo(), pathinfo(), wp_check_filetype(), wp_get_upload_dir(), strtolower(), trailingslashit(), preg_quote(), file_exists(), file_exists(), is_dir(), apply_filters(), array_diff(), _wp_check_existing_file_names(), wp_get_image_editor_output_format(), array_diff(), _wp_check_alternate_file_names(), apply_filters() |
$name !== false && $value && $lc_ext !== false && !file_exists() && $lc_ext && is_dir() && $dir && $files === null && empty($files) && !empty($alt_filenames) && $i && !_wp_check_alternate_file_names() | 161–171 | sanitize_file_name(), pathinfo(), pathinfo(), pathinfo(), wp_check_filetype(), wp_get_upload_dir(), strtolower(), trailingslashit(), preg_quote(), file_exists(), file_exists(), is_dir(), apply_filters(), scandir(), wp_get_image_editor_output_format(), array_intersect(), array_diff(), _wp_check_alternate_file_names(), apply_filters() |
$name !== false && $value && $lc_ext !== false && !file_exists() && $lc_ext && is_dir() && $dir && $files === null && $i && !_wp_check_existing_file_names() && empty($output_formats[$mime_type]) && empty($output_formats) && !empty($alt_filenames) && !_wp_check_alternate_file_names() | 162–164 | sanitize_file_name(), pathinfo(), pathinfo(), pathinfo(), wp_check_filetype(), wp_get_upload_dir(), strtolower(), trailingslashit(), preg_quote(), file_exists(), file_exists(), is_dir(), apply_filters(), scandir(), _wp_check_existing_file_names(), wp_get_image_editor_output_format(), array_diff(), _wp_check_alternate_file_names(), apply_filters() |
$name !== false && $value && $lc_ext !== false && !file_exists() && !$lc_ext && is_dir() && $dir && $files !== null && !empty($files) && $i && !_wp_check_existing_file_names() && !empty($alt_filenames) && !_wp_check_alternate_file_names() | 164–168 | sanitize_file_name(), pathinfo(), pathinfo(), pathinfo(), wp_check_filetype(), wp_get_upload_dir(), strtolower(), trailingslashit(), preg_quote(), file_exists(), is_dir(), apply_filters(), array_diff(), _wp_check_existing_file_names(), wp_get_image_editor_output_format(), array_intersect(), array_diff(), _wp_check_alternate_file_names(), apply_filters() |
$name !== false && $value && $lc_ext !== false && !file_exists() && $lc_ext && is_dir() && $dir && $files === null && !empty($files) && $i && !_wp_check_existing_file_names() | 164–175 | sanitize_file_name(), pathinfo(), pathinfo(), pathinfo(), wp_check_filetype(), wp_get_upload_dir(), strtolower(), trailingslashit(), preg_quote(), file_exists(), file_exists(), is_dir(), apply_filters(), scandir(), array_diff(), _wp_check_existing_file_names(), wp_get_image_editor_output_format(), array_intersect(), array_diff(), apply_filters() |
$name !== false && $value && $lc_ext !== false && !file_exists() && !$lc_ext && is_dir() && $dir && $files === null && $i && !_wp_check_existing_file_names() && !empty($alt_filenames) && !_wp_check_alternate_file_names() | 165–169 | sanitize_file_name(), pathinfo(), pathinfo(), pathinfo(), wp_check_filetype(), wp_get_upload_dir(), strtolower(), trailingslashit(), preg_quote(), file_exists(), is_dir(), apply_filters(), scandir(), _wp_check_existing_file_names(), wp_get_image_editor_output_format(), array_intersect(), array_diff(), _wp_check_alternate_file_names(), apply_filters() |
$name !== false && $value && $lc_ext !== false && !file_exists() && $lc_ext && is_dir() && $dir && $files !== null && $i && !_wp_check_existing_file_names() && !empty($alt_filenames) && !_wp_check_alternate_file_names() | 165–170 | sanitize_file_name(), pathinfo(), pathinfo(), pathinfo(), wp_check_filetype(), wp_get_upload_dir(), strtolower(), trailingslashit(), preg_quote(), file_exists(), file_exists(), is_dir(), apply_filters(), _wp_check_existing_file_names(), wp_get_image_editor_output_format(), array_intersect(), array_diff(), _wp_check_alternate_file_names(), apply_filters() |
$name !== false && $value && !file_exists() && $lc_ext && is_dir() && $dir && $files === null && !empty($files) && $i && !_wp_check_existing_file_names() && !empty($alt_filenames) && !_wp_check_alternate_file_names() | 166–173 | sanitize_file_name(), pathinfo(), pathinfo(), pathinfo(), wp_check_filetype(), wp_get_upload_dir(), strtolower(), trailingslashit(), file_exists(), file_exists(), is_dir(), apply_filters(), scandir(), array_diff(), _wp_check_existing_file_names(), wp_get_image_editor_output_format(), array_intersect(), array_diff(), _wp_check_alternate_file_names(), apply_filters() |
$name !== false && $value && $lc_ext !== false && !file_exists() && $lc_ext && is_dir() && $dir && $files === null && !empty($files) && !empty($alt_filenames) && $i && !_wp_check_alternate_file_names() | 166–176 | sanitize_file_name(), pathinfo(), pathinfo(), pathinfo(), wp_check_filetype(), wp_get_upload_dir(), strtolower(), trailingslashit(), preg_quote(), file_exists(), file_exists(), is_dir(), apply_filters(), scandir(), array_diff(), wp_get_image_editor_output_format(), array_intersect(), array_diff(), _wp_check_alternate_file_names(), apply_filters() |
$name !== false && $value && $lc_ext !== false && !file_exists() && $lc_ext && is_dir() && $dir && $files === null && !empty($files) && $i && !_wp_check_existing_file_names() && empty($output_formats[$mime_type]) && empty($output_formats) && !empty($alt_filenames) && !_wp_check_alternate_file_names() | 167–169 | sanitize_file_name(), pathinfo(), pathinfo(), pathinfo(), wp_check_filetype(), wp_get_upload_dir(), strtolower(), trailingslashit(), preg_quote(), file_exists(), file_exists(), is_dir(), apply_filters(), scandir(), array_diff(), _wp_check_existing_file_names(), wp_get_image_editor_output_format(), array_diff(), _wp_check_alternate_file_names(), apply_filters() |
$name !== false && $value && $lc_ext !== false && !file_exists() && !$lc_ext && is_dir() && $dir && $files === null && !empty($files) && $i && !_wp_check_existing_file_names() && !empty($alt_filenames) && !_wp_check_alternate_file_names() | 170–174 | sanitize_file_name(), pathinfo(), pathinfo(), pathinfo(), wp_check_filetype(), wp_get_upload_dir(), strtolower(), trailingslashit(), preg_quote(), file_exists(), is_dir(), apply_filters(), scandir(), array_diff(), _wp_check_existing_file_names(), wp_get_image_editor_output_format(), array_intersect(), array_diff(), _wp_check_alternate_file_names(), apply_filters() |
$name !== false && $value && $lc_ext !== false && !file_exists() && $lc_ext && is_dir() && $dir && $files !== null && !empty($files) && $i && !_wp_check_existing_file_names() && !empty($alt_filenames) && !_wp_check_alternate_file_names() | 170–175 | sanitize_file_name(), pathinfo(), pathinfo(), pathinfo(), wp_check_filetype(), wp_get_upload_dir(), strtolower(), trailingslashit(), preg_quote(), file_exists(), file_exists(), is_dir(), apply_filters(), array_diff(), _wp_check_existing_file_names(), wp_get_image_editor_output_format(), array_intersect(), array_diff(), _wp_check_alternate_file_names(), apply_filters() |
$name !== false && $value && $lc_ext !== false && !file_exists() && $lc_ext && is_dir() && $dir && $files === null && $i && !_wp_check_existing_file_names() && !empty($alt_filenames) && !_wp_check_alternate_file_names() | 171–176 | sanitize_file_name(), pathinfo(), pathinfo(), pathinfo(), wp_check_filetype(), wp_get_upload_dir(), strtolower(), trailingslashit(), preg_quote(), file_exists(), file_exists(), is_dir(), apply_filters(), scandir(), _wp_check_existing_file_names(), wp_get_image_editor_output_format(), array_intersect(), array_diff(), _wp_check_alternate_file_names(), apply_filters() |
$name !== false && $value && $lc_ext !== false && !file_exists() && $lc_ext && is_dir() && $dir && $files === null && !empty($files) && $i && !_wp_check_existing_file_names() && !empty($alt_filenames) && !_wp_check_alternate_file_names() | 176–181 | sanitize_file_name(), pathinfo(), pathinfo(), pathinfo(), wp_check_filetype(), wp_get_upload_dir(), strtolower(), trailingslashit(), preg_quote(), file_exists(), file_exists(), is_dir(), apply_filters(), scandir(), array_diff(), _wp_check_existing_file_names(), wp_get_image_editor_output_format(), array_intersect(), array_diff(), _wp_check_alternate_file_names(), apply_filters() |
This body has more branch combinations than are worth enumerating, so the table covers the outcomes found first rather than every one that exists.
Across PHP versions
| PHP | Compiled | Executed | Branches | Notes |
|---|---|---|---|---|
| 8.6-dev | 323 | 71–181 | 35 | |
| 8.5 | 323 | 71–181 | 35 | |
| 8.4 | 323 | 71–181 | 35 | 34 fewer instructions than PHP 8.3 |
| 8.3 | 357 | 71–188 | 35 | |
| 8.2 | 357 | 71–188 | 35 | |
| 8.1 | 357 | 71–188 | 35 | 1 fewer instruction than PHP 7.4 |
| 7.4 | 358 | 71–189 | 35 |
An instruction is not a fixed amount of time, so a matching count is not necessarily the same speed; what it rules out is a difference in the work itself.
Hooks and filters fired · 2
2 hooks fire while wp_unique_filename() runs, in this order:
- apply_filters( pre_wp_unique_filename_file_list )filterline 2676 (+120 into the body)
Filters the file list used for calculating a unique filename for a newly added file.
- apply_filters( wp_unique_filename )filterline 2800 (+244 into the body)
Filters the result when generating a unique file name.
Uses · 11
- sanitize_file_name()Sanitizes a filename, replacing whitespace with dashes.
- wp_check_filetype()Retrieves the file type from the file name.
- str_starts_with()Polyfill for `str_starts_with()` function added in PHP 8.0.
- wp_get_upload_dir()Retrieves uploads directory information.
- trailingslashit()Appends a trailing slash.
- str_contains()Polyfill for `str_contains()` function added in PHP 8.0.
- apply_filters()Calls the callback functions that have been added to a filter hook.
- _wp_check_existing_file_names()Helper function to check if a file name could match an existing image sub-size file name.
- wp_get_image_editor_output_format()Determines the output format for the image editor.
- wp_get_default_extension_for_mime_type()Returns the first matched extension for the mime type, as mapped from wp_get_mime_types().
- _wp_check_alternate_file_names()Helper function to test if each of an array of file names could conflict with existing files.
Used by · 8
- WP_REST_Attachments_Controller::edit_media_item()Applies edits to a media item and creates a new attachment record.
- _copy_image_file()Copies an existing image file.
- _wp_handle_upload()Handles PHP uploads in WordPress.
- wp_crop_image()Crops an image to a given size.
- wp_generate_attachment_metadata()Generates attachment meta data and create image sub-sizes for images.
- wp_privacy_generate_personal_data_export_file()Generate the personal data export file.
- wp_tempnam()Returns a filename of a temporary unique file.
- wp_upload_bits()Creates a file in the upload folder with given content.
Source code
function wp_unique_filename( $dir, $filename, $unique_filename_callback = null ) { // Sanitize the file name before we begin processing. $filename = sanitize_file_name( $filename ); $ext2 = null; // Initialize vars used in the wp_unique_filename filter. $number = ''; $alt_filenames = array(); // Separate the filename into a name and extension. $ext = pathinfo( $filename, PATHINFO_EXTENSION ); $name = pathinfo( $filename, PATHINFO_BASENAME ); if ( $ext ) { $ext = '.' . $ext; } // Edge case: if file is named '.ext', treat as an empty name. if ( $name === $ext ) { $name = ''; } /* * Increment the file number until we have a unique file to save in $dir. * Use callback if supplied. */ if ( $unique_filename_callback && is_callable( $unique_filename_callback ) ) { $filename = call_user_func( $unique_filename_callback, $dir, $name, $ext ); } else { $fname = pathinfo( $filename, PATHINFO_FILENAME ); // Always append a number to file names that can potentially match image sub-size file names. if ( $fname && preg_match( '/-(?:\d+x\d+|scaled|rotated)$/', $fname ) ) { $number = 1; // At this point the file name may not be unique. This is tested below and the $number is incremented. $filename = str_replace( "{$fname}{$ext}", "{$fname}-{$number}{$ext}", $filename ); } /* * Get the mime type. Uploaded files were already checked with wp_check_filetype_and_ext() * in _wp_handle_upload(). Using wp_check_filetype() would be sufficient here. */ $file_type = wp_check_filetype( $filename ); $mime_type = $file_type['type']; $is_image = ( ! empty( $mime_type ) && str_starts_with( $mime_type, 'image/' ) ); $upload_dir = wp_get_upload_dir(); $lc_filename = null; $lc_ext = strtolower( $ext ); $_dir = trailingslashit( $dir ); /* * If the extension is uppercase add an alternate file name with lowercase extension. * Both need to be tested for uniqueness as the extension will be changed to lowercase * for better compatibility with different filesystems. Fixes an inconsistency in WP < 2.9 * where uppercase extensions were allowed but image sub-sizes were created with * lowercase extensions. */ if ( $ext && $lc_ext !== $ext ) { $lc_filename = preg_replace( '|' . preg_quote( $ext ) . '$|', $lc_ext, $filename ); } /* * Increment the number added to the file name if there are any files in $dir * whose names match one of the possible name variations. */ while ( file_exists( $_dir . $filename ) || ( $lc_filename && file_exists( $_dir . $lc_filename ) ) ) { $new_number = (int) $number + 1; if ( $lc_filename ) { $lc_filename = str_replace( array( "-{$number}{$lc_ext}", "{$number}{$lc_ext}" ), "-{$new_number}{$lc_ext}", $lc_filename ); } if ( '' === "{$number}{$ext}" ) {Changelog
Introduced in 2.5.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
About this page
- Parsed data
- Generated from the wordpress-develop 6.9.7 tag, from
src/wp-includes/functions.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it. - Corrections
- Something wrong on this page? Report it and it gets fixed in the next regeneration.