diff --git a/wp-includes/functions.php b/wp-includes/functions.php index 020eb6e9a0..a06bfe952d 100644 --- a/wp-includes/functions.php +++ b/wp-includes/functions.php @@ -1060,7 +1060,7 @@ function wp_notify_postauthor($comment_id, $comment_type='comment') { function wp_notify_moderator($comment_id) { global $wpdb, $tablecomments, $tableposts, $tableusers; global $querystring_start, $querystring_equal, $querystring_separator; - global $blogfilename, $blogname, $siteurl; + global $blogfilename, $blogname, $siteurl, $blog_charset; $comment = $wpdb->get_row("SELECT * FROM $tablecomments WHERE comment_ID='$comment_id' LIMIT 1"); $post = $wpdb->get_row("SELECT * FROM $tableposts WHERE ID='$comment->comment_post_ID' LIMIT 1"); @@ -1094,22 +1094,6 @@ function wp_notify_moderator($comment_id) { } -// implementation of in_array that also should work on PHP3 -if (!function_exists('in_array')) { - - function in_array($needle, $haystack) { - $needle = strtolower($needle); - - for ($i = 0; $i < count($haystack); $i++) { - if (strtolower($haystack[$i]) == $needle) { - return true; - } - } - - return false; - } -} - function start_wp() { global $post, $id, $postdata, $authordata, $day, $preview, $page, $pages, $multipage, $more, $numpages; global $preview_userid,$preview_date,$preview_content,$preview_title,$preview_category,$preview_notify,$preview_make_clickable,$preview_autobr;