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 trialPreston Davis
5,932 Pointsget_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.
2 Answers
Patrick O'Dacre
15,471 PointsThank you for the heads up!
David Scanu
20,160 PointsThanks for the input.
Jonathan Grieve
Treehouse Moderator 91,253 PointsJonathan Grieve
Treehouse Moderator 91,253 PointsI 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. :-)