From 456d5b488059ce3a6285877f7940069cb3002cb9 Mon Sep 17 00:00:00 2001 From: Rachel Baker Date: Tue, 19 Jul 2016 01:48:23 +0000 Subject: [PATCH] Docs: Correct `comment_max_links_url` filter and `$url` param descriptions to communicate values are found links. `$num_links` is the number of link matches found within the comment_content, and that is the value that can be modified with the `comment_max_links_url` filter. Props pbearne. Fixes #37319. git-svn-id: https://develop.svn.wordpress.org/trunk@38098 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/comment.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wp-includes/comment.php b/src/wp-includes/comment.php index 8edfc2859f..a2c43956a8 100644 --- a/src/wp-includes/comment.php +++ b/src/wp-includes/comment.php @@ -51,11 +51,11 @@ function check_comment($author, $email, $url, $comment, $user_ip, $user_agent, $ $num_links = preg_match_all( '/]*href/i', $comment, $out ); /** - * Filters the maximum number of links allowed in a comment. + * Filters the number of links found in a comment. * * @since 3.0.0 * - * @param int $num_links The number of links allowed. + * @param int $num_links The number of links found. * @param string $url Comment author's URL. Included in allowed links total. */ $num_links = apply_filters( 'comment_max_links_url', $num_links, $url );