Make WordPress Core


Ignore:
Timestamp:
06/20/2020 12:00:07 PM (6 years ago)
Author:
SergeyBiryukov
Message:

Docs: Capitalize "ID", when referring to a post ID, term ID, etc. in a more consistent way.

See #49572.

File:
1 edited

Legend:

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

    r48099 r48104  
    13671367 *                                              comments count will show on the edit screen. A feature can also be
    13681368 *                                              specified as an array of arguments to provide additional information
    1369  *                                              about supporting that feature. Example: `array( 'my_feature', array(
    1370  *                                              'field' => 'value' ) )`. Default is an array containing 'title' and
    1371  *                                              'editor'.
     1369 *                                              about supporting that feature.
     1370 *                                              Example: `array( 'my_feature', array( 'field' => 'value' ) )`.
     1371 *                                              Default is an array containing 'title' and 'editor'.
    13721372 *     @type callable    $register_meta_box_cb  Provide a callback function that sets up the meta boxes for the
    13731373 *                                              edit form. Do remove_meta_box() and add_meta_box() calls in the
     
    30663066     */
    30673067    do_action( 'delete_post', $postid, $post );
     3068
    30683069    $result = $wpdb->delete( $wpdb->posts, array( 'ID' => $postid ) );
    30693070    if ( ! $result ) {
     
    34273428 * @return array|WP_Error List of categories. If the `$fields` argument passed via `$args` is 'all' or
    34283429 *                        'all_with_object_id', an array of WP_Term objects will be returned. If `$fields`
    3429  *                        is 'ids', an array of category ids. If `$fields` is 'names', an array of category names.
     3430 *                        is 'ids', an array of category IDs. If `$fields` is 'names', an array of category names.
    34303431 *                        WP_Error object if 'category' taxonomy doesn't exist.
    34313432 */
     
    71837184
    71847185/**
    7185  * Adds any posts from the given ids to the cache that do not already exist in cache
     7186 * Adds any posts from the given IDs to the cache that do not already exist in cache
    71867187 *
    71877188 * @since 3.4.0
Note: See TracChangeset for help on using the changeset viewer.