In the past, I was able to manage the website ‘problems’ by looking for the PHP error log file. PHP logs the error and displays error messages like …
An error of type E_ERROR was caused in line 116 of the file /home/********/public_html/wp-content/plugins/wp-optimize/wp-optimize.php. Error message: Class ‘WP_Optimize_Options’ not found
(and where I have “*********” it was the username for the website). So, security is such on that site that only I can see that file and hence the username.
BUT, now because of the (auto) email notification sourced from WordPress, that username has been sent across the internet in plain text. It’s in all the email headers also of course.
It’s not just WordPress on that site but other applications, so now the ENTIRE website security has been compromised.
Just to be clear on when I use the term USERNAME. It is not the WordPress username of course, but the ‘webmaster/admin’ username. It is something I had guarded well up until now. ??
So, moving on. I see the code at line 192 of /wp-includes/class-wp-recovery-mode-email-service.php
$sent = wp_mail(
$email['to'],
wp_specialchars_decode( sprintf( $email['subject'], $blogname ) ),
$email['message'],
$email['headers']
);
I could comment the code out there, but that means ‘re-work’ everytime I do a WP upgrade. I only had a quick glance at that PHP file and it doesn’t seem that there is an admin type setting to effect something like “don’t send any emails”. It would be nice if the dashboard had that; had a quick look. Doesn’t seem to.
So, for now I’ll simply modify the WP admin email address, to stop WP from sending me any emails. (I assume if I tried changing it in the dashboard it will only allow a valid email address.
I understand the thinking behind giving people this ‘feature’, but there is no possibility that I will ever get locked out of the system. If WP broke for me, I’d just wipe the lot and re-load the database from the daily backup.
(Just a PS to help – I’m the only WP user on this site. There are no comments allowed. It’s a totally stock std WP, use a WP theme, and 3 very well known plugins.)