Fix some documentation typos in various core files.

Props vlajos.
Fixes #29199.

Built from https://develop.svn.wordpress.org/trunk@29479


git-svn-id: http://core.svn.wordpress.org/trunk@29257 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Drew Jaynes 2014-08-13 03:56:17 +00:00
parent 8f2b4fbe9e
commit d33c807723
16 changed files with 29 additions and 29 deletions

View File

@ -2089,7 +2089,7 @@ class WP_Automatic_Updater {
return;
}
// Update the lock, as by this point we've definately got a lock, just need to fire the actions
// Update the lock, as by this point we've definitely got a lock, just need to fire the actions
update_option( $lock_name, time() );
// Don't automatically run these thins, as we'll handle it ourselves

View File

@ -282,7 +282,7 @@ function get_theme_feature_list( $api = true ) {
* It is possible for a theme to override the Themes API result with three
* filters. Assume this is for themes, which can extend on the Theme Info to
* offer more choices. This is very powerful and must be used with care, when
* overridding the filters.
* overriding the filters.
*
* The first filter, 'themes_api_args', is for the args and gives the action as
* the second parameter. The hook for 'themes_api_args' must ensure that an

View File

@ -358,7 +358,7 @@ class IXR_Message
$this->_arraystructs[count($this->_arraystructs)-1][] = $value;
}
} else {
// Just add as a paramater
// Just add as a parameter
$this->params[] = $value;
}
}
@ -451,7 +451,7 @@ EOD;
// Perform the callback and send the response
if (count($args) == 1) {
// If only one paramater just send that instead of the whole array
// If only one parameter just send that instead of the whole array
$args = $args[0];
}

View File

