Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

WordPress WordPress Settings API Creating a Theme Options Page Settings Coding a Simple Theme Options Page

Preston Davis
Preston Davis
5,932 Points

get_current_theme is deprecated

get_current_theme is deprecated since version 3.4! Use wp_get_theme() instead ( https://wordpress.org/search/wp_get_theme ). Since I dont know the date this class was posted, I would advise all students to turn ON debugging and log errors to debug.log to catch these kinds of errors.

Jonathan Grieve
Jonathan Grieve
Treehouse Moderator 90,845 Points

I don't understand. I'm using get_current_theme now to display the options page. It's right there. I know this post is a year old and the course even older but has this issue fixed itself in that time? I'll switch back to wp_get_theme() in any case. :-)

2 Answers