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 Googled is_sidebar_active(), used by several WordPress trainer, but I came to the decision, the function's surely deprecated. But unfortunately I found no mention, even no entry in WordPress Codex.

As a Wikipedian, I also edit the Codex sometime, but need the confirmation that, is_sidebar_active() IS DEPRECATED, and is_active_sidebar() is ON now.

I used is_active_sidebar() instead of is_sidebar_active() in my theme and it's working fine.

But I need a confirmation. Anybody?

share|improve this question

2 Answers 2

up vote 2 down vote accepted

is_sidebar_active() is not a WordPress function. Do not use that. This is probably a typo.

The correct name is is_active_sidebar($index), and that function is not deprecated.

share|improve this answer

It does appear to be deprecated -- but the only solid reference I found to it was in the Theme Trac site (for instance, http://themes.trac.wordpress.org/ticket/3585 refers to is_sidebar_active() being deprecated). I didn't find is_sidebar_active() in the Core Trac, not even in the search. Google is a little too eager to be helpful, and when I search for is_sidebar_active(), most of the hits I got were for is_active_sidebar() instead.

Long story short, use is_active_sidebar().

share|improve this answer
    
Yap, right. Thanks. –  Mayeenul Islam May 24 '13 at 4:54

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.