Typo fixes from azaozz. see #7059

git-svn-id: http://svn.automattic.com/wordpress/trunk@8010 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2008-05-29 19:06:27 +00:00
parent ffd63e3b33
commit 9a21aad36a
1 changed files with 2 additions and 2 deletions

View File

@ -162,12 +162,12 @@ function wp_update_plugin($plugin, $feedback = '') {
//Get the base plugin folder //Get the base plugin folder
$plugins_dir = $wp_filesystem->wp_plugins_dir(); $plugins_dir = $wp_filesystem->wp_plugins_dir();
if ( empty($plugins_dir) ) if ( empty($plugins_dir) )
return new WP_Error('fs_no)plugins_dir', __('Unable to locate WordPress Plugin directory.')); return new WP_Error('fs_no_plugins_dir', __('Unable to locate WordPress Plugin directory.'));
//And the same for the Content directory. //And the same for the Content directory.
$content_dir = $wp_filesystem->wp_content_dir(); $content_dir = $wp_filesystem->wp_content_dir();
if( empty($content_dir) ) if( empty($content_dir) )
return new WP_Error('fs_no_content_dor', __('Unable to locate WordPress Content directory (wp-content).')); return new WP_Error('fs_no_content_dir', __('Unable to locate WordPress Content directory (wp-content).'));
$plugins_dir = trailingslashit( $plugins_dir ); $plugins_dir = trailingslashit( $plugins_dir );
$content_dir = trailingslashit( $content_dir ); $content_dir = trailingslashit( $content_dir );