From 205aa5ba5c48c3e4d92279878383858ff8140858 Mon Sep 17 00:00:00 2001 From: Jon Cave Date: Sat, 3 Sep 2011 16:02:41 +0000 Subject: [PATCH] Fix typos in documentation (wp-includes/[a-h]). See #18560. git-svn-id: https://develop.svn.wordpress.org/trunk@18633 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/author-template.php | 2 +- wp-includes/cache.php | 6 +++--- wp-includes/canonical.php | 6 +++--- wp-includes/capabilities.php | 4 ++-- wp-includes/class-http.php | 10 +++++----- wp-includes/class-oembed.php | 2 +- wp-includes/class-phpass.php | 2 +- wp-includes/class-wp-error.php | 4 ++-- wp-includes/class-wp-xmlrpc-server.php | 10 +++++----- wp-includes/class-wp.php | 2 +- wp-includes/comment-template.php | 4 ++-- wp-includes/deprecated.php | 2 +- wp-includes/formatting.php | 2 +- wp-includes/functions.php | 4 ++-- wp-includes/http.php | 2 +- 15 files changed, 31 insertions(+), 31 deletions(-) diff --git a/wp-includes/author-template.php b/wp-includes/author-template.php index f082fb24c4..a2de336ae5 100644 --- a/wp-includes/author-template.php +++ b/wp-includes/author-template.php @@ -38,7 +38,7 @@ function get_the_author($deprecated = '') { * still use the old behavior will also pass the value from get_the_author(). * * The normal, expected behavior of this function is to echo the author and not - * return it. However, backwards compatiability has to be maintained. + * return it. However, backwards compatibility has to be maintained. * * @since 0.71 * @see get_the_author() diff --git a/wp-includes/cache.php b/wp-includes/cache.php index fceac76687..572ad97d3a 100644 --- a/wp-includes/cache.php +++ b/wp-includes/cache.php @@ -9,7 +9,7 @@ */ /** - * Adds data to the cache, if the cache key doesn't aleady exist. + * Adds data to the cache, if the cache key doesn't already exist. * * @since 2.0.0 * @uses $wp_object_cache Object Cache Class @@ -31,7 +31,7 @@ function wp_cache_add($key, $data, $flag = '', $expire = 0) { * Closes the cache. * * This function has ceased to do anything since WordPress 2.5. The - * functionality was removed along with the rest of the persistant cache. This + * functionality was removed along with the rest of the persistent cache. This * does not mean that plugins can't implement this function when they need to * make sure that the cache is cleaned up after WordPress no longer needs it. * @@ -282,7 +282,7 @@ class WP_Object_Cache { * * @uses WP_Object_Cache::get Checks to see if the cache already has data. * @uses WP_Object_Cache::set Sets the data after the checking the cache - * contents existance. + * contents existence. * * @since 2.0.0 * diff --git a/wp-includes/canonical.php b/wp-includes/canonical.php index 26b6ed091c..991cfb6bcb 100644 --- a/wp-includes/canonical.php +++ b/wp-includes/canonical.php @@ -14,7 +14,7 @@ * * Search engines consider www.somedomain.com and somedomain.com to be two * different URLs when they both go to the same location. This SEO enhancement - * prevents penality for duplicate content by redirecting all incoming links to + * prevents penalty for duplicate content by redirecting all incoming links to * one or the other. * * Prevents redirection for feeds, trackbacks, searches, comment popup, and @@ -175,10 +175,10 @@ function redirect_canonical( $requested_url = null, $do_redirect = true ) { // Create the destination url for this taxonomy $tax_url = parse_url($tax_url); - if ( ! empty($tax_url['query']) ) { // Taxonomy accessable via ?taxonomy=..&term=.. or any custom qv.. + if ( ! empty($tax_url['query']) ) { // Taxonomy accessible via ?taxonomy=..&term=.. or any custom qv.. parse_str($tax_url['query'], $query_vars); $redirect['query'] = add_query_arg($query_vars, $redirect['query']); - } else { // Taxonomy is accessable via a "pretty-URL" + } else { // Taxonomy is accessible via a "pretty-URL" $redirect['path'] = $tax_url['path']; } diff --git a/wp-includes/capabilities.php b/wp-includes/capabilities.php index 319ea9a2e5..deb50ce615 100644 --- a/wp-includes/capabilities.php +++ b/wp-includes/capabilities.php @@ -524,7 +524,7 @@ class WP_User { } /** - * Magic method for checking the existance of a certain custom field + * Magic method for checking the existence of a certain custom field * * @since 3.3.0 */ @@ -827,7 +827,7 @@ class WP_User { * * This is useful for looking up whether the user has a specific role * assigned to the user. The second optional parameter can also be used to - * check for capabilities against a specfic post. + * check for capabilities against a specific post. * * @since 2.0.0 * @access public diff --git a/wp-includes/class-http.php b/wp-includes/class-http.php index dc7cff4d7e..3b50a98dce 100644 --- a/wp-includes/class-http.php +++ b/wp-includes/class-http.php @@ -222,7 +222,7 @@ class WP_Http { /** * Dispatches a HTTP request to a supporting transport. * - * Tests each transport in order to find a transport which matches the request arguements. + * Tests each transport in order to find a transport which matches the request arguments. * Also caches the transport instance to be used later. * * The order for blocking requests is cURL, Streams, and finally Fsockopen. @@ -631,7 +631,7 @@ class WP_Http_Fsockopen { $endDelay = time(); - // If the delay is greater than the timeout then fsockopen should't be used, because it will + // If the delay is greater than the timeout then fsockopen shouldn't be used, because it will // cause a long delay. $elapseDelay = ($endDelay-$startDelay) > $r['timeout']; if ( true === $elapseDelay ) @@ -915,7 +915,7 @@ class WP_Http_Streams { else $processedHeaders = WP_Http::processHeaders($meta['wrapper_data']); - // Streams does not provide an error code which we can use to see why the request stream stoped. + // Streams does not provide an error code which we can use to see why the request stream stopped. // We can however test to see if a location header is present and return based on that. if ( isset($processedHeaders['headers']['location']) && 0 !== $args['_redirection'] ) return new WP_Error('http_request_failed', __('Too many redirects.')); @@ -1031,7 +1031,7 @@ class WP_Http_Curl { // CURLOPT_TIMEOUT and CURLOPT_CONNECTTIMEOUT expect integers. Have to use ceil since - // a value of 0 will allow an ulimited timeout. + // a value of 0 will allow an unlimited timeout. $timeout = (int) ceil( $r['timeout'] ); curl_setopt( $handle, CURLOPT_CONNECTTIMEOUT, $timeout ); curl_setopt( $handle, CURLOPT_TIMEOUT, $timeout ); @@ -1679,7 +1679,7 @@ class WP_Http_Encoding { } /** - * What enconding the content used when it was compressed to send in the headers. + * What encoding the content used when it was compressed to send in the headers. * * @since 2.8 * diff --git a/wp-includes/class-oembed.php b/wp-includes/class-oembed.php index 8bfe258651..c874b03bc2 100644 --- a/wp-includes/class-oembed.php +++ b/wp-includes/class-oembed.php @@ -28,7 +28,7 @@ class WP_oEmbed { function __construct() { // List out some popular sites that support oEmbed. // The WP_Embed class disables discovery for non-unfiltered_html users, so only providers in this array will be used for them. - // Add to this list using the wp_oembed_add_provider() function (see it's PHPDoc for details). + // Add to this list using the wp_oembed_add_provider() function (see its PHPDoc for details). $this->providers = apply_filters( 'oembed_providers', array( '#http://(www\.)?youtube.com/watch.*#i' => array( 'http://www.youtube.com/oembed', true ), 'http://youtu.be/*' => array( 'http://www.youtube.com/oembed', false ), diff --git a/wp-includes/class-phpass.php b/wp-includes/class-phpass.php index ad474bcc50..dcdf3803b5 100644 --- a/wp-includes/class-phpass.php +++ b/wp-includes/class-phpass.php @@ -49,7 +49,7 @@ class PasswordHash { $this->portable_hashes = $portable_hashes; - $this->random_state = microtime() . uniqid(rand(), TRUE); // removed getmypid() for compability reasons + $this->random_state = microtime() . uniqid(rand(), TRUE); // removed getmypid() for compatibility reasons } function get_random_bytes($count) diff --git a/wp-includes/class-wp-error.php b/wp-includes/class-wp-error.php index ba4de05d77..b34d0cfdaa 100644 --- a/wp-includes/class-wp-error.php +++ b/wp-includes/class-wp-error.php @@ -70,7 +70,7 @@ class WP_Error { * @since 2.1.0 * @access public * - * @return array List of error codes, if avaiable. + * @return array List of error codes, if available. */ function get_error_codes() { if ( empty($this->errors) ) @@ -102,7 +102,7 @@ class WP_Error { * @since 2.1.0 * * @param string|int $code Optional. Retrieve messages matching code, if exists. - * @return array Error strings on success, or empty array on failure (if using codee parameter). + * @return array Error strings on success, or empty array on failure (if using code parameter). */ function get_error_messages($code = '') { // Return all messages if no code specified. diff --git a/wp-includes/class-wp-xmlrpc-server.php b/wp-includes/class-wp-xmlrpc-server.php index 0d56daf1e9..96b27d3514 100644 --- a/wp-includes/class-wp-xmlrpc-server.php +++ b/wp-includes/class-wp-xmlrpc-server.php @@ -8,7 +8,7 @@ /** * WordPress XMLRPC server implementation. * - * Implements compatability for Blogger API, MetaWeblog API, MovableType, and + * Implements compatibility for Blogger API, MetaWeblog API, MovableType, and * pingback. Additional WordPress API for managing comments, pages, posts, * options, etc. * @@ -747,7 +747,7 @@ class wp_xmlrpc_server extends IXR_Server { ORDER BY ID "); - // The date needs to be formated properly. + // The date needs to be formatted properly. $num_pages = count($page_list); for ( $i = 0; $i < $num_pages; $i++ ) { $post_date = mysql2date('Ymd\TH:i:s', $page_list[$i]->post_date, false); @@ -1551,7 +1551,7 @@ class wp_xmlrpc_server extends IXR_Server { * - username * - password * - attachment_id - * @return array. Assocciative array containing: + * @return array. Associative array containing: * - 'date_created_gmt' * - 'parent' * - 'link' @@ -1661,7 +1661,7 @@ class wp_xmlrpc_server extends IXR_Server { } /** - * Retrives a list of post formats used by the site + * Retrieves a list of post formats used by the site * * @since 3.1 * @@ -3445,7 +3445,7 @@ class wp_xmlrpc_server extends IXR_Server { } elseif ( isset($urltest['fragment']) ) { // an #anchor is there, it's either... if ( intval($urltest['fragment']) ) { - // ...an integer #XXXX (simpliest case) + // ...an integer #XXXX (simplest case) $post_ID = (int) $urltest['fragment']; $way = 'from the fragment (numeric)'; } elseif ( preg_match('/post-[0-9]+/',$urltest['fragment']) ) { diff --git a/wp-includes/class-wp.php b/wp-includes/class-wp.php index a1bc2f1255..ace304c937 100644 --- a/wp-includes/class-wp.php +++ b/wp-includes/class-wp.php @@ -569,7 +569,7 @@ class WP_MatchesMapRegex { * * @access public * @param string $subject subject - * @param array $matches data used for subsitution + * @param array $matches data used for substitution * @return string */ function apply($subject, $matches) { diff --git a/wp-includes/comment-template.php b/wp-includes/comment-template.php index ce0f9ddbb8..f113122eff 100644 --- a/wp-includes/comment-template.php +++ b/wp-includes/comment-template.php @@ -362,7 +362,7 @@ function get_comment_class( $class = '', $comment_id = null, $post_id = null ) { * Retrieve the comment date of the current comment. * * @since 1.5.0 - * @uses apply_filters() Calls 'get_comment_date' hook with the formated date and the $d parameter respectively + * @uses apply_filters() Calls 'get_comment_date' hook with the formatted date and the $d parameter respectively * @uses $comment * * @param string $d The format of the date (defaults to user's config) @@ -832,7 +832,7 @@ function wp_comment_form_unfiltered_html_nonce() { * * The $file path is passed through a filter hook called, 'comments_template' * which includes the TEMPLATEPATH and $file combined. Tries the $filtered path - * first and if it fails it will require the default comment themplate from the + * first and if it fails it will require the default comment template from the * default theme. If either does not exist, then the WordPress process will be * halted. It is advised for that reason, that the default theme is not deleted. * diff --git a/wp-includes/deprecated.php b/wp-includes/deprecated.php index df1f03e775..770dc40108 100644 --- a/wp-includes/deprecated.php +++ b/wp-includes/deprecated.php @@ -2073,7 +2073,7 @@ function sanitize_url( $url, $protocols = null ) { * Checks and cleans a URL. * * A number of characters are removed from the URL. If the URL is for displaying - * (the default behaviour) amperstands are also replaced. The 'clean_url' filter + * (the default behaviour) ampersands are also replaced. The 'clean_url' filter * is applied to the returned cleaned URL. * * @since 1.2.0 diff --git a/wp-includes/formatting.php b/wp-includes/formatting.php index 166350b89d..9b74993391 100644 --- a/wp-includes/formatting.php +++ b/wp-includes/formatting.php @@ -2228,7 +2228,7 @@ function esc_sql( $sql ) { * Checks and cleans a URL. * * A number of characters are removed from the URL. If the URL is for displaying - * (the default behaviour) amperstands are also replaced. The 'clean_url' filter + * (the default behaviour) ampersands are also replaced. The 'clean_url' filter * is applied to the returned cleaned URL. * * @since 2.8.0 diff --git a/wp-includes/functions.php b/wp-includes/functions.php index 7d6340065c..4a4c5eaa3b 100644 --- a/wp-includes/functions.php +++ b/wp-includes/functions.php @@ -20,7 +20,7 @@ * @param string $dateformatstring Either 'G', 'U', or php date format. * @param string $mysqlstring Time from mysql DATETIME field. * @param bool $translate Optional. Default is true. Will switch format to locale. - * @return string Date formated by $dateformatstring or locale (if available). + * @return string Date formatted by $dateformatstring or locale (if available). */ function mysql2date( $dateformatstring, $mysqlstring, $translate = true ) { $m = $mysqlstring; @@ -3586,7 +3586,7 @@ function iis7_supports_permalinks() { /* First we check if the DOMDocument class exists. If it does not exist, * which is the case for PHP 4.X, then we cannot easily update the xml configuration file, * hence we just bail out and tell user that pretty permalinks cannot be used. - * This is not a big issue because PHP 4.X is going to be depricated and for IIS it + * This is not a big issue because PHP 4.X is going to be deprecated and for IIS it * is recommended to use PHP 5.X NTS. * Next we check if the URL Rewrite Module 1.1 is loaded and enabled for the web site. When * URL Rewrite 1.1 is loaded it always sets a server variable called 'IIS_UrlRewriteModule'. diff --git a/wp-includes/http.php b/wp-includes/http.php index a909e001fd..02b8750847 100644 --- a/wp-includes/http.php +++ b/wp-includes/http.php @@ -130,7 +130,7 @@ function wp_remote_retrieve_headers(&$response) { * * @param array $response * @param string $header Header name to retrieve value from. - * @return string The header value. Empty string on if incorrect parameter given, or if the header doesnt exist. + * @return string The header value. Empty string on if incorrect parameter given, or if the header doesn't exist. */ function wp_remote_retrieve_header(&$response, $header) { if ( is_wp_error($response) || ! isset($response['headers']) || ! is_array($response['headers']))