This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function asciibin(convert, type) { | |
//if this is binary... | |
if (type == 'binary') { | |
//strip any white space | |
convert = convert.replace(/ /g,''); | |
//remove any line breaks | |
convert = convert.replace(/\n/g,''); | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
# First select all comments | |
$query = "SELECT `comment_ID`, `comment_post_ID`, `comment_content` FROM ".$wpdb->comments." WHERE 1"; | |
$comments = $wpdb->get_results($query); | |
# Array to hold keeper comment IDs so we don't delete them if there are doops | |
$keeper_comments = array(); | |
# Now check if each comment has any matching comments from the same post | |
foreach ($comments as $comment) { |