Patch – Where in code?
-
I’ll try this once more. I’m trying to make changes in the comment-functions.php, and I need to know where to put the code from the patch pasted below. I know that 725 is the line where I begin pasting the code, but why is there a negative sign in front of it, an 8 behind it, and a +725 and number 11 after that? What do these numbers mean?
The patch:
— wordpress/comment-functions.php Tue Jan 11 23:41:18 2005
+++ wptest/comment-functions.php Tue Jan 11 23:38:54 2005
@@ -725,8 +725,11 @@
if ( 1 == get_settings(‘comment_whitelist’)) {
if( $author != ” && $email != ” ) {
$ok_to_comment = $wpdb->get_var(“SELECT comment_approved FROM $wpdb->comments WHERE comment_author = ‘$author’ AND comment_author_email = ‘$email’ and comment_approved = ‘1’ “);
– if ( 1 == $ok_to_comment && false === strpos( $email, get_settings(‘moderation_keys’)) )
+ if ( 1 == $ok_to_comment && false === strpos( $email, get_settings(‘moderation_keys’)) ) {
return true;
+ } else {
+ return false;
+ }
}
if ( ‘trackback’ == $comment_type || ‘pingback’ == $comment_type ) { // check if domain is in blogroll
$uri = parse_url($url);
@@ -764,4 +767,4 @@
return true;
}-?>
\ No newline at end of file
+?>
The topic ‘Patch – Where in code?’ is closed to new replies.