removed useless php3 compatibility, fixed a forgotten global
git-svn-id: http://svn.automattic.com/wordpress/trunk@906 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
7449fbcebd
commit
8091c63bff
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue