From 876bfaf3e0db5e324efe8c38e185a379db963fa6 Mon Sep 17 00:00:00 2001 From: Colin Stewart Date: Mon, 12 Feb 2024 12:05:44 +0000 Subject: [PATCH] Filesystem API: Fix typo in `ftp_base::restore()`. The `ftp_base::restore()` method contained a typo internally: "resore" should be "restore". Follow-up to [7126]. Props benniledl, hellofromTonya, audrasjb. Fixes #60497. git-svn-id: https://develop.svn.wordpress.org/trunk@57591 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/includes/class-ftp.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-admin/includes/class-ftp.php b/src/wp-admin/includes/class-ftp.php index 7658a0bc96..1b29783ffa 100644 --- a/src/wp-admin/includes/class-ftp.php +++ b/src/wp-admin/includes/class-ftp.php @@ -483,7 +483,7 @@ class ftp_base { $this->PushError("restore", "cannot restore in ASCII mode"); return FALSE; } - if(!$this->_exec("REST ".$from, "resore")) return FALSE; + if(!$this->_exec("REST ".$from, "restore")) return FALSE; if(!$this->_checkCode()) return FALSE; return TRUE; }