WordPress.org

Make WordPress Core

Changeset 48606


Ignore:
Timestamp:
07/25/2020 12:29:13 PM (2 months ago)
Author:
SergeyBiryukov
Message:

Docs: Improve description for wp_unique_filename().

Props stevenlinx.
Fixes #50762.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/functions.php

    r48591 r48606  
    24502450 *
    24512451 * If the filename is not unique, then a number will be added to the filename
    2452  * before the extension, and will continue adding numbers until the filename is
    2453  * unique.
    2454  *
    2455  * The callback is passed three parameters, the first one is the directory, the
    2456  * second is the filename, and the third is the extension.
     2452 * before the extension, and will continue adding numbers until the filename
     2453 * is unique.
     2454 *
     2455 * The callback function allows the caller to use their own method to create
     2456 * unique file names. If defined, the callback should take three arguments:
     2457 * - directory, base filename, and extension - and return a unique filename.
    24572458 *
    24582459 * @since 2.5.0
Note: See TracChangeset for help on using the changeset viewer.