mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
Notice fixes from Viper007Bond. see #7509
git-svn-id: https://develop.svn.wordpress.org/trunk@9515 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -32,10 +32,10 @@ if ( empty($status->comment_status) ) {
|
||||
exit;
|
||||
}
|
||||
|
||||
$comment_author = trim(strip_tags($_POST['author']));
|
||||
$comment_author_email = trim($_POST['email']);
|
||||
$comment_author_url = trim($_POST['url']);
|
||||
$comment_content = trim($_POST['comment']);
|
||||
$comment_author = ( isset($_POST['author']) ) ? trim(strip_tags($_POST['author'])) : null;
|
||||
$comment_author_email = ( isset($_POST['email']) ) ? trim($_POST['email']) : null;
|
||||
$comment_author_url = ( isset($_POST['url']) ) ? trim($_POST['url']) : null;
|
||||
$comment_content = ( isset($_POST['comment']) ) ? trim($_POST['comment']) : null;
|
||||
|
||||
// If the user is logged in
|
||||
$user = wp_get_current_user();
|
||||
|
||||
Reference in New Issue
Block a user