add $user_agent to check_comment() arg list. Bug 415. Patch by MC_incubus.
git-svn-id: https://develop.svn.wordpress.org/trunk@1847 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
f34a43bf4e
commit
ea54a86ebb
|
@ -1637,7 +1637,7 @@ function get_posts($args) {
|
||||||
return $posts;
|
return $posts;
|
||||||
}
|
}
|
||||||
|
|
||||||
function check_comment($author, $email, $url, $comment, $user_ip) {
|
function check_comment($author, $email, $url, $comment, $user_ip, $user_agent) {
|
||||||
global $wpdb;
|
global $wpdb;
|
||||||
|
|
||||||
if (1 == get_settings('comment_moderation')) return false; // If moderation is set to manual
|
if (1 == get_settings('comment_moderation')) return false; // If moderation is set to manual
|
||||||
|
|
Loading…
Reference in New Issue