Make WordPress Core

Changeset 34717


Ignore:
Timestamp:
09/30/2015 04:12:16 AM (10 years ago)
Author:
DrewAPicture
Message:

Docs: There are quite alot of typos in core inline comments.

See #32246.

Location:
trunk/src
Files:
5 edited

Legend:

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

    r34566 r34717  
    453453        } elseif ( count( $source_files ) == 0 ) {
    454454            return new WP_Error( 'incompatible_archive_empty', $this->strings['incompatible_archive'], $this->strings['no_files'] ); // There are no files?
    455         } else { //It's only a single file, the upgrader will use the foldername of this file as the destination folder. foldername is based on zip filename.
     455        } else { // It's only a single file, the upgrader will use the folder name of this file as the destination folder. Folder name is based on zip filename.
    456456            $source = trailingslashit( $args['source'] );
    457457        }
     
    877877     * @param string $plugin The basename path to the main plugin file.
    878878     * @param array  $args {
    879      *     Optional. Other arguments for upgrading a plugin package. Defualt empty array.
     879     *     Optional. Other arguments for upgrading a plugin package. Default empty array.
    880880     *
    881881     *     @type bool $clear_update_cache Whether to clear the plugin updates cache if successful.
     
    12331233     * @since 2.8.0
    12341234     * @access public
    1235      * @var array|WP_Erorr $result
     1235     * @var array|WP_Error $result
    12361236     * @see WP_Upgrader::$result
    12371237     */
     
    24222422
    24232423    /**
    2424      * Compare the disk file checksums agains the expected checksums.
     2424     * Compare the disk file checksums against the expected checksums.
    24252425     *
    24262426     * @since 3.7.0
  • trunk/src/wp-admin/includes/taxonomy.php

    r33190 r34717  
    9494 *     Array of arguments for inserting a new category.
    9595 *
    96  *     @type int        $cat_ID               Categoriy ID. A non-zero value updates an existing category.
     96 *     @type int        $cat_ID               Category ID. A non-zero value updates an existing category.
    9797 *                                            Default 0.
    98  *     @type string     $taxonomy             Taxonomy slug. Defualt 'category'.
     98 *     @type string     $taxonomy             Taxonomy slug. Default 'category'.
    9999 *     @type string     $cat_name             Category name. Default empty.
    100100 *     @type string     $category_description Category description. Default empty.
  • trunk/src/wp-includes/class-wp-editor.php

    r34233 r34717  
    4949     *     @type string|int $tabindex          Tabindex value to use. Default empty.
    5050     *     @type string     $tabfocus_elements The previous and next element ID to move the focus to
    51      *                                         when pressing the Tab key in TinyMCE. Defualt ':prev,:next'.
     51     *                                         when pressing the Tab key in TinyMCE. Default ':prev,:next'.
    5252     *     @type string     $editor_css        Intended for extra styles for both Visual and Text editors.
    5353     *                                         Should include `<style>` tags, and can use "scoped". Default empty.
    54      *     @type string     $editor_class      Extra classes to add to the editor textarea elemen. Default empty.
     54     *     @type string     $editor_class      Extra classes to add to the editor textarea element. Default empty.
    5555     *     @type bool       $teeny             Whether to output the minimal editor config. Examples include
    5656     *                                         Press This and the Comment editor. Default false.
  • trunk/src/wp-includes/link-template.php

    r34715 r34717  
    10161016    } else {
    10171017        $search = urlencode($search);
    1018         $search = str_replace('%2F', '/', $search); // %2F(/) is not valid within a URL, send it unencoded.
     1018        $search = str_replace('%2F', '/', $search); // %2F(/) is not valid within a URL, send it un-encoded.
    10191019        $link = str_replace( '%search%', $search, $permastruct );
    10201020        $link = home_url( user_trailingslashit( $link, 'search' ) );
  • trunk/src/wp-includes/post-functions.php

    r34685 r34717  
    280280 * statement (which needs to be verified), it would then be possible to get
    281281 * all of the attachments for a post. Attachments have since changed since
    282  * version 2.5, so this is most likely unaccurate, but serves generally as an
     282 * version 2.5, so this is most likely inaccurate, but serves generally as an
    283283 * example of what is possible.
    284284 *
     
    386386 *
    387387 * @param string $post Post content.
    388  * @return array Post before ('main'), after ('extended'), and custom readmore ('more_text').
     388 * @return array Post before ('main'), after ('extended'), and custom read more ('more_text').
    389389 */
    390390function get_extended( $post ) {
     
    27342734 *
    27352735 * @param int   $post_id Optional. The Post ID. Does not default to the ID of the
    2736  *                       global $post. Defualt 0.
     2736 *                       global $post. Default 0.
    27372737 * @param array $args Optional. Overwrite the defaults
    27382738 * @return array List of post tags.
     
    34983498    }
    34993499
    3500     // wp_publish_post(_ returns no meaninful value
     3500    // wp_publish_post(_ returns no meaningful value.
    35013501    wp_publish_post( $post_id );
    35023502}
Note: See TracChangeset for help on using the changeset viewer.