Skip to content

Instantly share code, notes, and snippets.

@zeisss
Created February 22, 2012 22:00
Show Gist options
  • Save zeisss/1887713 to your computer and use it in GitHub Desktop.
Save zeisss/1887713 to your computer and use it in GitHub Desktop.
wp-recentcomments/core.php
Line 186
- $json .= '"reviewerName":"' . $comment->comment_author . '",';
+ $json .= '"reviewerName":"' . htmlentities($comment->comment_author) . '",';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment