From 8b4c499664cf6f1372f3b98a427ee1a327e449eb Mon Sep 17 00:00:00 2001 From: Drew Jaynes Date: Wed, 30 Sep 2015 04:13:48 +0000 Subject: [PATCH] Docs: There are quite alot of typos in core inline comments. See #32246. Built from https://develop.svn.wordpress.org/trunk@34717 git-svn-id: http://core.svn.wordpress.org/trunk@34681 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/class-wp-upgrader.php | 8 ++++---- wp-admin/includes/taxonomy.php | 4 ++-- wp-includes/class-wp-editor.php | 4 ++-- wp-includes/link-template.php | 2 +- wp-includes/post-functions.php | 8 ++++---- wp-includes/version.php | 2 +- 6 files changed, 14 insertions(+), 14 deletions(-) diff --git a/wp-admin/includes/class-wp-upgrader.php b/wp-admin/includes/class-wp-upgrader.php index cf0655b958..65cbab4072 100644 --- a/wp-admin/includes/class-wp-upgrader.php +++ b/wp-admin/includes/class-wp-upgrader.php @@ -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 diff --git a/wp-admin/includes/taxonomy.php b/wp-admin/includes/taxonomy.php index 4f11bdbd4e..3d4154dae0 100644 --- a/wp-admin/includes/taxonomy.php +++ b/wp-admin/includes/taxonomy.php @@ -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. diff --git a/wp-includes/class-wp-editor.php b/wp-includes/class-wp-editor.php index a7dc31b68e..911aaab540 100644 --- a/wp-includes/class-wp-editor.php +++ b/wp-includes/class-wp-editor.php @@ -48,10 +48,10 @@ final class _WP_Editors { * @type int $textarea_rows Number rows in the editor textarea. Default 20. * @type string|int $tabindex Tabindex value to use. Default empty. * @type string $tabfocus_elements The previous and next element ID to move the focus to - * when pressing the Tab key in TinyMCE. Defualt ':prev,:next'. + * when pressing the Tab key in TinyMCE. Default ':prev,:next'. * @type string $editor_css Intended for extra styles for both Visual and Text editors. * Should include `