Changeset 906

Show
Ignore:
Timestamp:
02/21/04 22:59:40 (5 years ago)
Author:
michelvaldrighi
Message:

removed useless php3 compatibility, fixed a forgotten global

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/wp-includes/functions.php

    r905 r906  
    10611061    global $wpdb, $tablecomments, $tableposts, $tableusers; 
    10621062    global $querystring_start, $querystring_equal, $querystring_separator; 
    1063     global $blogfilename, $blogname, $siteurl
     1063    global $blogfilename, $blogname, $siteurl, $blog_charset
    10641064     
    10651065    $comment = $wpdb->get_row("SELECT * FROM $tablecomments WHERE comment_ID='$comment_id' LIMIT 1"); 
     
    10941094} 
    10951095 
    1096  
    1097 // implementation of in_array that also should work on PHP3 
    1098 if (!function_exists('in_array')) { 
    1099  
    1100     function in_array($needle, $haystack) { 
    1101         $needle = strtolower($needle); 
    1102          
    1103         for ($i = 0; $i < count($haystack); $i++) { 
    1104         if (strtolower($haystack[$i]) == $needle) { 
    1105             return true; 
    1106         } 
    1107         } 
    1108      
    1109         return false; 
    1110     } 
    1111 } 
    11121096 
    11131097function start_wp() {