Title: Comments  -&gt; Database
Last modified: August 19, 2016

---

# Comments -> Database

 *  Resolved [jamiet757](https://wordpress.org/support/users/jamiet757/)
 * (@jamiet757)
 * [15 years ago](https://wordpress.org/support/topic/comments-database-1/)
 * I was messing around in my theme and changed the default values for the comments
   fields that it had set forth. Now when someone posts a comment, if they don’t
   enter a website, wordpress automatically puts http:// your website.
 * I want to put an if statement somewhere to determine if the default values are
   present and if they are, clear them out before adding to the database, but I 
   can’t for the life of me see where the aforementioned task is actually done.
 * Can someone point me in the right direction? I know how to code the PHP to make
   it check that the field wasn’t just the default value, but I don’t know where
   to look to start.

Viewing 1 replies (of 1 total)

 *  [Chip Bennett](https://wordpress.org/support/users/chipbennett/)
 * (@chipbennett)
 * [15 years ago](https://wordpress.org/support/topic/comments-database-1/#post-2065083)
 * Assuming your Theme is using the `comment_form()` function, where did you define
   the `fields` array that is part of the `$new_defaults` array that you passed 
   to `comment_form()`?

Viewing 1 replies (of 1 total)

The topic ‘Comments -> Database’ is closed to new replies.

## Tags

 * [comment](https://wordpress.org/support/topic-tag/comment/)
 * [database](https://wordpress.org/support/topic-tag/database/)
 * [php](https://wordpress.org/support/topic-tag/php/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [Chip Bennett](https://wordpress.org/support/users/chipbennett/)
 * Last activity: [15 years ago](https://wordpress.org/support/topic/comments-database-1/#post-2065083)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
