Ticket #37319: comment.php.14.patch
| File comment.php.14.patch, 1.4 KB (added by , 10 years ago) |
|---|
-
src/wp-includes/comment.php
51 51 $num_links = preg_match_all( '/<a [^>]*href/i', $comment, $out ); 52 52 53 53 /** 54 * Filters the maximum number of links allowed in acomment.54 * Filters the number of links found in the comment. 55 55 * 56 56 * @since 3.0.0 57 57 * 58 * @param int $num_links The number of links allowed.58 * @param int $num_links The number of links found in the comment. 59 59 * @param string $url Comment author's URL. Included in allowed links total. 60 60 */ 61 61 $num_links = apply_filters( 'comment_max_links_url', $num_links, $url ); 62 62 63 /** 64 * Filters the number of links found in the comment. 65 * 66 * @since 4.7.0 67 * 68 * @param int $num_links The number of links found in the comment. 69 * @param string $comment Comment author's URL. Included in allowed links total. 70 * @param array $function_args All the args passed to the function ( $author, $email, $url, $comment, $user_ip, $user_agent, $comment_type ) 71 */ 72 $num_links = apply_filters( 'links_found_in_comment', $num_links, $comment, func_get_args() ); 73 74 63 75 /* 64 76 * If the number of links in the comment exceeds the allowed amount, 65 77 * fail the check by returning false.