Changeset 6551 for trunk/wp-includes/comment.php
- Timestamp:
- 01/04/2008 07:36:34 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/comment.php
r6534 r6551 106 106 // Deprecate in favor of get_comment()? 107 107 function get_commentdata( $comment_ID, $no_cache = 0, $include_unapproved = false ) { // less flexible, but saves DB queries 108 global $postc, $ id, $wpdb;108 global $postc, $wpdb; 109 109 if ( $no_cache ) { 110 110 $query = $wpdb->prepare("SELECT * FROM $wpdb->comments WHERE comment_ID = %d", $comment_ID); … … 131 131 function get_lastcommentmodified($timezone = 'server') { 132 132 global $cache_lastcommentmodified, $wpdb; 133 $add_seconds_blog = get_option('gmt_offset') * 3600;134 133 $add_seconds_server = date('Z'); 135 134 $now = current_time('mysql', 1); … … 178 177 ); 179 178 180 foreach ( $totals as $ i => $row ) {179 foreach ( $totals as $row ) { 181 180 switch ( $row['comment_approved'] ) { 182 181 case 'spam': … … 520 519 $comment_date_gmt = get_gmt_from_date($comment_date); 521 520 522 $ result = $wpdb->query(521 $wpdb->query( 523 522 "UPDATE $wpdb->comments SET 524 523 comment_content = '$comment_content', … … 610 609 $pingback_str_squote = 'rel=\'pingback\''; 611 610 $x_pingback_str = 'x-pingback: '; 612 $pingback_href_original_pos = 27;613 611 614 612 extract(parse_url($url), EXTR_SKIP);
Note: See TracChangeset
for help on using the changeset viewer.