Title: WordPress core file modified
Last modified: September 1, 2016

---

# WordPress core file modified

 *  Resolved [Claus Wessel](https://wordpress.org/support/users/cwe45/)
 * (@cwe45)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/wordpress-core-file-modified-4/)
 * Hello, I just bought Wordfence Premium, since i noticed someone trying to hack
   my site, and i get a critical issue on 1st scan. WordPress core file is modified–
   and i do not have permissions to restore to original.
 * “**wp-admin/includes/upgrade.php**” file is changed from:
    **@wp_mail($email,
   __(‘New WordPress Site’), $message);** to: **//@wp_mail($email, __(‘New WordPress
   Site’), $message);**
 * Is this serious? it worries me that i dont have permissions on my own site.
 * I am new to website developing so hoping for help. Thanks in advance.
 * [https://wordpress.org/plugins/wordfence/](https://wordpress.org/plugins/wordfence/)

Viewing 5 replies - 1 through 5 (of 5 total)

 *  [wfasa](https://wordpress.org/support/users/wfasa/)
 * (@wfasa)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/wordpress-core-file-modified-4/#post-7616561)
 * Hello cwe45,
    the two slashes that are added at the beginning of the line “comment
   out” that section of code so that line of code is deactivated. What that line
   of code normally does is to send an email when a new blog is created. I’m not
   sure if this has been done to your site maliciously or if someone just don’t 
   know what they are doing but if you don’t have permissions to restore the original
   I would suggest you contact your web host and ask them to help.
 *  Thread Starter [Claus Wessel](https://wordpress.org/support/users/cwe45/)
 * (@cwe45)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/wordpress-core-file-modified-4/#post-7616605)
 * Hello wfasa, thank you for your thorough reply. Yes i reckoned it was a comment
   out, i’m used to # in Powershell. I think if someone wanted to do something malicious
   to my site and had access to the core files, they could do a lot worse than that.
   However i will as you suggest contact my webhost. Thanks
 *  [wfasa](https://wordpress.org/support/users/wfasa/)
 * (@wfasa)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/wordpress-core-file-modified-4/#post-7616615)
 * Great cwe45,
    It doesn’t look very bad I agree but it’s still a strange thing.
   Let me know how it goes.
 *  Thread Starter [Claus Wessel](https://wordpress.org/support/users/cwe45/)
 * (@cwe45)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/wordpress-core-file-modified-4/#post-7616645)
 * Thanks again wfasa, in reply to letting you know how it goes, i can happily inform
   i get wiser in regard of webhosting and design by every time i put time and effort
   into it (thank god). However, being a complete noob i try to learn.
    The file
   modification error which Wordfence reports as critical seems trivial. I get mails
   when blogs are commented on anyhow, and my new website seems responsive overall.
   I am finally at a point being happy with the security and the design of my new
   site. All i need now is putting something in it 🙂 Anyways, thanks for being 
   there to help newbees. BR, Claus
 *  [wfasa](https://wordpress.org/support/users/wfasa/)
 * (@wfasa)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/wordpress-core-file-modified-4/#post-7616658)
 * Thanks for the update Claus and great job on improving your site and your skills!

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘WordPress core file modified’ is closed to new replies.

 * ![](https://ps.w.org/wordfence/assets/icon.svg?rev=2070865)
 * [Wordfence Security - Firewall, Malware Scan, and Login Security](https://wordpress.org/plugins/wordfence/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wordfence/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wordfence/)
 * [Active Topics](https://wordpress.org/support/plugin/wordfence/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wordfence/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wordfence/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [wfasa](https://wordpress.org/support/users/wfasa/)
 * Last activity: [9 years, 10 months ago](https://wordpress.org/support/topic/wordpress-core-file-modified-4/#post-7616658)
 * Status: resolved