Docs: Typo correction in validate_file() comments.

See #53399.


git-svn-id: https://develop.svn.wordpress.org/trunk@52416 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Jb Audras
2021-12-25 11:15:32 +00:00
parent 181ea0fe87
commit fb18ff6a50

View File

@@ -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;
}