Filter by:
File Violation Severity
wp-includes/bookmark.php CamelCaseParameterName   (kritika/PHPMD)
The parameter $bookmark_id is not named in camelCase.
Warning
wp-includes/bookmark.php CamelCaseParameterName   (kritika/PHPMD)
The parameter $bookmark_id is not named in camelCase.
Warning
wp-includes/class-wp-site.php CamelCaseParameterName   (kritika/PHPMD)
The parameter $site_id is not named in camelCase.
Warning
wp-includes/comment.php CamelCaseParameterName   (kritika/PHPMD)
The parameter $user_ip is not named in camelCase.
Warning
wp-includes/comment.php CamelCaseParameterName   (kritika/PHPMD)
The parameter $user_agent is not named in camelCase.
Warning
wp-includes/comment.php CamelCaseParameterName   (kritika/PHPMD)
The parameter $comment_type is not named in camelCase.
Warning
wp-includes/comment.php CamelCaseParameterName   (kritika/PHPMD)
The parameter $post_id is not named in camelCase.
Warning
157
 * @param  int   $post_id The ID of the post.
158
 * @param  array $args    Optional. See WP_Comment_Query::__construct() for information on accepted arguments.
159
 * @return int|array $comments The approved comments, or number of comments if `$count`
160
 *                             argument is true.
161
 */
162
function get_approved_comments( $post_id, $args = array() ) {
163
	if ( ! $post_id ) {
164
		return array();
165
	}
166
 
167
	$defaults    = array(
wp-includes/comment.php CamelCaseParameterName   (kritika/PHPMD)
The parameter $post_type is not named in camelCase.
Warning
wp-includes/comment.php CamelCaseParameterName   (kritika/PHPMD)
The parameter $comment_type is not named in camelCase.
Warning
wp-includes/comment.php CamelCaseParameterName   (kritika/PHPMD)
The parameter $post_id is not named in camelCase.
Warning
wp-includes/comment.php CamelCaseParameterName   (kritika/PHPMD)
The parameter $comment_id is not named in camelCase.
Warning
wp-includes/comment.php CamelCaseParameterName   (kritika/PHPMD)
The parameter $meta_key is not named in camelCase.
Warning
wp-includes/comment.php CamelCaseParameterName   (kritika/PHPMD)
The parameter $meta_value is not named in camelCase.
Warning
wp-admin/includes/update-core.php CamelCaseParameterName   (kritika/PHPMD)
The parameter $skip_list is not named in camelCase.
Warning
wp-admin/includes/update-core.php CamelCaseParameterName   (kritika/PHPMD)
The parameter $new_version is not named in camelCase.
Warning
wp-admin/includes/ajax-actions.php CamelCaseParameterName   (kritika/PHPMD)
The parameter $comment_id is not named in camelCase.
Warning
wp-admin/includes/list-table.php CamelCaseParameterName   (kritika/PHPMD)
The parameter $with_id is not named in camelCase.
Warning
wp-includes/cron.php CamelCaseParameterName   (kritika/PHPMD)
The parameter $gmt_time is not named in camelCase.
Warning
wp-includes/author-template.php CamelCaseParameterName   (kritika/PHPMD)
The parameter $deprecated_echo is not named in camelCase.
Warning
wp-includes/SimplePie/IRI.php CamelCaseParameterName   (kritika/PHPMD)
The parameter $extra_chars is not named in camelCase.
Warning