WordPress.org

Make WordPress Core

Ticket #37319: comment.php.15.patch

File comment.php.15.patch, 754 bytes (added by pbearne, 4 years ago)

Just comment

  • src/wp-includes/comment.php

     
    5151                $num_links = preg_match_all( '/<a [^>]*href/i', $comment, $out );
    5252
    5353                /**
    54                  * Filters the maximum number of links allowed in a comment.
     54                 * Filters the number of links found in the comment.
    5555                 *
    5656                 * @since 3.0.0
    5757                 *
    58                  * @param int    $num_links The number of links allowed.
     58                 * @param int    $num_links The number of links found in the comment.
    5959                 * @param string $url       Comment author's URL. Included in allowed links total.
    6060                 */
    6161                $num_links = apply_filters( 'comment_max_links_url', $num_links, $url );