Make WordPress Core


Ignore:
Timestamp:
01/04/2008 07:36:34 PM (17 years ago)
Author:
ryan
Message:

Unused var cleanup. Props DD32. see #5418

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/comment.php

    r6534 r6551  
    106106// Deprecate in favor of get_comment()?
    107107function 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;
    109109    if ( $no_cache ) {
    110110        $query = $wpdb->prepare("SELECT * FROM $wpdb->comments WHERE comment_ID = %d", $comment_ID);
     
    131131function get_lastcommentmodified($timezone = 'server') {
    132132    global $cache_lastcommentmodified, $wpdb;
    133     $add_seconds_blog = get_option('gmt_offset') * 3600;
    134133    $add_seconds_server = date('Z');
    135134    $now = current_time('mysql', 1);
     
    178177    );
    179178
    180     foreach ( $totals as $i => $row ) {
     179    foreach ( $totals as $row ) {
    181180        switch ( $row['comment_approved'] ) {
    182181            case 'spam':
     
    520519    $comment_date_gmt = get_gmt_from_date($comment_date);
    521520
    522     $result = $wpdb->query(
     521    $wpdb->query(
    523522        "UPDATE $wpdb->comments SET
    524523            comment_content      = '$comment_content',
     
    610609    $pingback_str_squote = 'rel=\'pingback\'';
    611610    $x_pingback_str = 'x-pingback: ';
    612     $pingback_href_original_pos = 27;
    613611
    614612    extract(parse_url($url), EXTR_SKIP);
Note: See TracChangeset for help on using the changeset viewer.