mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-22 17:18:32 +01:00
Docs: Move sanitize_file_name
filter documentation to the canonical place.
See #51800. Built from https://develop.svn.wordpress.org/trunk@49858 git-svn-id: http://core.svn.wordpress.org/trunk@49577 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
f508fe5112
commit
5550b5fd6a
@ -2034,14 +2034,7 @@ function sanitize_file_name( $filename ) {
|
||||
|
||||
// Return if only one extension.
|
||||
if ( count( $parts ) <= 2 ) {
|
||||
/**
|
||||
* Filters a sanitized filename string.
|
||||
*
|
||||
* @since 2.8.0
|
||||
*
|
||||
* @param string $filename Sanitized filename.
|
||||
* @param string $filename_raw The filename prior to sanitization.
|
||||
*/
|
||||
/** This filter is documented in wp-includes/formatting.php */
|
||||
return apply_filters( 'sanitize_file_name', $filename, $filename_raw );
|
||||
}
|
||||
|
||||
@ -2074,7 +2067,14 @@ function sanitize_file_name( $filename ) {
|
||||
|
||||
$filename .= '.' . $extension;
|
||||
|
||||
/** This filter is documented in wp-includes/formatting.php */
|
||||
/**
|
||||
* Filters a sanitized filename string.
|
||||
*
|
||||
* @since 2.8.0
|
||||
*
|
||||
* @param string $filename Sanitized filename.
|
||||
* @param string $filename_raw The filename prior to sanitization.
|
||||
*/
|
||||
return apply_filters( 'sanitize_file_name', $filename, $filename_raw );
|
||||
}
|
||||
|
||||
|
@ -13,7 +13,7 @@
|
||||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '5.7-alpha-49857';
|
||||
$wp_version = '5.7-alpha-49858';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
Loading…
Reference in New Issue
Block a user