Changeset 6364 for trunk/wp-includes/comment.php
- Timestamp:
- 12/06/2007 07:49:33 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/comment.php
r6348 r6364 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, $ commentdata, $wpdb;108 global $postc, $id, $wpdb; 109 109 if ( $no_cache ) { 110 110 $query = $wpdb->prepare("SELECT * FROM $wpdb->comments WHERE comment_ID = %d", $comment_ID); … … 130 130 131 131 function get_lastcommentmodified($timezone = 'server') { 132 global $cache_lastcommentmodified, $ pagenow, $wpdb;132 global $cache_lastcommentmodified, $wpdb; 133 133 $add_seconds_blog = get_option('gmt_offset') * 3600; 134 134 $add_seconds_server = date('Z'); … … 229 229 230 230 function wp_blacklist_check($author, $email, $url, $comment, $user_ip, $user_agent) { 231 global $wpdb;232 233 231 do_action('wp_blacklist_check', $author, $email, $url, $comment, $user_ip, $user_agent); 234 232 … … 294 292 295 293 function wp_get_comment_status($comment_id) { 296 global $wpdb;297 298 294 $comment = get_comment($comment_id); 299 295 if ( !$comment ) … … 687 683 688 684 function pingback($content, $post_ID) { 689 global $wp_version , $wpdb;685 global $wp_version; 690 686 include_once(ABSPATH . WPINC . '/class-IXR.php'); 691 687
Note: See TracChangeset
for help on using the changeset viewer.