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 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