Changeset 27057 for trunk/src/wp-includes/comment.php
- Timestamp:
- 01/29/2014 06:45:54 AM (12 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/comment.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/comment.php
r27055 r27057 136 136 function get_comment(&$comment, $output = OBJECT) { 137 137 global $wpdb; 138 $null = null;139 138 140 139 if ( empty($comment) ) { … … 152 151 $_comment = $wpdb->get_row($wpdb->prepare("SELECT * FROM $wpdb->comments WHERE comment_ID = %d LIMIT 1", $comment)); 153 152 if ( ! $_comment ) 154 return $null;153 return null; 155 154 wp_cache_add($_comment->comment_ID, $_comment, 'comment'); 156 155 }
Note: See TracChangeset
for help on using the changeset viewer.