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
This commit is contained in:
parent
1aa4b6f87f
commit
456d5b4880
|
@ -51,11 +51,11 @@ function check_comment($author, $email, $url, $comment, $user_ip, $user_agent, $
|
|||
$num_links = preg_match_all( '/<a [^>]*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 );
|
||||
|
|
Loading…
Reference in New Issue