mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-24 01:57:53 +01:00
Fix fs_no_folder error message display. Props jeff_. fixes #10608
git-svn-id: http://svn.automattic.com/wordpress/trunk@11861 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
0e3f9e6b8d
commit
91bc15b495
@ -94,7 +94,7 @@ class WP_Upgrader {
|
|||||||
return new WP_Error('fs_no_themes_dir', $this->strings['fs_no_themes_dir']);
|
return new WP_Error('fs_no_themes_dir', $this->strings['fs_no_themes_dir']);
|
||||||
|
|
||||||
elseif ( ! $wp_filesystem->find_folder($dir) )
|
elseif ( ! $wp_filesystem->find_folder($dir) )
|
||||||
return new WP_Error('fs_no_folder', sprintf($strings['fs_no_folder'], $dir));
|
return new WP_Error('fs_no_folder', sprintf($this->strings['fs_no_folder'], $dir));
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
} //end fs_connect();
|
} //end fs_connect();
|
||||||
|
Loading…
Reference in New Issue
Block a user