From af5bab23ab7c75c2b5afb6d26a0c86fbc6dbdb37 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Mon, 21 Dec 2020 18:23:21 +0000 Subject: [PATCH] Docs: Move `sanitize_file_name` filter documentation to the canonical place. See #51800. git-svn-id: https://develop.svn.wordpress.org/trunk@49858 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/formatting.php | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/wp-includes/formatting.php b/src/wp-includes/formatting.php index 5602efcc71..a5b96f147a 100644 --- a/src/wp-includes/formatting.php +++ b/src/wp-includes/formatting.php @@ -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 ); }