So I got an alert (after scanning with Wordfence plugin) that there was a malicious file in functions.php. The file name is: “$wp_user_functions_init = create_function”.
So instead of just deleting it, I copied my existing functions.php file. Then I deleted the malicious file, so that if it created a problem, I could just revert back to the previous functions.php.
So it did, big time. I’m now getting this error when trying to access my site:
Fatal error: Call to undefined function vantage_get_query_variables() in /hermes/bosoraweb172/b2128/ipw.flinthill/public_html/wp-content/themes/vantage/loops/loop-carousel.php on line 8
So I pasted the old (pre-deleted file) functions.php into the editor and it tells me that this file cannot be edited. Doh!!!
Should I find the original functions.php from the theme download and replace it via FTP? Any thoughts?
Gavin Brown