Make WordPress Core

Ticket #29199: misspellfixes.wordpress.20140812.vlajos.patch

File misspellfixes.wordpress.20140812.vlajos.patch, 20.0 KB (added by vlajos, 10 years ago)
  • wp-admin/includes/class-pclzip.php

     
    3737  // abilty to change that.
    3838  // However notice that changing this value, may have impact on existing
    3939  // scripts, using space separated filenames.
    40   // Recommanded values for compatibility with older versions :
     40  // Recommended values for compatibility with older versions :
    4141  //define( 'PCLZIP_SEPARATOR', ' ' );
    42   // Recommanded values for smart separation of filenames.
     42  // Recommended values for smart separation of filenames.
    4343  if (!defined('PCLZIP_SEPARATOR')) {
    4444    define( 'PCLZIP_SEPARATOR', ',' );
    4545  }
     
    6868
    6969  // ----- Optional threshold ratio for use of temporary files
    7070  //       Pclzip sense the size of the file to add/extract and decide to
    71   //       use or not temporary file. The algorythm is looking for
     71  //       use or not temporary file. The algorithm is looking for
    7272  //       memory_limit of PHP and apply a ratio.
    7373  //       threshold = memory_limit * ratio.
    7474  //       Recommended values are under 0.5. Default 0.47.
     
    23862386  // Function : privAddList()
    23872387  // Description :
    23882388  //   $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 usefull if you want to have PclTar
     2389  //   different from the real path of the file. This is useful if you want to have PclTar
    23902390  //   running in any directory, and memorize relative path from an other directory.
    23912391  // Parameters :
    23922392  //   $p_list : An array containing the file or directory names to add in the tar
  • wp-admin/includes/class-wp-upgrader.php

     
    20892089                                return;
    20902090                }
    20912091
    2092                 // Update the lock, as by this point we've definately got a lock, just need to fire the actions
     2092                // Update the lock, as by this point we've definitely got a lock, just need to fire the actions
    20932093                update_option( $lock_name, time() );
    20942094
    20952095                // Don't automatically run these thins, as we'll handle it ourselves
  • wp-admin/includes/theme.php

     
    282282 * It is possible for a theme to override the Themes API result with three
    283283 * filters. Assume this is for themes, which can extend on the Theme Info to
    284284 * offer more choices. This is very powerful and must be used with care, when
    285  * overridding the filters.
     285 * overriding the filters.
    286286 *
    287287 * The first filter, 'themes_api_args', is for the args and gives the action as
    288288 * the second parameter. The hook for 'themes_api_args' must ensure that an
  • wp-includes/SimplePie/Enclosure.php

     
    914914         *
    915915         * @deprecated Use the second parameter to {@see embed} instead
    916916         *
    917          * @param array|string $options See first paramter to {@see embed}
     917         * @param array|string $options See first parameter to {@see embed}
    918918         * @return string HTML string to output
    919919         */
    920920        public function native_embed($options='')
  • wp-includes/SimplePie/Locator.php

     
    226226                        }
    227227                        if ($link->hasAttribute('href') && $link->hasAttribute('rel'))
    228228                        {
    229                                 $rel = array_unique($this->registry->call('Misc', 'space_seperated_tokens', array(strtolower($link->getAttribute('rel')))));
     229                                $rel = array_unique($this->registry->call('Misc', 'space_separated_tokens', array(strtolower($link->getAttribute('rel')))));
    230230                                $line = method_exists($link, 'getLineNo') ? $link->getLineNo() : 1;
    231231
    232232                                if ($this->base_location < $line)
  • wp-includes/SimplePie/Misc.php

     
    19261926                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);
    19271927        }
    19281928
    1929         public static function space_seperated_tokens($string)
     1929        public static function space_separated_tokens($string)
    19301930        {
    19311931                $space_characters = "\x20\x09\x0A\x0B\x0C\x0D";
    19321932                $string_length = strlen($string);
  • wp-includes/SimplePie/Parse/Date.php

     
    630630        /**
    631631         * Parse a superset of W3C-DTF (allows hyphens and colons to be omitted, as
    632632         * well as allowing any of upper or lower case "T", horizontal tabs, or
    633          * spaces to be used as the time seperator (including more than one))
     633         * spaces to be used as the time separator (including more than one))
    634634         *
    635635         * @access protected
    636636         * @return int Timestamp
  • wp-includes/class-IXR.php

     
    358358                    $this->_arraystructs[count($this->_arraystructs)-1][] = $value;
    359359                }
    360360            } else {
    361                 // Just add as a paramater
     361                // Just add as a parameter
    362362                $this->params[] = $value;
    363363            }
    364364        }
     
    451451
    452452        // Perform the callback and send the response
    453453        if (count($args) == 1) {
    454             // If only one paramater just send that instead of the whole array
     454            // If only one parameter just send that instead of the whole array
    455455            $args = $args[0];
    456456        }
    457457
  • wp-includes/class-http.php

     
    727727         * @since 3.7.0
    728728         *
    729729         * @param string $url The URL which was requested.
    730          * @param array $args The Arguements which were used to make the request.
     730         * @param array $args The Arguments which were used to make the request.
    731731         * @param array $response The Response of the HTTP request.
    732732         * @return false|object False if no redirect is present, a WP_HTTP or WP_Error result otherwise.
    733733         */
     
    14301430
    14311431                $curl_error = curl_errno( $handle );
    14321432
    1433                 // If an error occured, or, no response.
     1433                // If an error occurred, or, no response.
    14341434                if ( $curl_error || ( 0 == strlen( $theBody ) && empty( $theHeaders['headers'] ) ) ) {
    14351435                        if ( CURLE_WRITE_ERROR /* 23 */ == $curl_error &&  $r['stream'] ) {
    14361436                                fclose( $this->stream_handle );
  • wp-includes/class-json.php

     
    798798                                 ($top['what'] == SERVICES_JSON_IN_STR) &&
    799799                                 (($this->strlen8($this->substr8($chrs, 0, $c)) - $this->strlen8(rtrim($this->substr8($chrs, 0, $c), '\\'))) % 2 != 1)) {
    800800                            // found a quote, we're in a string, and it's not escaped
    801                             // we know that it's not escaped becase there is _not_ an
     801                            // we know that it's not escaped because there is _not_ an
    802802                            // odd number of backslashes at the end of the string so far
    803803                            array_pop($stk);
    804804                            //print("Found end of string at {$c}: ".$this->substr8($chrs, $top['where'], (1 + 1 + $c - $top['where']))."\n");
  • wp-includes/class-pop3.php

     
    420420        if(!$this->is_ok($reply))
    421421        {
    422422            //  The POP3 RSET command -never- gives a -ERR
    423             //  response - if it ever does, something truely
     423            //  response - if it ever does, something truly
    424424            //  wild is going on.
    425425
    426426            $this->ERROR = "POP3 reset: " . _("Error ") . "[$reply]";
  • wp-includes/class-simplepie.php

     
    16121612        }
    16131613
    16141614        /**
    1615          * Get the error message for the occured error
     1615         * Get the error message for the occurred error
    16161616         *
    16171617         * @return string|array Error message, or array of messages for multifeeds
    16181618         */
  • wp-includes/class-wp-walker.php

     
    4040        protected $max_pages = 1;
    4141
    4242        /**
    43          * Wether the current element has children or not.
     43         * Whether the current element has children or not.
    4444         *
    4545         * To be used in start_el().
    4646         *
  • wp-includes/date.php

     
    8484         *                                     Default (string:empty)|(array:last day of month). Accepts numbers 1-31.
    8585         *             }
    8686         *             @type string       $column    Optional. Used to add a clause comparing a column other than the column
    87          *                                           specified in the top-level $column paramater.  Default is the value
     87         *                                           specified in the top-level $column parameter.  Default is the value
    8888         *                                           of top-level $column. Accepts 'post_date', 'post_date_gmt',
    8989         *                                           'post_modified', 'post_modified_gmt', 'comment_date', 'comment_date_gmt'.
    9090         *             @type string       $compare   Optional. The comparison operator. Default '='. Accepts '=', '!=',
  • wp-includes/formatting.php

     
    227227        $textarr = preg_split( $regex, $text, -1, PREG_SPLIT_DELIM_CAPTURE | PREG_SPLIT_NO_EMPTY );
    228228
    229229        foreach ( $textarr as &$curl ) {
    230                 // Only call _wptexturize_pushpop_element if $curl is a delimeter.
     230                // Only call _wptexturize_pushpop_element if $curl is a delimiter.
    231231                $first = $curl[0];
    232232                if ( '<' === $first && '>' === substr( $curl, -1 ) ) {
    233                         // This is an HTML delimeter.
     233                        // This is an HTML delimiter.
    234234
    235235                        if ( '<!--' !== substr( $curl, 0, 4 ) ) {
    236236                                _wptexturize_pushpop_element( $curl, $no_texturize_tags_stack, $no_texturize_tags );
    237237                        }
    238238
    239239                } elseif ( '' === trim( $curl ) ) {
    240                         // This is a newline between delimeters.  Performance improves when we check this.
     240                        // This is a newline between delimiters.  Performance improves when we check this.
    241241
    242242                        continue;
    243243
    244244                } elseif ( '[' === $first && 1 === preg_match( '/^\[(?:[^\[\]<>]|<[^>]+>)++\]$/', $curl ) ) {
    245                         // This is a shortcode delimeter.
     245                        // This is a shortcode delimiter.
    246246
    247247                        _wptexturize_pushpop_element( $curl, $no_texturize_shortcodes_stack, $no_texturize_shortcodes );
    248248
    249249                } elseif ( '[' === $first && 1 === preg_match( '/^\[\[?(?:[^\[\]<>]|<[^>]+>)++\]\]?$/', $curl ) ) {
    250                         // This is an escaped shortcode delimeter.
     250                        // This is an escaped shortcode delimiter.
    251251
    252252                        // Do not texturize.
    253253                        // Do not push to the shortcodes stack.
     
    255255                        continue;
    256256
    257257                } elseif ( empty( $no_texturize_shortcodes_stack ) && empty( $no_texturize_tags_stack ) ) {
    258                         // This is neither a delimeter, 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.
    259259
    260260                        $curl = str_replace( $static_characters, $static_replacements, $curl );
    261261
  • wp-includes/js/colorpicker.js

     
    2929DESCRIPTION: These functions find the position of an <A> tag in a document,
    3030so other elements can be positioned relative to it.
    3131
    32 COMPATABILITY: Netscape 4.x,6.x,Mozilla, IE 5.x,6.x on Windows. Some small
     32COMPATIBILITY: Netscape 4.x,6.x,Mozilla, IE 5.x,6.x on Windows. Some small
    3333positioning errors - usually with Window positioning - occur on the
    3434Macintosh platform.
    3535
     
    160160in a certain place. The window can either be a DIV or a separate browser
    161161window.
    162162
    163 COMPATABILITY: Works with Netscape 4.x, 6.x, IE 5.x on Windows. Some small
     163COMPATIBILITY: Works with Netscape 4.x, 6.x, IE 5.x on Windows. Some small
    164164positioning errors - usually with Window positioning - occur on the
    165165Macintosh platform. Due to bugs in Netscape 4.x, populating the popup
    166166window with <STYLE> tags may cause errors.
     
    477477form. It uses a color "swatch" to display the standard 216-color web-safe
    478478palette. The user can then click on a color to select it.
    479479
    480 COMPATABILITY: See notes in AnchorPosition.js and PopupWindow.js.
     480COMPATIBILITY: See notes in AnchorPosition.js and PopupWindow.js.
    481481Only the latest DHTML-capable browsers will show the color and hex values
    482482at the bottom as your mouse goes over them.
    483483
  • wp-includes/js/heartbeat.js

     
    6363                                // Whether a connection is currently in progress
    6464                                connecting: false,
    6565
    66                                 // Whether a connection error occured
     66                                // Whether a connection error occurred
    6767                                connectionError: false,
    6868
    6969                                // Used to track non-critical errors
  • wp-includes/js/media-audiovideo.js

     
    617617        /**
    618618         * wp.media.view.MediaDetails
    619619         *
    620          * @contructor
     620         * @constructor
    621621         * @augments wp.media.view.Settings.AttachmentDisplay
    622622         * @augments wp.media.view.Settings
    623623         * @augments wp.media.View
     
    762762        /**
    763763         * wp.media.view.AudioDetails
    764764         *
    765          * @contructor
     765         * @constructor
    766766         * @augments wp.media.view.MediaDetails
    767767         * @augments wp.media.view.Settings.AttachmentDisplay
    768768         * @augments wp.media.view.Settings
     
    794794        /**
    795795         * wp.media.view.VideoDetails
    796796         *
    797          * @contructor
     797         * @constructor
    798798         * @augments wp.media.view.MediaDetails
    799799         * @augments wp.media.view.Settings.AttachmentDisplay
    800800         * @augments wp.media.view.Settings
  • wp-includes/js/media-views.js

     
    67826782        /**
    67836783         * wp.media.view.EmbedImage
    67846784         *
    6785          * @contructor
     6785         * @constructor
    67866786         * @augments wp.media.view.Settings.AttachmentDisplay
    67876787         * @augments wp.media.view.Settings
    67886788         * @augments wp.media.View
     
    68096809        /**
    68106810         * wp.media.view.ImageDetails
    68116811         *
    6812          * @contructor
     6812         * @constructor
    68136813         * @augments wp.media.view.Settings.AttachmentDisplay
    68146814         * @augments wp.media.view.Settings
    68156815         * @augments wp.media.View
  • wp-includes/js/swfupload/swfupload.js

     
    307307
    308308// Public: Used to remove a SWFUpload instance from the page. This method strives to remove
    309309// 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 inconsistant state.
     310// Returns true if everything was destroyed. Returns a false if a failure occurs leaving SWFUpload in an inconsistent state.
    311311// Credits: Major improvements provided by steffen
    312312SWFUpload.prototype.destroy = function () {
    313313        try {
     
    797797        this.queueEvent("swfupload_loaded_handler");
    798798};
    799799
    800 // Private: removes Flash added fuctions 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.
    801801// This function is called by Flash each time the ExternalInterface functions are created.
    802802SWFUpload.prototype.cleanUp = function (movieElement) {
    803803        // Pro-actively unhook all the Flash functions
  • wp-includes/js/thickbox/thickbox.js

     
    105105                        imgPreloader.onload = function(){
    106106                        imgPreloader.onload = null;
    107107
    108                         // Resizing large images - orginal by Christian Montoya edited by me.
     108                        // Resizing large images - original by Christian Montoya edited by me.
    109109                        var pagesize = tb_getPageSize();
    110110                        var x = pagesize[0] - 150;
    111111                        var y = pagesize[1] - 150;
     
    186186                        var queryString = url.replace(/^[^\?]+\??/,'');
    187187                        var params = tb_parseQuery( queryString );
    188188
    189                         TB_WIDTH = (params['width']*1) + 30 || 630; //defaults to 630 if no paramaters were added to URL
    190                         TB_HEIGHT = (params['height']*1) + 40 || 440; //defaults to 440 if no paramaters were added to URL
     189                        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
    191191                        ajaxContentW = TB_WIDTH - 30;
    192192                        ajaxContentH = TB_HEIGHT - 45;
    193193
  • wp-includes/pomo/translations.php

     
    172172        }
    173173
    174174        /**
    175          * Adds parantheses to the inner parts of ternary operators in
     175         * Adds parentheses to the inner parts of ternary operators in
    176176         * plural expressions, because PHP evaluates ternary oerators from left to right
    177177         *
    178178         * @param string $expression the expression without parentheses
  • wp-includes/rss.php

     
    247247                }
    248248                elseif ($this->feed_type == ATOM and $this->incontent  ) {
    249249                        // balance tags properly
    250                         // note:  i don't think this is actually neccessary
     250                        // note:  i don't think this is actually necessary
    251251                        if ( $this->stack[0] == $el )
    252252                        {
    253253                                $this->append_content("</$el>");
     
    724724        Function:       set
    725725        Purpose:        add an item to the cache, keyed on url
    726726        Input:          url from wich the rss file was fetched
    727         Output:         true on sucess
     727        Output:         true on success
    728728\*=======================================================================*/
    729729        function set ($url, $rss) {
    730730                $cache_option = 'rss_' . $this->file_name( $url );
  • wp-includes/wp-diff.php

     
    414414                if ( !$string1 )
    415415                        return $difference;
    416416
    417                 // Return distance per charcter (of string1)
     417                // Return distance per character (of string1)
    418418                return $difference / strlen($string1);
    419419        }
    420420