From fb18ff6a5070d2b3c22d153c672f352566d8ab9b Mon Sep 17 00:00:00 2001 From: Jb Audras Date: Sat, 25 Dec 2021 11:15:32 +0000 Subject: [PATCH] Docs: Typo correction in `validate_file()` comments. See #53399. git-svn-id: https://develop.svn.wordpress.org/trunk@52416 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-includes/functions.php b/src/wp-includes/functions.php index cf85ac88c8..6582845706 100644 --- a/src/wp-includes/functions.php +++ b/src/wp-includes/functions.php @@ -5900,7 +5900,7 @@ function validate_file( $file, $allowed_files = array() ) { return 1; } - // More than one occurence of `../` is not allowed: + // More than one occurrence of `../` is not allowed: if ( preg_match_all( '#\.\./#', $file, $matches, PREG_SET_ORDER ) && ( count( $matches ) > 1 ) ) { return 1; }