WordPress.org

Make WordPress Core

Changeset 49858


Ignore:
Timestamp:
12/21/2020 06:23:21 PM (10 months ago)
Author:
SergeyBiryukov
Message:

Docs: Move sanitize_file_name filter documentation to the canonical place.

See #51800.

File:
1 edited

Legend:

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

    r49513 r49858  
    20352035    // Return if only one extension.
    20362036    if ( count( $parts ) <= 2 ) {
    2037         /**
    2038          * Filters a sanitized filename string.
    2039          *
    2040          * @since 2.8.0
    2041          *
    2042          * @param string $filename     Sanitized filename.
    2043          * @param string $filename_raw The filename prior to sanitization.
    2044          */
     2037        /** This filter is documented in wp-includes/formatting.php */
    20452038        return apply_filters( 'sanitize_file_name', $filename, $filename_raw );
    20462039    }
     
    20752068    $filename .= '.' . $extension;
    20762069
    2077     /** This filter is documented in wp-includes/formatting.php */
     2070    /**
     2071     * Filters a sanitized filename string.
     2072     *
     2073     * @since 2.8.0
     2074     *
     2075     * @param string $filename     Sanitized filename.
     2076     * @param string $filename_raw The filename prior to sanitization.
     2077     */
    20782078    return apply_filters( 'sanitize_file_name', $filename, $filename_raw );
    20792079}
Note: See TracChangeset for help on using the changeset viewer.