WordPress.org

Make WordPress Core

Changeset 48200


Ignore:
Timestamp:
06/28/2020 02:07:53 PM (17 months ago)
Author:
SergeyBiryukov
Message:

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

Follow-up to [48104]

See #49572.

Location:
trunk
Files:
9 edited

Legend:

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

    r48168 r48200  
    4040         * @param array  $response  The no-priv Heartbeat response.
    4141         * @param array  $data      The $_POST data sent.
    42          * @param string $screen_id The screen id.
     42         * @param string $screen_id The screen ID.
    4343         */
    4444        $response = apply_filters( 'heartbeat_nopriv_received', $response, $data, $screen_id );
     
    5151     *
    5252     * @param array  $response  The no-priv Heartbeat response.
    53      * @param string $screen_id The screen id.
     53     * @param string $screen_id The screen ID.
    5454     */
    5555    $response = apply_filters( 'heartbeat_nopriv_send', $response, $screen_id );
     
    6363     *
    6464     * @param array  $response  The no-priv Heartbeat response.
    65      * @param string $screen_id The screen id.
     65     * @param string $screen_id The screen ID.
    6666     */
    6767    do_action( 'heartbeat_nopriv_tick', $response, $screen_id );
     
    33553355         * @param array  $response  The Heartbeat response.
    33563356         * @param array  $data      The $_POST data sent.
    3357          * @param string $screen_id The screen id.
     3357         * @param string $screen_id The screen ID.
    33583358         */
    33593359        $response = apply_filters( 'wp_refresh_nonces', $response, $data, $screen_id );
     
    33743374         * @param array  $response  The Heartbeat response.
    33753375         * @param array  $data      The $_POST data sent.
    3376          * @param string $screen_id The screen id.
     3376         * @param string $screen_id The screen ID.
    33773377         */
    33783378        $response = apply_filters( 'heartbeat_received', $response, $data, $screen_id );
     
    33853385     *
    33863386     * @param array  $response  The Heartbeat response.
    3387      * @param string $screen_id The screen id.
     3387     * @param string $screen_id The screen ID.
    33883388     */
    33893389    $response = apply_filters( 'heartbeat_send', $response, $screen_id );
     
    33973397     *
    33983398     * @param array  $response  The Heartbeat response.
    3399      * @param string $screen_id The screen id.
     3399     * @param string $screen_id The screen ID.
    34003400     */
    34013401    do_action( 'heartbeat_tick', $response, $screen_id );
  • trunk/src/wp-admin/includes/misc.php

    r48185 r48200  
    10291029 * @param array  $response  The Heartbeat response.
    10301030 * @param array  $data      The $_POST data sent.
    1031  * @param string $screen_id The screen id.
     1031 * @param string $screen_id The screen ID.
    10321032 * @return array The Heartbeat response.
    10331033 */
     
    10761076 * @param array  $response  The Heartbeat response.
    10771077 * @param array  $data      The $_POST data sent.
    1078  * @param string $screen_id The screen id.
     1078 * @param string $screen_id The screen ID.
    10791079 * @return array The Heartbeat response.
    10801080 */
     
    11291129 * @param array  $response  The Heartbeat response.
    11301130 * @param array  $data      The $_POST data sent.
    1131  * @param string $screen_id The screen id.
     1131 * @param string $screen_id The screen ID.
    11321132 * @return array The Heartbeat response.
    11331133 */
  • trunk/src/wp-includes/author-template.php

    r48067 r48200  
    367367     *
    368368     * @param string $link            The URL to the author's page.
    369      * @param int    $author_id       The author's id.
     369     * @param int    $author_id       The author's ID.
    370370     * @param string $author_nicename The author's nice name.
    371371     */
  • trunk/src/wp-includes/deprecated.php

    r48199 r48200  
    917917
    918918/**
    919  * Gets the links associated with category by id.
     919 * Gets the links associated with category by ID.
    920920 *
    921921 * @since 0.71
     
    11011101
    11021102/**
    1103  * Gets the name of category by id.
     1103 * Gets the name of category by ID.
    11041104 *
    11051105 * @since 0.71
  • trunk/src/wp-includes/feed.php

    r48199 r48200  
    273273 * @since 2.5.0
    274274 *
    275  * @param int|WP_Comment $comment_id Optional comment object or id. Defaults to global comment object.
     275 * @param int|WP_Comment $comment_id Optional comment object or ID. Defaults to global comment object.
    276276 */
    277277function comment_guid( $comment_id = null ) {
     
    284284 * @since 2.5.0
    285285 *
    286  * @param int|WP_Comment $comment_id Optional comment object or id. Defaults to global comment object.
     286 * @param int|WP_Comment $comment_id Optional comment object or ID. Defaults to global comment object.
    287287 * @return string|false GUID for comment on success, false on failure.
    288288 */
     
    303303 * @since 4.4.0 Introduced the `$comment` argument.
    304304 *
    305  * @param int|WP_Comment $comment Optional. Comment object or id. Defaults to global comment object.
     305 * @param int|WP_Comment $comment Optional. Comment object or ID. Defaults to global comment object.
    306306 */
    307307function comment_link( $comment = null ) {
  • trunk/src/wp-includes/ms-blogs.php

    r48121 r48200  
    3232
    3333/**
    34  * Get a full blog URL, given a blog id.
     34 * Get a full blog URL, given a blog ID.
    3535 *
    3636 * @since MU (3.0.0)
     
    290290
    291291/**
    292  * Update the details for a blog. Updates the blogs table for a given blog id.
     292 * Update the details for a blog. Updates the blogs table for a given blog ID.
    293293 *
    294294 * @since MU (3.0.0)
     
    383383
    384384/**
    385  * Add a new option for a given blog id.
     385 * Add a new option for a given blog ID.
    386386 *
    387387 * You do not need to serialize values. If the value needs to be serialized, then
     
    420420
    421421/**
    422  * Removes option by name for a given blog id. Prevents removal of protected WordPress options.
     422 * Removes option by name for a given blog ID. Prevents removal of protected WordPress options.
    423423 *
    424424 * @since MU (3.0.0)
     
    451451 * @since MU (3.0.0)
    452452 *
    453  * @param int    $id         The blog id.
     453 * @param int    $id         The blog ID.
    454454 * @param string $option     The option key.
    455455 * @param mixed  $value      The option value.
  • trunk/src/wp-includes/wp-db.php

    r48115 r48200  
    926926
    927927    /**
    928      * Sets blog id.
     928     * Sets blog ID.
    929929     *
    930930     * @since 3.0.0
     
    932932     * @param int $blog_id
    933933     * @param int $network_id Optional.
    934      * @return int Previous blog id.
     934     * @return int Previous blog ID.
    935935     */
    936936    public function set_blog_id( $blog_id, $network_id = 0 ) {
  • trunk/tests/phpunit/tests/multisite/site.php

    r48121 r48200  
    925925
    926926        /**
    927          * Tests returning an address for a given valid id.
     927         * Tests returning an address for a given valid ID.
    928928         */
    929929        function test_get_blogaddress_by_id_with_valid_id() {
  • trunk/tests/phpunit/tests/post/listPages.php

    r48176 r48200  
    66class Tests_List_Pages extends WP_UnitTestCase {
    77    /**
    8      * Editor user id.
     8     * Editor user ID.
    99     *
    1010     * @var int
     
    1313
    1414    /**
    15      * Author user id.
     15     * Author user ID.
    1616     *
    1717     * @var int
     
    2020
    2121    /**
    22      * Parent page id.
     22     * Parent page ID.
    2323     *
    2424     * @var int
     
    2727
    2828    /**
    29      * Parent page id.
     29     * Parent page ID.
    3030     *
    3131     * @var int
     
    3434
    3535    /**
    36      * Parent page id.
     36     * Parent page ID.
    3737     *
    3838     * @var int
     
    4141
    4242    /**
    43      * Child page ids.
     43     * Child page IDs.
    4444     *
    4545     * @var array
Note: See TracChangeset for help on using the changeset viewer.