Coding Standards: Mark the handful of hook names with uppercase characters or hyphens as ignored.
See #47632. Built from https://develop.svn.wordpress.org/trunk@45599 git-svn-id: http://core.svn.wordpress.org/trunk@45410 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -277,7 +277,7 @@ function get_comment_author_IP( $comment_ID = 0 ) { // phpcs:ignore WordPress.Na
|
||||
* @param int $comment_ID The comment ID.
|
||||
* @param WP_Comment $comment The comment object.
|
||||
*/
|
||||
return apply_filters( 'get_comment_author_IP', $comment->comment_author_IP, $comment->comment_ID, $comment );
|
||||
return apply_filters( 'get_comment_author_IP', $comment->comment_author_IP, $comment->comment_ID, $comment ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.NotLowercase
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -667,7 +667,7 @@ function get_comment_ID() { // phpcs:ignore WordPress.NamingConventions.ValidFun
|
||||
* @param int $comment_ID The current comment ID.
|
||||
* @param WP_Comment $comment The comment object.
|
||||
*/
|
||||
return apply_filters( 'get_comment_ID', $comment->comment_ID, $comment );
|
||||
return apply_filters( 'get_comment_ID', $comment->comment_ID, $comment ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.NotLowercase
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user