0

I was making minor changes to functions.php file but just as I made the changes I got an error, I used FileZilla and undo the function I added but now I am getting the following error,

Fatal error: Call to undefined function add_action() in /home/content/93/7877293/html/wordpress/wp-includes/functions.php on line 51

I am sure that the file is now in its original condition. Can anyone help me by suggesting me how to deal with it?

Thanks in advance.

1 Answer 1

2

You're not supposed to edit wp-includes/functions.php but wp-content/themes/your-theme/functions.php.

4
  • @fahad - Use the "update" function from "Dashboard" and re-install Wordpress.
    – kaiser
    Commented Aug 8, 2011 at 23:56
  • @scribu :) .. !!
    – kaiser
    Commented Aug 8, 2011 at 23:57
  • Thanks alot. I got that functions file from wordpress installation. :)
    – user2238
    Commented Aug 8, 2011 at 23:57
  • That saved me from reinstalling the whole setup
    – user2238
    Commented Aug 9, 2011 at 0:17

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.