Make WordPress Core


Ignore:
Timestamp:
06/20/2020 12:00:07 PM (4 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-admin/includes/media.php

    r47948 r48104  
    120120 * @since 2.5.0
    121121 *
    122  * @param int          $id      Image attachment id.
     122 * @param int          $id      Image attachment ID.
    123123 * @param string       $caption Image caption.
    124124 * @param string       $title   Image title attribute.
     
    155155     *
    156156     * @param string       $html    The image HTML markup to send.
    157      * @param int          $id      The attachment id.
     157     * @param int          $id      The attachment ID.
    158158     * @param string       $caption The image caption.
    159159     * @param string       $title   The image title.
     
    10101010        add_post_meta( $id, '_source_url', $file );
    10111011
    1012         // If attachment id was requested, return it.
     1012        // If attachment ID was requested, return it.
    10131013        if ( 'id' === $return ) {
    10141014            return $id;
Note: See TracChangeset for help on using the changeset viewer.