Make WordPress Core

Changeset 18639


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

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

Location:
trunk/wp-includes
Files:
16 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/js/tinymce/plugins/wpdialogs/js/popup.dev.js

    r17340 r18639  
    6868     *
    6969     * @method getWindowArg
    70      * @param {String} n Name of the window argument to retrive.
     70     * @param {String} n Name of the window argument to retrieve.
    7171     * @param {String} dv Optional default value to return.
    7272     * @return {String} Argument value or default value if it wasn't found.
     
    8282     *
    8383     * @method getParam
    84      * @param {String} n Name of the editor config option to retrive.
     84     * @param {String} n Name of the editor config option to retrieve.
    8585     * @param {String} dv Optional default value to return.
    8686     * @return {String} Parameter value or default value if it wasn't found.
  • trunk/wp-includes/l10n.php

    r17925 r18639  
    399399 * @param string $abs_rel_path Optional. Relative path to ABSPATH of a folder,
    400400 *  where the .mo file resides. Deprecated, but still functional until 2.7
    401  * @param string $plugin_rel_path Optional. Relative path to WP_PLUGIN_DIR. This is the preferred argument to use. It takes precendence over $abs_rel_path
     401 * @param string $plugin_rel_path Optional. Relative path to WP_PLUGIN_DIR. This is the preferred argument to use. It takes precedence over $abs_rel_path
    402402 */
    403403function load_plugin_textdomain( $domain, $abs_rel_path = false, $plugin_rel_path = false ) {
  • trunk/wp-includes/link-template.php

    r18478 r18639  
    24162416
    24172417/**
    2418  *  Inject rel=sortlink into head if a shortlink is defined for the current page.
     2418 *  Inject rel=shortlink into head if a shortlink is defined for the current page.
    24192419 *
    24202420 *  Attached to the wp_head action.
  • trunk/wp-includes/locale.php

    r18280 r18639  
    6666     * Stores the translated strings for 'am' and 'pm'.
    6767     *
    68      * Also the capalized versions.
     68     * Also the capitalized versions.
    6969     *
    7070     * @since 2.1.0
  • trunk/wp-includes/media.php

    r18605 r18639  
    261261
    262262/**
    263  * Calculates the new dimentions for a downsampled image.
     263 * Calculates the new dimensions for a downsampled image.
    264264 *
    265265 * If either width or height are empty, no constraint is applied on
     
    306306
    307307    // Sometimes, due to rounding, we'll end up with a result like this: 465x700 in a 177x177 box is 117x176... a pixel short
    308     // We also have issues with recursive calls resulting in an ever-changing result. Contraining to the result of a constraint should yield the original result.
     308    // We also have issues with recursive calls resulting in an ever-changing result. Constraining to the result of a constraint should yield the original result.
    309309    // Thus we look for dimensions that are one pixel shy of the max value and bump them up
    310310    if ( $did_width && $w == $max_width - 1 )
     
    11451145     *
    11461146     * @param array $attr Shortcode attributes.
    1147      * @param string $url The URL attempting to be embeded.
     1147     * @param string $url The URL attempting to be embedded.
    11481148     * @return string The embed HTML on success, otherwise the original URL.
    11491149     */
     
    13731373 * @uses WP_oEmbed::get_html()
    13741374 *
    1375  * @param string $url The URL that should be embeded.
     1375 * @param string $url The URL that should be embedded.
    13761376 * @param array $args Addtional arguments and parameters.
    13771377 * @return string The original URL on failure or the embed HTML on success.
  • trunk/wp-includes/pluggable.php

    r18597 r18639  
    10871087    $post = get_post($comment->comment_post_ID);
    10881088    $user = get_userdata( $post->post_author );
    1089     // Send to the administation and to the post author if the author can modify the comment.
     1089    // Send to the administration and to the post author if the author can modify the comment.
    10901090    $email_to = array( get_option('admin_email') );
    10911091    if ( user_can($user->ID, 'edit_comment', $comment_id) && !empty($user->user_email) && ( get_option('admin_email') != $user->user_email) )
     
    14331433 * Maintains compatibility between old version and the new cookie authentication
    14341434 * protocol using PHPass library. The $hash parameter is the encrypted password
    1435  * and the function compares the plain text password when encypted similarly
     1435 * and the function compares the plain text password when encrypted similarly
    14361436 * against the already encrypted password to see if they match.
    14371437 *
  • trunk/wp-includes/plugin.php

    r18507 r18639  
    252252 * @param callback $function_to_remove The name of the function which should be removed.
    253253 * @param int $priority optional. The priority of the function (default: 10).
    254  * @param int $accepted_args optional. The number of arguments the function accpets (default: 1).
     254 * @param int $accepted_args optional. The number of arguments the function accepts (default: 1).
    255255 * @return boolean Whether the function existed before it was removed.
    256256 */
     
    521521 * @param callback $function_to_remove The name of the function which should be removed.
    522522 * @param int $priority optional The priority of the function (default: 10).
    523  * @param int $accepted_args optional. The number of arguments the function accpets (default: 1).
     523 * @param int $accepted_args optional. The number of arguments the function accepts (default: 1).
    524524 * @return boolean Whether the function is removed.
    525525 */
     
    746746 * @param callback $function Used for creating unique id
    747747 * @param int|bool $priority Used in counting how many hooks were applied.  If === false and $function is an object reference, we return the unique id only if it already has one, false otherwise.
    748  * @return string|bool Unique ID for usage as array key or false if $priority === false and $function is an object reference, and it does not already have a uniqe id.
     748 * @return string|bool Unique ID for usage as array key or false if $priority === false and $function is an object reference, and it does not already have a unique id.
    749749 */
    750750function _wp_filter_build_unique_id($tag, $function, $priority) {
  • 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 *
  • trunk/wp-includes/query.php

    r18330 r18639  
    21382138            $q['p'] = absint($q['comments_popup']);
    21392139
    2140         // If an attachment is requested by number, let it supercede any post number.
     2140        // If an attachment is requested by number, let it supersede any post number.
    21412141        if ( $q['attachment_id'] )
    21422142            $q['p'] = absint($q['attachment_id']);
     
    22892289                    $q['author_name'] = $q['author_name'][count($q['author_name'])-1]; // no trailing slash
    22902290                } else {
    2291                     $q['author_name'] = $q['author_name'][count($q['author_name'])-2]; // there was a trailling slash
     2291                    $q['author_name'] = $q['author_name'][count($q['author_name'])-2]; // there was a trailing slash
    22922292                }
    22932293            }
  • trunk/wp-includes/script-loader.php

    r18634 r18639  
    160160        $max_upload_size = __('not configured');
    161161
    162     // error messagoe for both plupload and swfupload
     162    // error message for both plupload and swfupload
    163163    $uploader_l10n = array(
    164164        'queue_limit_exceeded' => __('You have attempted to queue too many files.'),
     
    440440 * @since 2.3.1
    441441 *
    442  * @param array $js_array JavaScript scripst array
     442 * @param array $js_array JavaScript scripts array
    443443 * @return array Reordered array, if needed.
    444444 */
  • trunk/wp-includes/shortcodes.php

    r12750 r18639  
    158158 * in a regex class.
    159159 *
    160  * The regular expresion contains 6 different sub matches to help with parsing.
     160 * The regular expression contains 6 different sub matches to help with parsing.
    161161 *
    162162 * 1/6 - An extra [ or ] to allow for escaping shortcodes with double [[]]
  • trunk/wp-includes/taxonomy.php

    r18603 r18639  
    267267 * (?$query_var=$term); default will use $taxonomy as query var.
    268268 *
    269  * public - If the taxonomy should be publically queryable; //@TODO not implemented.
     269 * public - If the taxonomy should be publicly queryable; //@TODO not implemented.
    270270 * defaults to true.
    271271 *
     
    277277 *
    278278 * show_tagcloud - false to prevent the taxonomy being listed in the Tag Cloud Widget;
    279  * defaults to show_ui which defalts to public.
     279 * defaults to show_ui which defaults to public.
    280280 *
    281281 * labels - An array of labels for this taxonomy. You can see accepted values in {@link get_taxonomy_labels()}. By default tag labels are used for non-hierarchical types and category labels for hierarchical ones.
     
    370370 *
    371371 * Accepted keys of the label array in the taxonomy object:
    372  * - name - general name for the taxonomy, usually plural. The same as and overriden by $tax->label. Default is Post Tags/Categories
     372 * - name - general name for the taxonomy, usually plural. The same as and overridden by $tax->label. Default is Post Tags/Categories
    373373 * - singular_name - name for one object of this taxonomy. Default is Post Tag/Category
    374374 * - search_items - Default is Search Tags/Search Categories
     
    14971497 * Sanitize Term all fields.
    14981498 *
    1499  * Relys on sanitize_term_field() to sanitize the term. The difference is that
     1499 * Relies on sanitize_term_field() to sanitize the term. The difference is that
    15001500 * this function will sanitize <strong>all</strong> fields. The context is based
    15011501 * on sanitize_term_field().
     
    17861786 *
    17871787 * @param int $cat_ID
    1788  * @return mixed Returns true if completes delete action; false if term doesnt exist;
     1788 * @return mixed Returns true if completes delete action; false if term doesn't exist;
    17891789 *  Zero on attempted deletion of default Category; WP_Error object is also a possibility.
    17901790 */
     
    18111811 *
    18121812 * The fields argument also decides what will be returned. If 'all' or
    1813  * 'all_with_object_id' is choosen or the default kept intact, then all matching
     1813 * 'all_with_object_id' is chosen or the default kept intact, then all matching
    18141814 * terms objects will be returned. If either 'ids' or 'names' is used, then an
    18151815 * array of all matching term ids or term names will be returned respectively.
     
    19191919 * Adds a new term to the database. Optionally marks it as an alias of an existing term.
    19201920 *
    1921  * Error handling is assigned for the nonexistance of the $taxonomy and $term
     1921 * Error handling is assigned for the nonexistence of the $taxonomy and $term
    19221922 * parameters before inserting. If both the term id and taxonomy exist
    19231923 * previously, then an array will be returned that contains the term id and the
     
    21802180 *
    21812181 * If that still doesn't return an unique slug, then it try to append a number
    2182  * until it finds a number that is truely unique.
     2182 * until it finds a number that is truly unique.
    21832183 *
    21842184 * The only purpose for $term is for appending a parent, if one exists.
     
    23862386 * Updates the amount of terms in taxonomy.
    23872387 *
    2388  * If there is a taxonomy callback applyed, then it will be called for updating
     2388 * If there is a taxonomy callback applied, then it will be called for updating
    23892389 * the count.
    23902390 *
  • trunk/wp-includes/theme.php

    r18630 r18639  
    470470 * @since 2.9.0
    471471 *
    472  * @return array|string An arry of theme roots keyed by template/stylesheet or a single theme root if all themes have the same root.
     472 * @return array|string An array of theme roots keyed by template/stylesheet or a single theme root if all themes have the same root.
    473473 */
    474474function get_theme_roots() {
  • trunk/wp-includes/user.php

    r18597 r18639  
    14441444 * A simpler way of inserting an user into the database.
    14451445 *
    1446  * Creates a new user with just the username, password, and email. For a more
    1447  * detail creation of a user, use wp_insert_user() to specify more infomation.
     1446 * Creates a new user with just the username, password, and email. For more
     1447 * complex user creation use wp_insert_user() to specify more information.
    14481448 *
    14491449 * @since 2.0.0
  • trunk/wp-includes/widgets.php

    r18630 r18639  
    140140
    141141        if ( $empty ) {
    142             // If there are none, we register the widget's existance with a
     142            // If there are none, we register the widget's existence with a
    143143            // generic template
    144144            $this->_set(1);
     
    298298
    299299        if ( !array_key_exists('_multiwidget', $settings) ) {
    300             // old format, conver if single widget
     300            // old format, convert if single widget
    301301            $settings = wp_convert_widget_settings($this->id_base, $this->option_name, $settings);
    302302        }
     
    462462 * number the sidebar is currently when greater than one. If first sidebar, the
    463463 * name will be just "Sidebar". The default for id is "sidebar-" followed by the
    464  * number the sidebar creation is currently at. If the id is provided, and mutliple
     464 * number the sidebar creation is currently at. If the id is provided, and multiple
    465465 * sidebars are being defined, the id will have "-2" appended, and so on.
    466466 *
  • trunk/wp-includes/wp-db.php

    r18573 r18639  
    641641     *
    642642     * Also allows for the CUSTOM_USER_TABLE and CUSTOM_USER_META_TABLE to
    643      * override the WordPress users and usersmeta tables that would otherwise
     643     * override the WordPress users and usermeta tables that would otherwise
    644644     * be determined by the prefix.
    645645     *
     
    12901290     *  a numerically indexed array (0 => value, ...) or an object ( ->column = value ), respectively.
    12911291     * @param int $y Optional. Row to return. Indexed from 0.
    1292      * @return mixed Database query result in format specifed by $output or null on failure
     1292     * @return mixed Database query result in format specified by $output or null on failure
    12931293     */
    12941294    function get_row( $query = null, $output = OBJECT, $y = 0 ) {
Note: See TracChangeset for help on using the changeset viewer.