Make WordPress Core


Ignore:
Timestamp:
12/06/2007 07:49:33 PM (17 years ago)
Author:
ryan
Message:

Remove unused vars. Props DD32. see #5418

File:
1 edited

Legend:

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

    r6348 r6364  
    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, $commentdata, $wpdb;
     108    global $postc, $id, $wpdb;
    109109    if ( $no_cache ) {
    110110        $query = $wpdb->prepare("SELECT * FROM $wpdb->comments WHERE comment_ID = %d", $comment_ID);
     
    130130
    131131function get_lastcommentmodified($timezone = 'server') {
    132     global $cache_lastcommentmodified, $pagenow, $wpdb;
     132    global $cache_lastcommentmodified, $wpdb;
    133133    $add_seconds_blog = get_option('gmt_offset') * 3600;
    134134    $add_seconds_server = date('Z');
     
    229229
    230230function wp_blacklist_check($author, $email, $url, $comment, $user_ip, $user_agent) {
    231     global $wpdb;
    232 
    233231    do_action('wp_blacklist_check', $author, $email, $url, $comment, $user_ip, $user_agent);
    234232
     
    294292
    295293function wp_get_comment_status($comment_id) {
    296     global $wpdb;
    297 
    298294    $comment = get_comment($comment_id);
    299295    if ( !$comment )
     
    687683
    688684function pingback($content, $post_ID) {
    689     global $wp_version, $wpdb;
     685    global $wp_version;
    690686    include_once(ABSPATH . WPINC . '/class-IXR.php');
    691687
Note: See TracChangeset for help on using the changeset viewer.