Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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.

share|improve this question
add comment

1 Answer

up vote 2 down vote accepted

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

share|improve this answer
    
@fahad - Use the "update" function from "Dashboard" and re-install Wordpress. –  kaiser Aug 8 '11 at 23:56
    
@scribu :) .. !! –  kaiser Aug 8 '11 at 23:57
    
Thanks alot. I got that functions file from wordpress installation. :) –  Fahad Uddin Aug 8 '11 at 23:57
    
That saved me from reinstalling the whole setup –  Fahad Uddin Aug 9 '11 at 0:17
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.