]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-admin/includes/class-wp-filesystem-ssh2.php
WordPress 4.3.1
[autoinstalls/wordpress.git] / wp-admin / includes / class-wp-filesystem-ssh2.php
index e446656ec11f4c53448b78780eb859fdf3f91fc7..2b167965910eeb56f149e600089d83e7ee3c25c3 100644 (file)
@@ -383,8 +383,8 @@ class WP_Filesystem_SSH2 extends WP_Filesystem_Base {
         * @return bool
         */
        public function is_writable($file) {
         * @return bool
         */
        public function is_writable($file) {
-               $file = ltrim($file, '/');
-               return is_writable('ssh2.sftp://' . $this->sftp_link . '/' . $file);
+               // PHP will base it's writable checks on system_user === file_owner, not ssh_user === file_owner
+               return true;
        }
        /**
         * @param string $file
        }
        /**
         * @param string $file