Coding Standards: Fix/ignore the WordPress.NamingConventions.ValidFunctionName violations.
See #47632 Built from https://develop.svn.wordpress.org/trunk@45580 git-svn-id: http://core.svn.wordpress.org/trunk@45391 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -262,7 +262,7 @@ function comment_author_link( $comment_ID = 0 ) {
|
||||
* Default current comment.
|
||||
* @return string Comment author's IP address.
|
||||
*/
|
||||
function get_comment_author_IP( $comment_ID = 0 ) {
|
||||
function get_comment_author_IP( $comment_ID = 0 ) { // phpcs:ignore WordPress.NamingConventions.ValidFunctionName.FunctionNameInvalid
|
||||
$comment = get_comment( $comment_ID );
|
||||
|
||||
/**
|
||||
@@ -287,7 +287,7 @@ function get_comment_author_IP( $comment_ID = 0 ) {
|
||||
* @param int|WP_Comment $comment_ID Optional. WP_Comment or the ID of the comment for which to print the author's IP address.
|
||||
* Default current comment.
|
||||
*/
|
||||
function comment_author_IP( $comment_ID = 0 ) {
|
||||
function comment_author_IP( $comment_ID = 0 ) { // phpcs:ignore WordPress.NamingConventions.ValidFunctionName.FunctionNameInvalid
|
||||
echo esc_html( get_comment_author_IP( $comment_ID ) );
|
||||
}
|
||||
|
||||
@@ -651,7 +651,7 @@ function comment_excerpt( $comment_ID = 0 ) {
|
||||
*
|
||||
* @return int The comment ID.
|
||||
*/
|
||||
function get_comment_ID() {
|
||||
function get_comment_ID() { // phpcs:ignore WordPress.NamingConventions.ValidFunctionName.FunctionNameInvalid
|
||||
$comment = get_comment();
|
||||
|
||||
/**
|
||||
@@ -671,7 +671,7 @@ function get_comment_ID() {
|
||||
*
|
||||
* @since 0.71
|
||||
*/
|
||||
function comment_ID() {
|
||||
function comment_ID() { // phpcs:ignore WordPress.NamingConventions.ValidFunctionName.FunctionNameInvalid
|
||||
echo get_comment_ID();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user