Ticket #37955: 37955.diff
File 37955.diff, 803 bytes (added by , 9 years ago) |
---|
-
src/wp-includes/comment.php
54 54 * Filters the number of links found in a comment. 55 55 * 56 56 * @since 3.0.0 57 * @since 4.7.0 Added the `$comment` parameter. 57 58 * 58 59 * @param int $num_links The number of links found. 59 60 * @param string $url Comment author's URL. Included in allowed links total. 61 * @param string $comment Content of the comment. 60 62 */ 61 $num_links = apply_filters( 'comment_max_links_url', $num_links, $url );63 $num_links = apply_filters( 'comment_max_links_url', $num_links, $url, $comment ); 62 64 63 65 /* 64 66 * If the number of links in the comment exceeds the allowed amount,