Title: Patch &#8211; Where in code?
Last modified: August 18, 2016

---

# Patch – Where in code?

 *  [LB](https://wordpress.org/support/users/lb/)
 * (@lb)
 * [20 years, 11 months ago](https://wordpress.org/support/topic/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 +?>

Viewing 1 replies (of 1 total)

 *  [ifelse](https://wordpress.org/support/users/ifelse/)
 * (@ifelse)
 * [20 years, 11 months ago](https://wordpress.org/support/topic/patch-where-in-code/#post-188717)
 * – means remove that line.
    + means add that line

Viewing 1 replies (of 1 total)

The topic ‘Patch – Where in code?’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [ifelse](https://wordpress.org/support/users/ifelse/)
 * Last activity: [20 years, 11 months ago](https://wordpress.org/support/topic/patch-where-in-code/#post-188717)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
