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

Follow-up to [48104]

See #49572.

git-svn-id: https://develop.svn.wordpress.org/trunk@48200 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov 2020-06-28 14:07:53 +00:00
parent bb2aad471b
commit 8d358ca4c7
9 changed files with 30 additions and 30 deletions

View File

@ -39,7 +39,7 @@ function wp_ajax_nopriv_heartbeat() {
* *
* @param array $response The no-priv Heartbeat response. * @param array $response The no-priv Heartbeat response.
* @param array $data The $_POST data sent. * @param array $data The $_POST data sent.
* @param string $screen_id The screen id. * @param string $screen_id The screen ID.
*/ */
$response = apply_filters( 'heartbeat_nopriv_received', $response, $data, $screen_id ); $response = apply_filters( 'heartbeat_nopriv_received', $response, $data, $screen_id );
} }
@ -50,7 +50,7 @@ function wp_ajax_nopriv_heartbeat() {
* @since 3.6.0 * @since 3.6.0
* *
* @param array $response The no-priv Heartbeat response. * @param array $response The no-priv Heartbeat response.
* @param string $screen_id The screen id. * @param string $screen_id The screen ID.
*/ */
$response = apply_filters( 'heartbeat_nopriv_send', $response, $screen_id ); $response = apply_filters( 'heartbeat_nopriv_send', $response, $screen_id );
@ -62,7 +62,7 @@ function wp_ajax_nopriv_heartbeat() {
* @since 3.6.0 * @since 3.6.0
* *
* @param array $response The no-priv Heartbeat response. * @param array $response The no-priv Heartbeat response.
* @param string $screen_id The screen id. * @param string $screen_id The screen ID.
*/ */
do_action( 'heartbeat_nopriv_tick', $response, $screen_id ); do_action( 'heartbeat_nopriv_tick', $response, $screen_id );
@ -3354,7 +3354,7 @@ function wp_ajax_heartbeat() {
* *
* @param array $response The Heartbeat response. * @param array $response The Heartbeat response.
* @param array $data The $_POST data sent. * @param array $data The $_POST data sent.
* @param string $screen_id The screen id. * @param string $screen_id The screen ID.
*/ */
$response = apply_filters( 'wp_refresh_nonces', $response, $data, $screen_id ); $response = apply_filters( 'wp_refresh_nonces', $response, $data, $screen_id );
@ -3373,7 +3373,7 @@ function wp_ajax_heartbeat() {
* *
* @param array $response The Heartbeat response. * @param array $response The Heartbeat response.
* @param array $data The $_POST data sent. * @param array $data The $_POST data sent.
* @param string $screen_id The screen id. * @param string $screen_id The screen ID.
*/ */
$response = apply_filters( 'heartbeat_received', $response, $data, $screen_id ); $response = apply_filters( 'heartbeat_received', $response, $data, $screen_id );
} }
@ -3384,7 +3384,7 @@ function wp_ajax_heartbeat() {
* @since 3.6.0 * @since 3.6.0
* *
* @param array $response The Heartbeat response. * @param array $response The Heartbeat response.
* @param string $screen_id The screen id. * @param string $screen_id The screen ID.
*/ */
$response = apply_filters( 'heartbeat_send', $response, $screen_id ); $response = apply_filters( 'heartbeat_send', $response, $screen_id );
@ -3396,7 +3396,7 @@ function wp_ajax_heartbeat() {
* @since 3.6.0 * @since 3.6.0
* *
* @param array $response The Heartbeat response. * @param array $response The Heartbeat response.
* @param string $screen_id The screen id. * @param string $screen_id The screen ID.
*/ */
do_action( 'heartbeat_tick', $response, $screen_id ); do_action( 'heartbeat_tick', $response, $screen_id );

View File

@ -1028,7 +1028,7 @@ function _ipad_meta() {
* *
* @param array $response The Heartbeat response. * @param array $response The Heartbeat response.
* @param array $data The $_POST data sent. * @param array $data The $_POST data sent.
* @param string $screen_id The screen id. * @param string $screen_id The screen ID.
* @return array The Heartbeat response. * @return array The Heartbeat response.
*/ */
function wp_check_locked_posts( $response, $data, $screen_id ) { function wp_check_locked_posts( $response, $data, $screen_id ) {
@ -1075,7 +1075,7 @@ function wp_check_locked_posts( $response, $data, $screen_id ) {
* *
* @param array $response The Heartbeat response. * @param array $response The Heartbeat response.
* @param array $data The $_POST data sent. * @param array $data The $_POST data sent.
* @param string $screen_id The screen id. * @param string $screen_id The screen ID.
* @return array The Heartbeat response. * @return array The Heartbeat response.
*/ */
function wp_refresh_post_lock( $response, $data, $screen_id ) { function wp_refresh_post_lock( $response, $data, $screen_id ) {
@ -1128,7 +1128,7 @@ function wp_refresh_post_lock( $response, $data, $screen_id ) {
* *
* @param array $response The Heartbeat response. * @param array $response The Heartbeat response.
* @param array $data The $_POST data sent. * @param array $data The $_POST data sent.
* @param string $screen_id The screen id. * @param string $screen_id The screen ID.
* @return array The Heartbeat response. * @return array The Heartbeat response.
*/ */
function wp_refresh_post_nonces( $response, $data, $screen_id ) { function wp_refresh_post_nonces( $response, $data, $screen_id ) {

View File

@ -366,7 +366,7 @@ function get_author_posts_url( $author_id, $author_nicename = '' ) {
* @since 2.1.0 * @since 2.1.0
* *
* @param string $link The URL to the author's page. * @param string $link The URL to the author's page.
* @param int $author_id The author's id. * @param int $author_id The author's ID.
* @param string $author_nicename The author's nice name. * @param string $author_nicename The author's nice name.
*/ */
$link = apply_filters( 'author_link', $link, $author_id, $author_nicename ); $link = apply_filters( 'author_link', $link, $author_id, $author_nicename );

View File

@ -916,7 +916,7 @@ function wp_get_links($args = '') {
} }
/** /**
* Gets the links associated with category by id. * Gets the links associated with category by ID.
* *
* @since 0.71 * @since 0.71
* @deprecated 2.1.0 Use get_bookmarks() * @deprecated 2.1.0 Use get_bookmarks()
@ -1100,7 +1100,7 @@ function get_linkrating( $link ) {
} }
/** /**
* Gets the name of category by id. * Gets the name of category by ID.
* *
* @since 0.71 * @since 0.71
* @deprecated 2.1.0 Use get_category() * @deprecated 2.1.0 Use get_category()

View File

@ -272,7 +272,7 @@ function comments_link_feed() {
* *
* @since 2.5.0 * @since 2.5.0
* *
* @param int|WP_Comment $comment_id Optional comment object or id. Defaults to global comment object. * @param int|WP_Comment $comment_id Optional comment object or ID. Defaults to global comment object.
*/ */
function comment_guid( $comment_id = null ) { function comment_guid( $comment_id = null ) {
echo esc_url( get_comment_guid( $comment_id ) ); echo esc_url( get_comment_guid( $comment_id ) );
@ -283,7 +283,7 @@ function comment_guid( $comment_id = null ) {
* *
* @since 2.5.0 * @since 2.5.0
* *
* @param int|WP_Comment $comment_id Optional comment object or id. Defaults to global comment object. * @param int|WP_Comment $comment_id Optional comment object or ID. Defaults to global comment object.
* @return string|false GUID for comment on success, false on failure. * @return string|false GUID for comment on success, false on failure.
*/ */
function get_comment_guid( $comment_id = null ) { function get_comment_guid( $comment_id = null ) {
@ -302,7 +302,7 @@ function get_comment_guid( $comment_id = null ) {
* @since 1.5.0 * @since 1.5.0
* @since 4.4.0 Introduced the `$comment` argument. * @since 4.4.0 Introduced the `$comment` argument.
* *
* @param int|WP_Comment $comment Optional. Comment object or id. Defaults to global comment object. * @param int|WP_Comment $comment Optional. Comment object or ID. Defaults to global comment object.
*/ */
function comment_link( $comment = null ) { function comment_link( $comment = null ) {
/** /**

View File

@ -31,7 +31,7 @@ function wpmu_update_blogs_date() {
} }
/** /**
* Get a full blog URL, given a blog id. * Get a full blog URL, given a blog ID.
* *
* @since MU (3.0.0) * @since MU (3.0.0)
* *
@ -289,7 +289,7 @@ function refresh_blog_details( $blog_id = 0 ) {
} }
/** /**
* Update the details for a blog. Updates the blogs table for a given blog id. * Update the details for a blog. Updates the blogs table for a given blog ID.
* *
* @since MU (3.0.0) * @since MU (3.0.0)
* *
@ -382,7 +382,7 @@ function get_blog_option( $id, $option, $default = false ) {
} }
/** /**
* Add a new option for a given blog id. * Add a new option for a given blog ID.
* *
* You do not need to serialize values. If the value needs to be serialized, then * You do not need to serialize values. If the value needs to be serialized, then
* it will be serialized before it is inserted into the database. Remember, * it will be serialized before it is inserted into the database. Remember,
@ -419,7 +419,7 @@ function add_blog_option( $id, $option, $value ) {
} }
/** /**
* Removes option by name for a given blog id. Prevents removal of protected WordPress options. * Removes option by name for a given blog ID. Prevents removal of protected WordPress options.
* *
* @since MU (3.0.0) * @since MU (3.0.0)
* *
@ -450,7 +450,7 @@ function delete_blog_option( $id, $option ) {
* *
* @since MU (3.0.0) * @since MU (3.0.0)
* *
* @param int $id The blog id. * @param int $id The blog ID.
* @param string $option The option key. * @param string $option The option key.
* @param mixed $value The option value. * @param mixed $value The option value.
* @param mixed $deprecated Not used. * @param mixed $deprecated Not used.

View File

@ -925,13 +925,13 @@ class wpdb {
} }
/** /**
* Sets blog id. * Sets blog ID.
* *
* @since 3.0.0 * @since 3.0.0
* *
* @param int $blog_id * @param int $blog_id
* @param int $network_id Optional. * @param int $network_id Optional.
* @return int Previous blog id. * @return int Previous blog ID.
*/ */
public function set_blog_id( $blog_id, $network_id = 0 ) { public function set_blog_id( $blog_id, $network_id = 0 ) {
if ( ! empty( $network_id ) ) { if ( ! empty( $network_id ) ) {

View File

@ -924,7 +924,7 @@ if ( is_multisite() ) :
} }
/** /**
* Tests returning an address for a given valid id. * Tests returning an address for a given valid ID.
*/ */
function test_get_blogaddress_by_id_with_valid_id() { function test_get_blogaddress_by_id_with_valid_id() {
$blogaddress = get_blogaddress_by_id( 1 ); $blogaddress = get_blogaddress_by_id( 1 );

View File

@ -5,42 +5,42 @@
*/ */
class Tests_List_Pages extends WP_UnitTestCase { class Tests_List_Pages extends WP_UnitTestCase {
/** /**
* Editor user id. * Editor user ID.
* *
* @var int * @var int
*/ */
public static $editor; public static $editor;
/** /**
* Author user id. * Author user ID.
* *
* @var int * @var int
*/ */
public static $author; public static $author;
/** /**
* Parent page id. * Parent page ID.
* *
* @var int * @var int
*/ */
public static $parent_1; public static $parent_1;
/** /**
* Parent page id. * Parent page ID.
* *
* @var int * @var int
*/ */
public static $parent_2; public static $parent_2;
/** /**
* Parent page id. * Parent page ID.
* *
* @var int * @var int
*/ */
public static $parent_3; public static $parent_3;
/** /**
* Child page ids. * Child page IDs.
* *
* @var array * @var array
*/ */