@ -727,7 +727,7 @@ class WP_Http {
* @since 3.7.0
*
* @param string $url The URL which was requested.
* @param array $args The Arguements which were used to make the request.
* @param array $args The Arguments which were used to make the request.
* @param array $response The Response of the HTTP request.
* @return false|object False if no redirect is present, a WP_HTTP or WP_Error result otherwise.
*/
@ -1430,7 +1430,7 @@ class WP_Http_Curl {
$curl_error = curl_errno( $handle );
// If an error occured, or, no response.
// If an error occurred, or, no response.
if ( $curl_error || ( 0 == strlen( $theBody ) && empty( $theHeaders['headers'] ) ) ) {
if ( CURLE_WRITE_ERROR /* 23 */ == $curl_error && $r['stream'] ) {
fclose( $this->stream_handle );

View File

@ -1612,7 +1612,7 @@ class SimplePie
}
/**
* Get the error message for the occured error
* Get the error message for the occurred error.
*
* @return string|array Error message, or array of messages for multifeeds
*/

View File

@ -40,7 +40,7 @@ class Walker {
protected $max_pages = 1;
/**
* Wether the current element has children or not.
* Whether the current element has children or not.
*
* To be used in start_el().
*

View File

@ -84,7 +84,7 @@ class WP_Date_Query {
* Default (string:empty)|(array:last day of month). Accepts numbers 1-31.
* }
* @type string $column Optional. Used to add a clause comparing a column other than the column
* specified in the top-level $column paramater. Default is the value
* specified in the top-level $column parameter. Default is the value
* of top-level $column. Accepts 'post_date', 'post_date_gmt',
* 'post_modified', 'post_modified_gmt', 'comment_date', 'comment_date_gmt'.
* @type string $compare Optional. The comparison operator. Default '='. Accepts '=', '!=',

View File

@ -227,27 +227,27 @@ function wptexturize($text, $reset = false) {
$textarr = preg_split( $regex, $text, -1, PREG_SPLIT_DELIM_CAPTURE | PREG_SPLIT_NO_EMPTY );
foreach ( $textarr as &$curl ) {
// Only call _wptexturize_pushpop_element if $curl is a delimeter.
// Only call _wptexturize_pushpop_element if $curl is a delimiter.
$first = $curl[0];
if ( '<' === $first && '>' === substr( $curl, -1 ) ) {
// This is an HTML delimeter.
// This is an HTML delimiter.
if ( '<!--' !== substr( $curl, 0, 4 ) ) {
_wptexturize_pushpop_element( $curl, $no_texturize_tags_stack, $no_texturize_tags );
}
} elseif ( '' === trim( $curl ) ) {
// This is a newline between delimeters. Performance improves when we check this.
// This is a newline between delimiters. Performance improves when we check this.
continue;
} elseif ( '[' === $first && 1 === preg_match( '/^\[(?:[^\[\]<>]|<[^>]+>)++\]$/', $curl ) ) {
// This is a shortcode delimeter.
// This is a shortcode delimiter.
_wptexturize_pushpop_element( $curl, $no_texturize_shortcodes_stack, $no_texturize_shortcodes );
} elseif ( '[' === $first && 1 === preg_match( '/^\[\[?(?:[^\[\]<>]|<[^>]+>)++\]\]?$/', $curl ) ) {
// This is an escaped shortcode delimeter.
// This is an escaped shortcode delimiter.
// Do not texturize.
// Do not push to the shortcodes stack.
@ -255,7 +255,7 @@ function wptexturize($text, $reset = false) {
continue;
} elseif ( empty( $no_texturize_shortcodes_stack ) && empty( $no_texturize_tags_stack ) ) {
// This is neither a delimeter, nor is this content inside of no_texturize pairs. Do texturize.
// This is neither a delimiter, nor is this content inside of no_texturize pairs. Do texturize.
$curl = str_replace( $static_characters, $static_replacements, $curl );

View File

@ -63,7 +63,7 @@
// Whether a connection is currently in progress
connecting: false,
// Whether a connection error occured
// Whether a connection error occurred
connectionError: false,
// Used to track non-critical errors

View File

@ -617,7 +617,7 @@
/**
* wp.media.view.MediaDetails
*
* @contructor
* @constructor
* @augments wp.media.view.Settings.AttachmentDisplay
* @augments wp.media.view.Settings
* @augments wp.media.View
@ -762,7 +762,7 @@
/**
* wp.media.view.AudioDetails
*
* @contructor
* @constructor
* @augments wp.media.view.MediaDetails
* @augments wp.media.view.Settings.AttachmentDisplay
* @augments wp.media.view.Settings
@ -794,7 +794,7 @@
/**
* wp.media.view.VideoDetails
*
* @contructor
* @constructor
* @augments wp.media.view.MediaDetails
* @augments wp.media.view.Settings.AttachmentDisplay
* @augments wp.media.view.Settings

View File

@ -6784,7 +6784,7 @@
/**
* wp.media.view.EmbedImage
*
* @contructor
* @constructor
* @augments wp.media.view.Settings.AttachmentDisplay
* @augments wp.media.view.Settings
* @augments wp.media.View
@ -6811,7 +6811,7 @@
/**
* wp.media.view.ImageDetails
*
* @contructor
* @constructor
* @augments wp.media.view.Settings.AttachmentDisplay
* @augments wp.media.view.Settings
* @augments wp.media.View

View File

@ -3,7 +3,7 @@
*
* mmSWFUpload 1.0: Flash upload dialog - http://profandesign.se/swfupload/, http://www.vinterwebb.se/
*
* SWFUpload is (c) 2006-2007 Lars Huring, Olov Nilzén and Mammon Media and is released under the MIT License:
* SWFUpload is (c) 2006-2007 Lars Huring, Olov Nilz<EFBFBD>n and Mammon Media and is released under the MIT License:
* http://www.opensource.org/licenses/mit-license.php
*
* SWFUpload 2 is (c) 2007-2008 Jake Roberts and is released under the MIT License:

View File

@ -105,7 +105,7 @@ function tb_show(caption, url, imageGroup) {//function called when the user clic
imgPreloader.onload = function(){
imgPreloader.onload = null;
// Resizing large images - orginal by Christian Montoya edited by me.
// Resizing large images - original by Christian Montoya edited by me.
var pagesize = tb_getPageSize();
var x = pagesize[0] - 150;
var y = pagesize[1] - 150;
@ -186,8 +186,8 @@ function tb_show(caption, url, imageGroup) {//function called when the user clic
var queryString = url.replace(/^[^\?]+\??/,'');
var params = tb_parseQuery( queryString );
TB_WIDTH = (params['width']*1) + 30 || 630; //defaults to 630 if no paramaters were added to URL
TB_HEIGHT = (params['height']*1) + 40 || 440; //defaults to 440 if no paramaters were added to URL
TB_WIDTH = (params['width']*1) + 30 || 630; //defaults to 630 if no parameters were added to URL
TB_HEIGHT = (params['height']*1) + 40 || 440; //defaults to 440 if no parameters were added to URL
ajaxContentW = TB_WIDTH - 30;
ajaxContentH = TB_HEIGHT - 45;

View File

@ -172,7 +172,7 @@ class Gettext_Translations extends Translations {
}
/**
* Adds parantheses to the inner parts of ternary operators in
* Adds parentheses to the inner parts of ternary operators in
* plural expressions, because PHP evaluates ternary oerators from left to right
*
* @param string $expression the expression without parentheses

View File

@ -247,7 +247,7 @@ class MagpieRSS {
}
elseif ($this->feed_type == ATOM and $this->incontent ) {
// balance tags properly
// note: i don't think this is actually neccessary
// note: This may not actually be necessary
if ( $this->stack[0] == $el )
{
$this->append_content("</$el>");
@ -724,7 +724,7 @@ class RSSCache {
Function: set
Purpose: add an item to the cache, keyed on url
Input: url from wich the rss file was fetched
Output: true on sucess
Output: true on success
\*=======================================================================*/
function set ($url, $rss) {
$cache_option = 'rss_' . $this->file_name( $url );

View File

@ -414,7 +414,7 @@ class WP_Text_Diff_Renderer_Table extends Text_Diff_Renderer {
if ( !$string1 )
return $difference;
// Return distance per charcter (of string1)
// Return distance per character (of string1).
return $difference / strlen($string1);
}