Changeset 13353
- Timestamp:
- 02/24/2010 12:18:18 AM (11 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/comment.php
r13242 r13353 1383 1383 1384 1384 $data = compact('comment_content', 'comment_author', 'comment_author_email', 'comment_approved', 'comment_karma', 'comment_author_url', 'comment_date', 'comment_date_gmt'); 1385 $wpdb->update($wpdb->comments, $data, compact('comment_ID')); 1386 1387 $rval = $wpdb->rows_affected; 1385 $rval = $wpdb->update( $wpdb->comments, $data, compact( 'comment_ID' ) ); 1388 1386 1389 1387 clean_comment_cache($comment_ID); -
trunk/xmlrpc.php
r13207 r13353 3204 3204 3205 3205 // Let's check that the remote site didn't already pingback this entry 3206 $wpdb->get_results( $wpdb->prepare("SELECT * FROM $wpdb->comments WHERE comment_post_ID = %d AND comment_author_url = %s", $post_ID, $pagelinkedfrom) ); 3207 3208 if ( $wpdb->num_rows ) // We already have a Pingback from this URL 3209 return new IXR_Error(48, __('The pingback has already been registered.')); 3206 if ( $wpdb->get_results( $wpdb->prepare("SELECT * FROM $wpdb->comments WHERE comment_post_ID = %d AND comment_author_url = %s", $post_ID, $pagelinkedfrom) ) ) 3207 return new IXR_Error( 48, __( 'The pingback has already been registered.' ) ); 3210 3208 3211 3209 // very stupid, but gives time to the 'from' server to publish !
Note: See TracChangeset
for help on using the changeset viewer.