WP_Filesystem_SSH2::delete compatibility warning
-
For everybody who’s getting the WP_Filesystem_SSH2::delete($file, $recursive = false) should be compatible with WP_Filesystem_Base::delete($file, $recursive = false, $type = false) warning, updating the delete function code in class-wp-filesystem-ssh2.php on line 218 from this:
function delete($file, $recursive = false) { return $this->link->delete($file, $recursive); }
to this:
function delete($file, $recursive = false, $type = false) { return $this->link->delete($file, $recursive, $type); }
should fix the issue.
- The topic ‘WP_Filesystem_SSH2::delete compatibility warning’ is closed to new replies.