Ticket #29199: misspellfixes.wordpress.20140812.vlajos.patch
File misspellfixes.wordpress.20140812.vlajos.patch, 20.0 KB (added by , 10 years ago) |
---|
-
wp-admin/includes/class-pclzip.php
37 37 // abilty to change that. 38 38 // However notice that changing this value, may have impact on existing 39 39 // scripts, using space separated filenames. 40 // Recomm anded values for compatibility with older versions :40 // Recommended values for compatibility with older versions : 41 41 //define( 'PCLZIP_SEPARATOR', ' ' ); 42 // Recomm anded values for smart separation of filenames.42 // Recommended values for smart separation of filenames. 43 43 if (!defined('PCLZIP_SEPARATOR')) { 44 44 define( 'PCLZIP_SEPARATOR', ',' ); 45 45 } … … 68 68 69 69 // ----- Optional threshold ratio for use of temporary files 70 70 // Pclzip sense the size of the file to add/extract and decide to 71 // use or not temporary file. The algor ythm is looking for71 // use or not temporary file. The algorithm is looking for 72 72 // memory_limit of PHP and apply a ratio. 73 73 // threshold = memory_limit * ratio. 74 74 // Recommended values are under 0.5. Default 0.47. … … 2386 2386 // Function : privAddList() 2387 2387 // Description : 2388 2388 // $p_add_dir and $p_remove_dir will give the ability to memorize a path which is 2389 // different from the real path of the file. This is useful lif you want to have PclTar2389 // different from the real path of the file. This is useful if you want to have PclTar 2390 2390 // running in any directory, and memorize relative path from an other directory. 2391 2391 // Parameters : 2392 2392 // $p_list : An array containing the file or directory names to add in the tar -
wp-admin/includes/class-wp-upgrader.php
2089 2089 return; 2090 2090 } 2091 2091 2092 // Update the lock, as by this point we've defin ately got a lock, just need to fire the actions2092 // Update the lock, as by this point we've definitely got a lock, just need to fire the actions 2093 2093 update_option( $lock_name, time() ); 2094 2094 2095 2095 // Don't automatically run these thins, as we'll handle it ourselves -
wp-admin/includes/theme.php
282 282 * It is possible for a theme to override the Themes API result with three 283 283 * filters. Assume this is for themes, which can extend on the Theme Info to 284 284 * offer more choices. This is very powerful and must be used with care, when 285 * overrid ding the filters.285 * overriding the filters. 286 286 * 287 287 * The first filter, 'themes_api_args', is for the args and gives the action as 288 288 * the second parameter. The hook for 'themes_api_args' must ensure that an -
wp-includes/SimplePie/Enclosure.php
914 914 * 915 915 * @deprecated Use the second parameter to {@see embed} instead 916 916 * 917 * @param array|string $options See first param ter to {@see embed}917 * @param array|string $options See first parameter to {@see embed} 918 918 * @return string HTML string to output 919 919 */ 920 920 public function native_embed($options='') -
wp-includes/SimplePie/Locator.php
226 226 } 227 227 if ($link->hasAttribute('href') && $link->hasAttribute('rel')) 228 228 { 229 $rel = array_unique($this->registry->call('Misc', 'space_sep erated_tokens', array(strtolower($link->getAttribute('rel')))));229 $rel = array_unique($this->registry->call('Misc', 'space_separated_tokens', array(strtolower($link->getAttribute('rel'))))); 230 230 $line = method_exists($link, 'getLineNo') ? $link->getLineNo() : 1; 231 231 232 232 if ($this->base_location < $line) -
wp-includes/SimplePie/Misc.php
1926 1926 return (bool) preg_match('/^([A-Za-z0-9\-._~\x{A0}-\x{D7FF}\x{F900}-\x{FDCF}\x{FDF0}-\x{FFEF}\x{10000}-\x{1FFFD}\x{20000}-\x{2FFFD}\x{30000}-\x{3FFFD}\x{40000}-\x{4FFFD}\x{50000}-\x{5FFFD}\x{60000}-\x{6FFFD}\x{70000}-\x{7FFFD}\x{80000}-\x{8FFFD}\x{90000}-\x{9FFFD}\x{A0000}-\x{AFFFD}\x{B0000}-\x{BFFFD}\x{C0000}-\x{CFFFD}\x{D0000}-\x{DFFFD}\x{E1000}-\x{EFFFD}!$&\'()*+,;=@]|(%[0-9ABCDEF]{2}))+$/u', $string); 1927 1927 } 1928 1928 1929 public static function space_sep erated_tokens($string)1929 public static function space_separated_tokens($string) 1930 1930 { 1931 1931 $space_characters = "\x20\x09\x0A\x0B\x0C\x0D"; 1932 1932 $string_length = strlen($string); -
wp-includes/SimplePie/Parse/Date.php
630 630 /** 631 631 * Parse a superset of W3C-DTF (allows hyphens and colons to be omitted, as 632 632 * well as allowing any of upper or lower case "T", horizontal tabs, or 633 * spaces to be used as the time sep erator (including more than one))633 * spaces to be used as the time separator (including more than one)) 634 634 * 635 635 * @access protected 636 636 * @return int Timestamp -
wp-includes/class-IXR.php
358 358 $this->_arraystructs[count($this->_arraystructs)-1][] = $value; 359 359 } 360 360 } else { 361 // Just add as a param ater361 // Just add as a parameter 362 362 $this->params[] = $value; 363 363 } 364 364 } … … 451 451 452 452 // Perform the callback and send the response 453 453 if (count($args) == 1) { 454 // If only one param ater just send that instead of the whole array454 // If only one parameter just send that instead of the whole array 455 455 $args = $args[0]; 456 456 } 457 457 -
wp-includes/class-http.php
727 727 * @since 3.7.0 728 728 * 729 729 * @param string $url The URL which was requested. 730 * @param array $args The Argu ements which were used to make the request.730 * @param array $args The Arguments which were used to make the request. 731 731 * @param array $response The Response of the HTTP request. 732 732 * @return false|object False if no redirect is present, a WP_HTTP or WP_Error result otherwise. 733 733 */ … … 1430 1430 1431 1431 $curl_error = curl_errno( $handle ); 1432 1432 1433 // If an error occur ed, or, no response.1433 // If an error occurred, or, no response. 1434 1434 if ( $curl_error || ( 0 == strlen( $theBody ) && empty( $theHeaders['headers'] ) ) ) { 1435 1435 if ( CURLE_WRITE_ERROR /* 23 */ == $curl_error && $r['stream'] ) { 1436 1436 fclose( $this->stream_handle ); -
wp-includes/class-json.php
798 798 ($top['what'] == SERVICES_JSON_IN_STR) && 799 799 (($this->strlen8($this->substr8($chrs, 0, $c)) - $this->strlen8(rtrim($this->substr8($chrs, 0, $c), '\\'))) % 2 != 1)) { 800 800 // found a quote, we're in a string, and it's not escaped 801 // we know that it's not escaped beca se there is _not_ an801 // we know that it's not escaped because there is _not_ an 802 802 // odd number of backslashes at the end of the string so far 803 803 array_pop($stk); 804 804 //print("Found end of string at {$c}: ".$this->substr8($chrs, $top['where'], (1 + 1 + $c - $top['where']))."\n"); -
wp-includes/class-pop3.php
420 420 if(!$this->is_ok($reply)) 421 421 { 422 422 // The POP3 RSET command -never- gives a -ERR 423 // response - if it ever does, something tru ely423 // response - if it ever does, something truly 424 424 // wild is going on. 425 425 426 426 $this->ERROR = "POP3 reset: " . _("Error ") . "[$reply]"; -
wp-includes/class-simplepie.php
1612 1612 } 1613 1613 1614 1614 /** 1615 * Get the error message for the occur ed error1615 * Get the error message for the occurred error 1616 1616 * 1617 1617 * @return string|array Error message, or array of messages for multifeeds 1618 1618 */ -
wp-includes/class-wp-walker.php
40 40 protected $max_pages = 1; 41 41 42 42 /** 43 * W ether the current element has children or not.43 * Whether the current element has children or not. 44 44 * 45 45 * To be used in start_el(). 46 46 * -
wp-includes/date.php
84 84 * Default (string:empty)|(array:last day of month). Accepts numbers 1-31. 85 85 * } 86 86 * @type string $column Optional. Used to add a clause comparing a column other than the column 87 * specified in the top-level $column param ater. Default is the value87 * specified in the top-level $column parameter. Default is the value 88 88 * of top-level $column. Accepts 'post_date', 'post_date_gmt', 89 89 * 'post_modified', 'post_modified_gmt', 'comment_date', 'comment_date_gmt'. 90 90 * @type string $compare Optional. The comparison operator. Default '='. Accepts '=', '!=', -
wp-includes/formatting.php
227 227 $textarr = preg_split( $regex, $text, -1, PREG_SPLIT_DELIM_CAPTURE | PREG_SPLIT_NO_EMPTY ); 228 228 229 229 foreach ( $textarr as &$curl ) { 230 // Only call _wptexturize_pushpop_element if $curl is a delim eter.230 // Only call _wptexturize_pushpop_element if $curl is a delimiter. 231 231 $first = $curl[0]; 232 232 if ( '<' === $first && '>' === substr( $curl, -1 ) ) { 233 // This is an HTML delim eter.233 // This is an HTML delimiter. 234 234 235 235 if ( '<!--' !== substr( $curl, 0, 4 ) ) { 236 236 _wptexturize_pushpop_element( $curl, $no_texturize_tags_stack, $no_texturize_tags ); 237 237 } 238 238 239 239 } elseif ( '' === trim( $curl ) ) { 240 // This is a newline between delim eters. Performance improves when we check this.240 // This is a newline between delimiters. Performance improves when we check this. 241 241 242 242 continue; 243 243 244 244 } elseif ( '[' === $first && 1 === preg_match( '/^\[(?:[^\[\]<>]|<[^>]+>)++\]$/', $curl ) ) { 245 // This is a shortcode delim eter.245 // This is a shortcode delimiter. 246 246 247 247 _wptexturize_pushpop_element( $curl, $no_texturize_shortcodes_stack, $no_texturize_shortcodes ); 248 248 249 249 } elseif ( '[' === $first && 1 === preg_match( '/^\[\[?(?:[^\[\]<>]|<[^>]+>)++\]\]?$/', $curl ) ) { 250 // This is an escaped shortcode delim eter.250 // This is an escaped shortcode delimiter. 251 251 252 252 // Do not texturize. 253 253 // Do not push to the shortcodes stack. … … 255 255 continue; 256 256 257 257 } elseif ( empty( $no_texturize_shortcodes_stack ) && empty( $no_texturize_tags_stack ) ) { 258 // This is neither a delim eter, nor is this content inside of no_texturize pairs. Do texturize.258 // This is neither a delimiter, nor is this content inside of no_texturize pairs. Do texturize. 259 259 260 260 $curl = str_replace( $static_characters, $static_replacements, $curl ); 261 261 -
wp-includes/js/colorpicker.js
29 29 DESCRIPTION: These functions find the position of an <A> tag in a document, 30 30 so other elements can be positioned relative to it. 31 31 32 COMPAT ABILITY: Netscape 4.x,6.x,Mozilla, IE 5.x,6.x on Windows. Some small32 COMPATIBILITY: Netscape 4.x,6.x,Mozilla, IE 5.x,6.x on Windows. Some small 33 33 positioning errors - usually with Window positioning - occur on the 34 34 Macintosh platform. 35 35 … … 160 160 in a certain place. The window can either be a DIV or a separate browser 161 161 window. 162 162 163 COMPAT ABILITY: Works with Netscape 4.x, 6.x, IE 5.x on Windows. Some small163 COMPATIBILITY: Works with Netscape 4.x, 6.x, IE 5.x on Windows. Some small 164 164 positioning errors - usually with Window positioning - occur on the 165 165 Macintosh platform. Due to bugs in Netscape 4.x, populating the popup 166 166 window with <STYLE> tags may cause errors. … … 477 477 form. It uses a color "swatch" to display the standard 216-color web-safe 478 478 palette. The user can then click on a color to select it. 479 479 480 COMPAT ABILITY: See notes in AnchorPosition.js and PopupWindow.js.480 COMPATIBILITY: See notes in AnchorPosition.js and PopupWindow.js. 481 481 Only the latest DHTML-capable browsers will show the color and hex values 482 482 at the bottom as your mouse goes over them. 483 483 -
wp-includes/js/heartbeat.js
63 63 // Whether a connection is currently in progress 64 64 connecting: false, 65 65 66 // Whether a connection error occur ed66 // Whether a connection error occurred 67 67 connectionError: false, 68 68 69 69 // Used to track non-critical errors -
wp-includes/js/media-audiovideo.js
617 617 /** 618 618 * wp.media.view.MediaDetails 619 619 * 620 * @con tructor620 * @constructor 621 621 * @augments wp.media.view.Settings.AttachmentDisplay 622 622 * @augments wp.media.view.Settings 623 623 * @augments wp.media.View … … 762 762 /** 763 763 * wp.media.view.AudioDetails 764 764 * 765 * @con tructor765 * @constructor 766 766 * @augments wp.media.view.MediaDetails 767 767 * @augments wp.media.view.Settings.AttachmentDisplay 768 768 * @augments wp.media.view.Settings … … 794 794 /** 795 795 * wp.media.view.VideoDetails 796 796 * 797 * @con tructor797 * @constructor 798 798 * @augments wp.media.view.MediaDetails 799 799 * @augments wp.media.view.Settings.AttachmentDisplay 800 800 * @augments wp.media.view.Settings -
wp-includes/js/media-views.js
6782 6782 /** 6783 6783 * wp.media.view.EmbedImage 6784 6784 * 6785 * @con tructor6785 * @constructor 6786 6786 * @augments wp.media.view.Settings.AttachmentDisplay 6787 6787 * @augments wp.media.view.Settings 6788 6788 * @augments wp.media.View … … 6809 6809 /** 6810 6810 * wp.media.view.ImageDetails 6811 6811 * 6812 * @con tructor6812 * @constructor 6813 6813 * @augments wp.media.view.Settings.AttachmentDisplay 6814 6814 * @augments wp.media.view.Settings 6815 6815 * @augments wp.media.View -
wp-includes/js/swfupload/swfupload.js
307 307 308 308 // Public: Used to remove a SWFUpload instance from the page. This method strives to remove 309 309 // all references to the SWF, and other objects so memory is properly freed. 310 // Returns true if everything was destroyed. Returns a false if a failure occurs leaving SWFUpload in an inconsist ant state.310 // Returns true if everything was destroyed. Returns a false if a failure occurs leaving SWFUpload in an inconsistent state. 311 311 // Credits: Major improvements provided by steffen 312 312 SWFUpload.prototype.destroy = function () { 313 313 try { … … 797 797 this.queueEvent("swfupload_loaded_handler"); 798 798 }; 799 799 800 // Private: removes Flash added fu ctions to the DOM node to prevent memory leaks in IE.800 // Private: removes Flash added functions to the DOM node to prevent memory leaks in IE. 801 801 // This function is called by Flash each time the ExternalInterface functions are created. 802 802 SWFUpload.prototype.cleanUp = function (movieElement) { 803 803 // Pro-actively unhook all the Flash functions -
wp-includes/js/thickbox/thickbox.js
105 105 imgPreloader.onload = function(){ 106 106 imgPreloader.onload = null; 107 107 108 // Resizing large images - or ginal by Christian Montoya edited by me.108 // Resizing large images - original by Christian Montoya edited by me. 109 109 var pagesize = tb_getPageSize(); 110 110 var x = pagesize[0] - 150; 111 111 var y = pagesize[1] - 150; … … 186 186 var queryString = url.replace(/^[^\?]+\??/,''); 187 187 var params = tb_parseQuery( queryString ); 188 188 189 TB_WIDTH = (params['width']*1) + 30 || 630; //defaults to 630 if no param aters were added to URL190 TB_HEIGHT = (params['height']*1) + 40 || 440; //defaults to 440 if no param aters were added to URL189 TB_WIDTH = (params['width']*1) + 30 || 630; //defaults to 630 if no parameters were added to URL 190 TB_HEIGHT = (params['height']*1) + 40 || 440; //defaults to 440 if no parameters were added to URL 191 191 ajaxContentW = TB_WIDTH - 30; 192 192 ajaxContentH = TB_HEIGHT - 45; 193 193 -
wp-includes/pomo/translations.php
172 172 } 173 173 174 174 /** 175 * Adds par antheses to the inner parts of ternary operators in175 * Adds parentheses to the inner parts of ternary operators in 176 176 * plural expressions, because PHP evaluates ternary oerators from left to right 177 177 * 178 178 * @param string $expression the expression without parentheses -
wp-includes/rss.php
247 247 } 248 248 elseif ($this->feed_type == ATOM and $this->incontent ) { 249 249 // balance tags properly 250 // note: i don't think this is actually nec cessary250 // note: i don't think this is actually necessary 251 251 if ( $this->stack[0] == $el ) 252 252 { 253 253 $this->append_content("</$el>"); … … 724 724 Function: set 725 725 Purpose: add an item to the cache, keyed on url 726 726 Input: url from wich the rss file was fetched 727 Output: true on suc ess727 Output: true on success 728 728 \*=======================================================================*/ 729 729 function set ($url, $rss) { 730 730 $cache_option = 'rss_' . $this->file_name( $url ); -
wp-includes/wp-diff.php
414 414 if ( !$string1 ) 415 415 return $difference; 416 416 417 // Return distance per char cter (of string1)417 // Return distance per character (of string1) 418 418 return $difference / strlen($string1); 419 419 } 420 420