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 Customizer API Custom WordPress Customizer Settings WP_Customize_Image_Control Bug Fix

Justin Estrada
Justin Estrada
34,995 Points

V 4.1 WordPress has fixed this bug.

In the WordPress Customizer API Course. Lesson: WP_Customizer_image bug fix.

Zac helps fix a bug that was prevalent with WP 3.8.

The link that Zac has in the teachers notes: https://core.trac.wordpress.org/ticket/27300

Shows that has of version 4.1 the bug has been fixed.

(Just thought I'd throw this up on the forum incase anyone asked themselves this question, hope this is a relevant forum post)

Thanks Justin Estrada for the note :smile: Here's an update for you Zac Gordon

Additional Information About the Update

Since WordPress version 4.1 has been updated to use the media library. Previously-uploaded images are no longer shown as a result which corrects the bug stated in this video. You no longer need to add the line require_once('inc/wp-customize-image-reloaded.php'); or the wp-customize-image-reloaded.php file.

Don't forget to change the control call of My_Customize_Image_Reloaded_Control back to WP_Customize_Image_Control

1 Answer

Additional Information About the Update

Since WordPress version 4.1 has been updated to use the media library. Previously-uploaded images are no longer shown as a result which corrects the bug stated in this video. You no longer need to add the line require_once('inc/wp-customize-image-reloaded.php'); or the wp-customize-image-reloaded.php file.

Don't forget to change the control call of My_Customize_Image_Reloaded_Control back to WP_Customize_Image_Control