diff --git a/wp-includes/functions.php b/wp-includes/functions.php
index 9200d04..fd60560 100644
--- a/wp-includes/functions.php
+++ b/wp-includes/functions.php
@@ -5737,42 +5737,33 @@ function wp_validate_boolean( $var ) {
  * Delete a file
  *
  * @since 4.2.0
- * @since 4.7.2 Added the $unblock_directories parameter and default filters.
  *
- * @param string $file                The path to the file to delete.
- * @param array  $unblock_directories By default path core directories are block and $unblock_directories are clear.
- *                                    To unblock core folders you need set in array names ROOT, WP_CONTENT_DIR,
- *                                    WP_ADMIN_DIR or WP_INCLUDE_DIR.
+ * @param string $file The path to the file to delete.
+ * @param array $directories_unblock Are directory to unblocked. They are ROOT, WP_CONTENT_DIR, WP_ADMIN_DIR
+ *                                   and WP_INCLUDE_DIR.
+ * @return bool Whether the param is invalidated.
  */
-function wp_delete_file( $file, $unblock_directories = array() ) {
+function wp_delete_file( $file, $directories_unblock = array() ) {
 
 	// Default Filters the path of the file to delete.
-	$path_blocked = array(
-	        'ROOT' => realpath( untrailingslashit( ABSPATH ) ), // Root path folder.
-	        'WP_CONTENT_DIR' => realpath( WP_CONTENT_DIR ), // wp-content path folder.
-	        'WP_ADMIN_DIR' => realpath( ABSPATH . 'wp-admin'), // wp-admin path folder.
-	        'WP_INCLUDE_DIR' => realpath( ABSPATH . WPINC ) // wp-incluide path folder.
-    );
-
-	$path_blocked     = array_diff_key( $path_blocked, array_flip( $unblock_directories ) );
-	$file_folder_path = realpath( ltrim( dirname( $file ), DIRECTORY_SEPARATOR ) );
-
-	if ( in_array( $file_folder_path, $path_blocked, true) )  {
-		return;
+	$path_blocked['ROOT']           = rtrim( ABSPATH, '/' );
+	$path_blocked['WP_CONTENT_DIR'] = WP_CONTENT_DIR;
+	$path_blocked['WP_ADMIN_DIR']   = ABSPATH . 'wp-admin';
+	$path_blocked['WP_INCLUDE_DIR'] = realpath( ABSPATH . WPINC );
+	$path_blocked                   = array_diff_key( $path_blocked, array_flip( $directories_unblock ) );
+	$file_folder_path               = realpath( ltrim( dirname( $file ), '/' ) );
+
+	if ( in_array( $file_folder_path, $path_blocked ) ) {
+		return false;
 	}
 
 	/**
 	 * Filters the path of the file to delete.
 	 *
-	 * @since 4.2.0
-	 * @since 4.7.2 Added the $unblock_directories parameter and default filters.
-     *
-	 * @param string $file                Path to the file to delete.
-	 * @param array  $unblock_directories By default path core directories are block and $unblock_directories are clear.
-	 *                                    To unblock core folders you need set in array names ROOT, WP_CONTENT_DIR,
-	 *                                    WP_ADMIN_DIR or WP_INCLUDE_DIR.
+	 * @since 2.1.0
+	 * @param string $file Path to the file to delete.
 	 */
-	$delete = apply_filters( 'wp_delete_file', $file, $unblock_directories );
+	$delete = apply_filters( 'wp_delete_file', $file );
 	if ( ! empty( $delete ) ) {
 		@unlink( $delete );
 	}
