From 093b16dfcdf91d4f05bb6f001ff607881c7c09cf Mon Sep 17 00:00:00 2001 From: Rachel Baker Date: Tue, 19 Jul 2016 01:49:30 +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. Built from https://develop.svn.wordpress.org/trunk@38098 git-svn-id: http://core.svn.wordpress.org/trunk@38039 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/comment.php | 4 ++-- wp-includes/version.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/wp-includes/comment.php b/wp-includes/comment.php index 8edfc2859f..a2c43956a8 100644 --- a/wp-includes/comment.php +++ b/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 ); diff --git a/wp-includes/version.php b/wp-includes/version.php index a1a9a45f39..957c826e7b 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -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.