WordPress.org

Make WordPress Core

Changeset 38748


Ignore:
Timestamp:
10/07/16 18:31:51 (10 months ago)
Author:
ocean90
Message:

Comments: Pass $comment to the comment_max_links_url filter.

Props rachelbaker.
Fixes #37955.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/comment.php

    r38740 r38748  
    5555         * 
    5656         * @since 3.0.0 
     57         * @since 4.7.0 Added the `$comment` parameter. 
    5758         * 
    5859         * @param int    $num_links The number of links found. 
    5960         * @param string $url       Comment author's URL. Included in allowed links total. 
     61         * @param string $comment   Content of the comment. 
    6062         */ 
    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 ); 
    6264 
    6365        /* 
Note: See TracChangeset for help on using the changeset viewer.