comment_author; if ($displaywhen) $byline .= $beforedate . get_comment_date('mdY') . $beforetime . get_comment_time('G:i'); $byline .= $aftername; // If "WordPress should correct invalidly nested XHTML automatically" is on, we need to strip nested blockquotes to make the quote turn up right // This is due to a bug that doesn't allow nested blockquotes as described here: http://trac.wordpress.org/ticket/1170 // This bit of code isn't perfect though as it'll strip all blockquotes including those inside of and such tags, but oh well, it's good enough // Oh, and I'm assuming this auto-correction bug will be fixed in version 1.6, so hence version test if (get_option('use_balanceTags') == '1' && get_bloginfo('version') <= '1.6') { $commentcontent = $comment->comment_content; while (strpos($commentcontent, '
') !== FALSE) { $startpos = strpos($commentcontent, '
'); $endpos = strpos($commentcontent, '
'); $commentcontent = substr_replace($commentcontent, ' [blockquote removed] ', $startpos, $endpos-$startpos+13); // 13 = strlen('
'); } } else { $commentcontent = $comment->comment_content; } // Output the quote/reply link echo "' . $byline . ':\n\n' . $commentcontent), ENT_QUOTES) . '</blockquote>\n\'">' . $text . ""; } ?> get_var("SELECT post_modified FROM $wpdb->posts WHERE id = $id"); if (empty($format)) $format = get_option('date_format') . ' @ ' . get_option('time_format'); echo mysql2date($format, $post_mod_date); } ?> post_author); $current_user = wp_get_current_user(); if ( ($comment->comment_author_email) AND (get_comment_type() == 'comment') ) { if ( $comment->comment_author_email == $authordata->user_email ) //highlight author echo 'class="author-comment"'; elseif ( $comment->comment_author_email == $user_email ) //highlight user if not author echo 'class="user-comment"'; elseif ( $comment->comment_author_email == $comment_author_email ) //highlight commenter if not user echo 'class="user-comment"'; } if (get_comment_type() != 'comment') echo 'class="ping-comment"'; } ?> posts WHERE post_status = 'publish'"; print $wpdb->get_var($s); } ?> comments WHERE comment_approved = '1'"; if ($a) { $s .= " AND comment_post_ID=$a"; } print $wpdb->get_var($s); } ?>