WordPress.org

Make WordPress Core

Changeset 15592


Ignore:
Timestamp:
09/07/10 14:36:35 (7 years ago)
Author:
nacin
Message:

Pass some context to the pre_comment_approved hook. props coffee2code, fixes #14802.

File:
1 edited

Legend:

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

    r15590 r15592  
    589589    } 
    590590 
    591     $approved = apply_filters('pre_comment_approved', $approved); 
     591    $approved = apply_filters( 'pre_comment_approved', $approved, $commentdata ); 
    592592    return $approved; 
    593593} 
Note: See TracChangeset for help on using the changeset viewer.