Make WordPress Core

Changeset 52357


Ignore:
Timestamp:
12/12/2021 02:51:34 PM (3 years ago)
Author:
SergeyBiryukov
Message:

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

Follow-up to [48104].

See #53399.

Location:
trunk/src
Files:
4 edited

Legend:

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

    r52332 r52357  
    223223 *
    224224 * @param string $file          Full path to the image file.
    225  * @param int    $attachment_id Attachment Id to process.
     225 * @param int    $attachment_id Attachment ID to process.
    226226 * @return array The image attachment meta data.
    227227 */
     
    381381 * @param string $file          Full path to the image file.
    382382 * @param array  $image_meta    The attachment meta data array.
    383  * @param int    $attachment_id Attachment Id to process.
     383 * @param int    $attachment_id Attachment ID to process.
    384384 * @return array The attachment meta data with updated `sizes` array. Includes an array of errors encountered while resizing.
    385385 */
     
    471471 * @since 2.1.0
    472472 *
    473  * @param int    $attachment_id Attachment Id to process.
    474  * @param string $file          Filepath of the Attached image.
     473 * @param int    $attachment_id Attachment ID to process.
     474 * @param string $file          Filepath of the attached image.
    475475 * @return array Metadata for attachment.
    476476 */
  • trunk/src/wp-includes/class-wp-block-template.php

    r52355 r52357  
    3939
    4040    /**
    41      * Id.
     41     * ID.
    4242     *
    4343     * @since 5.8.0
     
    8989
    9090    /**
    91      * Post Id.
     91     * Post ID.
    9292     *
    9393     * @since 5.8.0
  • trunk/src/wp-includes/link-template.php

    r52258 r52357  
    39883988 *
    39893989 * @param int    $id          Optional. A post or site ID. Default is 0, which means the current post or site.
    3990  * @param string $context     Optional. Whether the ID is a 'site' id, 'post' id, or 'media' id. If 'post',
     3990 * @param string $context     Optional. Whether the ID is a 'site' ID, 'post' ID, or 'media' ID. If 'post',
    39913991 *                            the post_type of the post is consulted. If 'query', the current query is consulted
    39923992 *                            to determine the ID and context. Default 'post'.
  • trunk/src/wp-includes/taxonomy.php

    r52332 r52357  
    11431143 * @since 2.3.0
    11441144 *
    1145  * @param int    $term_id  ID of Term to get children.
    1146  * @param string $taxonomy Taxonomy Name.
     1145 * @param int    $term_id  ID of term to get children.
     1146 * @param string $taxonomy Taxonomy name.
    11471147 * @return array|WP_Error List of Term IDs. WP_Error returned if `$taxonomy` does not exist.
    11481148 */
     
    11871187 * @param string      $field    Term field to fetch.
    11881188 * @param int|WP_Term $term     Term ID or object.
    1189  * @param string      $taxonomy Optional. Taxonomy Name. Default empty.
     1189 * @param string      $taxonomy Optional. Taxonomy name. Default empty.
    11901190 * @param string      $context  Optional. How to sanitize term fields. Look at sanitize_term_field() for available options.
    11911191 *                              Default 'display'.
     
    16871687 * @param string $value    Search for this term value.
    16881688 * @param int    $term_id  Term ID.
    1689  * @param string $taxonomy Taxonomy Name.
     1689 * @param string $taxonomy Taxonomy name.
    16901690 * @param string $context  Context in which to sanitize the term field.
    16911691 *                         Accepts 'raw', 'edit', 'db', 'display', 'rss',
     
    19101910 * @since 2.3.0
    19111911 *
    1912  * @param int          $object_id  The term Object Id that refers to the term.
    1913  * @param string|array $taxonomies List of Taxonomy Names or single Taxonomy name.
     1912 * @param int          $object_id  The term object ID that refers to the term.
     1913 * @param string|array $taxonomies List of taxonomy names or single taxonomy name.
    19141914 */
    19151915function wp_delete_object_term_relationships( $object_id, $taxonomies ) {
     
    19401940 *
    19411941 * @param int          $term     Term ID.
    1942  * @param string       $taxonomy Taxonomy Name.
     1942 * @param string       $taxonomy Taxonomy name.
    19431943 * @param array|string $args {
    19441944 *     Optional. Array of arguments to override the default term ID. Default empty array.
     
    20062006     *
    20072007     * @param int    $term     Term ID.
    2008      * @param string $taxonomy Taxonomy Name.
     2008     * @param string $taxonomy Taxonomy name.
    20092009     */
    20102010    do_action( 'pre_delete_term', $term, $taxonomy );
Note: See TracChangeset for help on using the changeset viewer.