Docs: There are quite alot of typos in core inline comments.

See #32246.


git-svn-id: https://develop.svn.wordpress.org/trunk@34717 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Drew Jaynes
2015-09-30 04:12:16 +00:00
parent 87fbd30548
commit 69db043e3c
5 changed files with 13 additions and 13 deletions

View File

@@ -452,7 +452,7 @@ class WP_Upgrader {
$source = trailingslashit( $args['source'] ) . trailingslashit( $source_files[0] );
} elseif ( count( $source_files ) == 0 ) {
return new WP_Error( 'incompatible_archive_empty', $this->strings['incompatible_archive'], $this->strings['no_files'] ); // There are no files?
} else { //It's only a single file, the upgrader will use the foldername of this file as the destination folder. foldername is based on zip filename.
} else { // It's only a single file, the upgrader will use the folder name of this file as the destination folder. Folder name is based on zip filename.
$source = trailingslashit( $args['source'] );
}
@@ -876,7 +876,7 @@ class Plugin_Upgrader extends WP_Upgrader {
*
* @param string $plugin The basename path to the main plugin file.
* @param array $args {
* Optional. Other arguments for upgrading a plugin package. Defualt empty array.
* Optional. Other arguments for upgrading a plugin package. Default empty array.
*
* @type bool $clear_update_cache Whether to clear the plugin updates cache if successful.
* Default true.
@@ -1232,7 +1232,7 @@ class Theme_Upgrader extends WP_Upgrader {
*
* @since 2.8.0
* @access public
* @var array|WP_Erorr $result
* @var array|WP_Error $result
* @see WP_Upgrader::$result
*/
public $result;
@@ -2421,7 +2421,7 @@ class Core_Upgrader extends WP_Upgrader {
}
/**
* Compare the disk file checksums agains the expected checksums.
* Compare the disk file checksums against the expected checksums.
*
* @since 3.7.0
* @access public

View File

@@ -93,9 +93,9 @@ function wp_create_categories( $categories, $post_id = '' ) {
* @param array $catarr {
* Array of arguments for inserting a new category.
*
* @type int $cat_ID Categoriy ID. A non-zero value updates an existing category.
* @type int $cat_ID Category ID. A non-zero value updates an existing category.
* Default 0.
* @type string $taxonomy Taxonomy slug. Defualt 'category'.
* @type string $taxonomy Taxonomy slug. Default 'category'.
* @type string $cat_name Category name. Default empty.
* @type string $category_description Category description. Default empty.
* @type string $category_nicename Category nice (display) name. Default empty.