Make WordPress Core

Changeset 18633


Ignore:
Timestamp:
09/03/2011 04:02:41 PM (13 years ago)
Author:
duck_
Message:

Fix typos in documentation (wp-includes/[a-h]). See #18560.

Location:
trunk/wp-includes
Files:
15 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/author-template.php

    r18268 r18633  
    3939 *
    4040 * The normal, expected behavior of this function is to echo the author and not
    41  * return it. However, backwards compatiability has to be maintained.
     41 * return it. However, backwards compatibility has to be maintained.
    4242 *
    4343 * @since 0.71
  • trunk/wp-includes/cache.php

    r18580 r18633  
    1010
    1111/**
    12  * Adds data to the cache, if the cache key doesn't aleady exist.
     12 * Adds data to the cache, if the cache key doesn't already exist.
    1313 *
    1414 * @since 2.0.0
     
    3232 *
    3333 * This function has ceased to do anything since WordPress 2.5. The
    34  * functionality was removed along with the rest of the persistant cache. This
     34 * functionality was removed along with the rest of the persistent cache. This
    3535 * does not mean that plugins can't implement this function when they need to
    3636 * make sure that the cache is cleaned up after WordPress no longer needs it.
     
    283283     * @uses WP_Object_Cache::get Checks to see if the cache already has data.
    284284     * @uses WP_Object_Cache::set Sets the data after the checking the cache
    285      *      contents existance.
     285     *      contents existence.
    286286     *
    287287     * @since 2.0.0
  • trunk/wp-includes/canonical.php

    r18540 r18633  
    1515 * Search engines consider www.somedomain.com and somedomain.com to be two
    1616 * different URLs when they both go to the same location. This SEO enhancement
    17  * prevents penality for duplicate content by redirecting all incoming links to
     17 * prevents penalty for duplicate content by redirecting all incoming links to
    1818 * one or the other.
    1919 *
     
    176176                        // Create the destination url for this taxonomy
    177177                        $tax_url = parse_url($tax_url);
    178                         if ( ! empty($tax_url['query']) ) { // Taxonomy accessable via ?taxonomy=..&term=.. or any custom qv..
     178                        if ( ! empty($tax_url['query']) ) { // Taxonomy accessible via ?taxonomy=..&term=.. or any custom qv..
    179179                            parse_str($tax_url['query'], $query_vars);
    180180                            $redirect['query'] = add_query_arg($query_vars, $redirect['query']);
    181                         } else { // Taxonomy is accessable via a "pretty-URL"
     181                        } else { // Taxonomy is accessible via a "pretty-URL"
    182182                            $redirect['path'] = $tax_url['path'];
    183183                        }
  • trunk/wp-includes/capabilities.php

    r18598 r18633  
    525525
    526526    /**
    527      * Magic method for checking the existance of a certain custom field
     527     * Magic method for checking the existence of a certain custom field
    528528     *
    529529     * @since 3.3.0
     
    828828     * This is useful for looking up whether the user has a specific role
    829829     * assigned to the user. The second optional parameter can also be used to
    830      * check for capabilities against a specfic post.
     830     * check for capabilities against a specific post.
    831831     *
    832832     * @since 2.0.0
  • trunk/wp-includes/class-http.php

    r18457 r18633  
    223223     * Dispatches a HTTP request to a supporting transport.
    224224     *
    225      * Tests each transport in order to find a transport which matches the request arguements.
     225     * Tests each transport in order to find a transport which matches the request arguments.
    226226     * Also caches the transport instance to be used later.
    227227     *
     
    632632        $endDelay = time();
    633633
    634         // If the delay is greater than the timeout then fsockopen should't be used, because it will
     634        // If the delay is greater than the timeout then fsockopen shouldn't be used, because it will
    635635        // cause a long delay.
    636636        $elapseDelay = ($endDelay-$startDelay) > $r['timeout'];
     
    916916            $processedHeaders = WP_Http::processHeaders($meta['wrapper_data']);
    917917
    918         // Streams does not provide an error code which we can use to see why the request stream stoped.
     918        // Streams does not provide an error code which we can use to see why the request stream stopped.
    919919        // We can however test to see if a location header is present and return based on that.
    920920        if ( isset($processedHeaders['headers']['location']) && 0 !== $args['_redirection'] )
     
    10321032
    10331033        // CURLOPT_TIMEOUT and CURLOPT_CONNECTTIMEOUT expect integers.  Have to use ceil since
    1034         // a value of 0 will allow an ulimited timeout.
     1034        // a value of 0 will allow an unlimited timeout.
    10351035        $timeout = (int) ceil( $r['timeout'] );
    10361036        curl_setopt( $handle, CURLOPT_CONNECTTIMEOUT, $timeout );
     
    16801680
    16811681    /**
    1682      * What enconding the content used when it was compressed to send in the headers.
     1682     * What encoding the content used when it was compressed to send in the headers.
    16831683     *
    16841684     * @since 2.8
  • trunk/wp-includes/class-oembed.php

    r17995 r18633  
    2929        // List out some popular sites that support oEmbed.
    3030        // The WP_Embed class disables discovery for non-unfiltered_html users, so only providers in this array will be used for them.
    31         // Add to this list using the wp_oembed_add_provider() function (see it's PHPDoc for details).
     31        // Add to this list using the wp_oembed_add_provider() function (see its PHPDoc for details).
    3232        $this->providers = apply_filters( 'oembed_providers', array(
    3333            '#http://(www\.)?youtube.com/watch.*#i'         => array( 'http://www.youtube.com/oembed',            true  ),
  • trunk/wp-includes/class-phpass.php

    r17678 r18633  
    5050        $this->portable_hashes = $portable_hashes;
    5151
    52         $this->random_state = microtime() . uniqid(rand(), TRUE); // removed getmypid() for compability reasons
     52        $this->random_state = microtime() . uniqid(rand(), TRUE); // removed getmypid() for compatibility reasons
    5353    }
    5454
  • trunk/wp-includes/class-wp-error.php

    r17771 r18633  
    7171     * @access public
    7272     *
    73      * @return array List of error codes, if avaiable.
     73     * @return array List of error codes, if available.
    7474     */
    7575    function get_error_codes() {
     
    103103     *
    104104     * @param string|int $code Optional. Retrieve messages matching code, if exists.
    105      * @return array Error strings on success, or empty array on failure (if using codee parameter).
     105     * @return array Error strings on success, or empty array on failure (if using code parameter).
    106106     */
    107107    function get_error_messages($code = '') {
  • trunk/wp-includes/class-wp-xmlrpc-server.php

    r18584 r18633  
    99 * WordPress XMLRPC server implementation.
    1010 *
    11  * Implements compatability for Blogger API, MetaWeblog API, MovableType, and
     11 * Implements compatibility for Blogger API, MetaWeblog API, MovableType, and
    1212 * pingback. Additional WordPress API for managing comments, pages, posts,
    1313 * options, etc.
     
    748748        ");
    749749
    750         // The date needs to be formated properly.
     750        // The date needs to be formatted properly.
    751751        $num_pages = count($page_list);
    752752        for ( $i = 0; $i < $num_pages; $i++ ) {
     
    15521552     *  - password
    15531553     *  - attachment_id
    1554      * @return array. Assocciative array containing:
     1554     * @return array. Associative array containing:
    15551555     *  - 'date_created_gmt'
    15561556     *  - 'parent'
     
    16621662
    16631663    /**
    1664       * Retrives a list of post formats used by the site
     1664      * Retrieves a list of post formats used by the site
    16651665      *
    16661666      * @since 3.1
     
    34463446            // an #anchor is there, it's either...
    34473447            if ( intval($urltest['fragment']) ) {
    3448                 // ...an integer #XXXX (simpliest case)
     3448                // ...an integer #XXXX (simplest case)
    34493449                $post_ID = (int) $urltest['fragment'];
    34503450                $way = 'from the fragment (numeric)';
  • trunk/wp-includes/class-wp.php

    r18541 r18633  
    570570     * @access public
    571571     * @param string $subject subject
    572      * @param array  $matches data used for subsitution
     572     * @param array  $matches data used for substitution
    573573     * @return string
    574574     */
  • trunk/wp-includes/comment-template.php

    r17812 r18633  
    363363 *
    364364 * @since 1.5.0
    365  * @uses apply_filters() Calls 'get_comment_date' hook with the formated date and the $d parameter respectively
     365 * @uses apply_filters() Calls 'get_comment_date' hook with the formatted date and the $d parameter respectively
    366366 * @uses $comment
    367367 *
     
    833833 * The $file path is passed through a filter hook called, 'comments_template'
    834834 * which includes the TEMPLATEPATH and $file combined. Tries the $filtered path
    835  * first and if it fails it will require the default comment themplate from the
     835 * first and if it fails it will require the default comment template from the
    836836 * default theme. If either does not exist, then the WordPress process will be
    837837 * halted. It is advised for that reason, that the default theme is not deleted.
  • trunk/wp-includes/deprecated.php

    r18597 r18633  
    20742074 *
    20752075 * A number of characters are removed from the URL. If the URL is for displaying
    2076  * (the default behaviour) amperstands are also replaced. The 'clean_url' filter
     2076 * (the default behaviour) ampersands are also replaced. The 'clean_url' filter
    20772077 * is applied to the returned cleaned URL.
    20782078 *
  • trunk/wp-includes/formatting.php

    r18585 r18633  
    22292229 *
    22302230 * A number of characters are removed from the URL. If the URL is for displaying
    2231  * (the default behaviour) amperstands are also replaced. The 'clean_url' filter
     2231 * (the default behaviour) ampersands are also replaced. The 'clean_url' filter
    22322232 * is applied to the returned cleaned URL.
    22332233 *
  • trunk/wp-includes/functions.php

    r18606 r18633  
    2121 * @param string $mysqlstring Time from mysql DATETIME field.
    2222 * @param bool $translate Optional. Default is true. Will switch format to locale.
    23  * @return string Date formated by $dateformatstring or locale (if available).
     23 * @return string Date formatted by $dateformatstring or locale (if available).
    2424 */
    2525function mysql2date( $dateformatstring, $mysqlstring, $translate = true ) {
     
    35873587         * which is the case for PHP 4.X, then we cannot easily update the xml configuration file,
    35883588         * hence we just bail out and tell user that pretty permalinks cannot be used.
    3589          * This is not a big issue because PHP 4.X is going to be depricated and for IIS it
     3589         * This is not a big issue because PHP 4.X is going to be deprecated and for IIS it
    35903590         * is recommended to use PHP 5.X NTS.
    35913591         * Next we check if the URL Rewrite Module 1.1 is loaded and enabled for the web site. When
  • trunk/wp-includes/http.php

    r17915 r18633  
    131131 * @param array $response
    132132 * @param string $header Header name to retrieve value from.
    133  * @return string The header value. Empty string on if incorrect parameter given, or if the header doesnt exist.
     133 * @return string The header value. Empty string on if incorrect parameter given, or if the header doesn't exist.
    134134 */
    135135function wp_remote_retrieve_header(&$response, $header) {
Note: See TracChangeset for help on using the changeset viewer.