0

I'm building a custom wordpress theme. When I turn on debug, I get this message:

Notice: Theme without sidebar.php is deprecated since version 3.0 with no alternative available. Please include a sidebar.php template in your theme. in /var/www/wp2/wp-includes/functions.php on line 2968

However, I do have sidebar.php in my theme. It's copied and unedited, from wp-includes/theme-compat

What am I doing wrong?

6

The call actually comes from themes compat like you can read here in source.

So I'd imagine that you simply copy pasted the complete contents and therefore just added the _deprecated_file() call as well. :D

Lesson to learn from this: Never blindly copy paste stuff without understanding what it does and why it does it.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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