WordPress.org

Make WordPress Core

Changeset 29479


Ignore:
Timestamp:
08/13/2014 03:55:10 AM (5 years ago)
Author:
DrewAPicture
Message:

Fix some documentation typos in various core files.

Props vlajos.
Fixes #29199.

Location:
trunk/src
Files:
16 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-upgrader.php

    r29206 r29479  
    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
  • trunk/src/wp-admin/includes/theme.php

    r29170 r29479  
    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
  • trunk/src/wp-includes/class-IXR.php

    r29404 r29479  
    359359                }
    360360            } else {
    361                 // Just add as a paramater
     361                // Just add as a parameter
    362362                $this->params[] = $value;
    363363            }
     
    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        }
  • trunk/src/wp-includes/class-http.php

    r29230 r29479  
    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.
     
    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'] ) {
  • trunk/src/wp-includes/class-simplepie.php

    r28479 r29479  
    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
  • trunk/src/wp-includes/class-wp-walker.php

    r29454 r29479  
    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().
  • trunk/src/wp-includes/date.php

    r28935 r29479  
    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'.
  • trunk/src/wp-includes/formatting.php

    r29431 r29479  
    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 ) ) {
     
    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.
     
    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 );
  • trunk/src/wp-includes/js/heartbeat.js

    r27981 r29479  
    6464                connecting: false,
    6565
    66                 // Whether a connection error occured
     66                // Whether a connection error occurred
    6767                connectionError: false,
    6868
  • trunk/src/wp-includes/js/media-audiovideo.js

    r29456 r29479  
    618618     * wp.media.view.MediaDetails
    619619     *
    620      * @contructor
     620     * @constructor
    621621     * @augments wp.media.view.Settings.AttachmentDisplay
    622622     * @augments wp.media.view.Settings
     
    763763     * wp.media.view.AudioDetails
    764764     *
    765      * @contructor
     765     * @constructor
    766766     * @augments wp.media.view.MediaDetails
    767767     * @augments wp.media.view.Settings.AttachmentDisplay
     
    795795     * wp.media.view.VideoDetails
    796796     *
    797      * @contructor
     797     * @constructor
    798798     * @augments wp.media.view.MediaDetails
    799799     * @augments wp.media.view.Settings.AttachmentDisplay
  • trunk/src/wp-includes/js/media-views.js

    r29473 r29479  
    67856785     * wp.media.view.EmbedImage
    67866786     *
    6787      * @contructor
     6787     * @constructor
    67886788     * @augments wp.media.view.Settings.AttachmentDisplay
    67896789     * @augments wp.media.view.Settings
     
    68126812     * wp.media.view.ImageDetails
    68136813     *
    6814      * @contructor
     6814     * @constructor
    68156815     * @augments wp.media.view.Settings.AttachmentDisplay
    68166816     * @augments wp.media.view.Settings
  • trunk/src/wp-includes/js/swfupload/swfupload.js

    r18484 r29479  
    44 * mmSWFUpload 1.0: Flash upload dialog - http://profandesign.se/swfupload/,  http://www.vinterwebb.se/
    55 *
    6  * SWFUpload is (c) 2006-2007 Lars Huring, Olov Nilzén and Mammon Media and is released under the MIT License:
     6 * SWFUpload is (c) 2006-2007 Lars Huring, Olov Nilzn and Mammon Media and is released under the MIT License:
    77 * http://www.opensource.org/licenses/mit-license.php
    88 *
  • trunk/src/wp-includes/js/thickbox/thickbox.js

    r29346 r29479  
    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;
     
    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;
  • trunk/src/wp-includes/pomo/translations.php

    r23357 r29479  
    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     *
  • trunk/src/wp-includes/rss.php

    r25286 r29479  
    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: This may not actually be necessary
    251251            if ( $this->stack[0] == $el )
    252252            {
     
    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) {
  • trunk/src/wp-includes/wp-diff.php

    r29454 r29479  
    415415            return $difference;
    416416
    417         // Return distance per charcter (of string1)
     417        // Return distance per character (of string1).
    418418        return $difference / strlen($string1);
    419419    }
Note: See TracChangeset for help on using the changeset viewer.