Ticket #2745: 2745.diff

File 2745.diff, 0.8 kB (added by mdawaffe, 2 years ago)

maybe

  • wp-includes/classes.php

    old new  
    809809                $list = array_unique( $list ); 
    810810                $this->spam_words = $list; 
    811811 
    812                 $this->comment_list = $wpdb->get_results("SELECT comment_ID AS ID, comment_content AS text, comment_approved AS approved, comment_author_url AS url, comment_author_ip AS ip, comment_author_email AS email FROM $wpdb->comments ORDER BY comment_ID ASC"); 
     812                $this->comment_list = (array) $wpdb->get_results("SELECT comment_ID AS ID, comment_content AS text, comment_approved AS approved, comment_author_url AS url, comment_author_ip AS ip, comment_author_email AS email FROM $wpdb->comments ORDER BY comment_ID ASC"); 
    813813        }       // End of class constructor 
    814814 
    815815        function move_spam( $id_list ) {