Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

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 91,252 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