WordPress.org

Make WordPress Core


Ignore:
Timestamp:
09/05/2011 07:08:15 PM (9 years ago)
Author:
duck_
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/post.php

    r18627 r18639  
    11561156 *
    11571157 * Accepted keys of the label array in the post type object:
    1158  * - name - general name for the post type, usually plural. The same and overriden by $post_type_object->label. Default is Posts/Pages
     1158 * - name - general name for the post type, usually plural. The same and overridden by $post_type_object->label. Default is Posts/Pages
    11591159 * - singular_name - name for one object of this post type. Default is Post/Page
    11601160 * - add_new - Default is Add New for both hierarchical and non-hierarchical types. When internationalizing this string, please use a {@link http://codex.wordpress.org/I18n_for_WordPress_Developers#Disambiguation_by_context gettext context} matching your post type. Example: <code>_x('Add New', 'product');</code>
     
    12501250 *
    12511251 * Additionally, the 'revisions' feature dictates whether the post type will store revisions,
    1252  * and the 'comments' feature dicates whether the comments count will show on the edit screen.
     1252 * and the 'comments' feature dictates whether the comments count will show on the edit screen.
    12531253 *
    12541254 * @since 3.0.0
     
    32703270/**
    32713271 * function to traverse and return all the nested children post names of a root page.
    3272  * $children contains parent-chilren relations
     3272 * $children contains parent-children relations
    32733273 *
    32743274 * @since 2.9.0
     
    39123912    }
    39133913
    3914     if ( empty($url) ) //If any of the above options failed, Fallback on the GUID as used pre-2.7, not recomended to rely upon this.
     3914    if ( empty($url) ) //If any of the above options failed, Fallback on the GUID as used pre-2.7, not recommended to rely upon this.
    39153915        $url = get_the_guid( $post->ID );
    39163916
     
    44674467 * Will clean the attachment in the cache.
    44684468 *
    4469  * Cleaning means delete from the cache. Optionaly will clean the term
     4469 * Cleaning means delete from the cache. Optionally will clean the term
    44704470 * object cache associated with the attachment ID.
    44714471 *
     
    46654665 *
    46664666 * Does two things. If passed a post *array*, it will return a post array ready
    4667  * to be insterted into the posts table as a post revision. Otherwise, returns
     4667 * to be inserted into the posts table as a post revision. Otherwise, returns
    46684668 * an array whose keys are the post fields to be saved for post revisions.
    46694669 *
Note: See TracChangeset for help on using the changeset viewer.