Title: Code modifications
Last modified: August 20, 2016

---

# Code modifications

 *  Resolved [gcaleval](https://wordpress.org/support/users/gcaleval/)
 * (@gcaleval)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/code-modifications/)
 * So I looked at the code and made some changes that I’d like to confirm do not
   introduce any nasties:
 * I added at line 20:
 * `$thissite = $_SERVER['HTTP_HOST'];`
 * I changed the Subject code at line 40:
 * `$subject = "Login Event: ".htmlentities($thissite)."";`
 * I changed the message code on line 41:
 * `$message = " WordPress Login Attempt".htmlentities($who)."\r\n On ".htmlentities(
   $thissite).`…
 * These changes produce an email of the form
    Subject: Login Event: wordpress.org
 * WordPress Login Attempt By SomeUserName
    On wordpress.org
 * === All else remains the same.
 * Any problems with or objections to these edits?
 * [http://wordpress.org/extend/plugins/wp-login-alerts/](http://wordpress.org/extend/plugins/wp-login-alerts/)

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

 *  Plugin Author [DigiP](https://wordpress.org/support/users/digip/)
 * (@digip)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/code-modifications/#post-3191413)
 * Will be pushing some new changes today.
 *  Plugin Author [DigiP](https://wordpress.org/support/users/digip/)
 * (@digip)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/code-modifications/#post-3191425)
 * Subject lines have been changed few revisions ago.

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

The topic ‘Code modifications’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-login-alerts_ddd5d2.svg)
 * [WP Login Alerts by DigiP](https://wordpress.org/plugins/wp-login-alerts/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-login-alerts/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-login-alerts/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-login-alerts/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-login-alerts/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-login-alerts/reviews/)

## Tags

 * [login](https://wordpress.org/support/topic-tag/login/)

 * 2 replies
 * 2 participants
 * Last reply from: [DigiP](https://wordpress.org/support/users/digip/)
 * Last activity: [13 years, 4 months ago](https://wordpress.org/support/topic/code-modifications/#post-3191425)
 * Status: resolved