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.
Built from https://develop.svn.wordpress.org/trunk@38098


git-svn-id: http://core.svn.wordpress.org/trunk@38039 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Rachel Baker 2016-07-19 01:49:30 +00:00
parent 11cb0cfe86
commit 093b16dfcd
2 changed files with 3 additions and 3 deletions

View File

@ -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 );

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.6-beta3-38097';
$wp_version = '4.6-beta3-38098';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.