WordPress 4.6 Fatal error: Cannot redeclare the_post_thumbnail_caption()

When updating one of my websites to WordPress 4.6, I got a fatal error. The error is as following:

Fatal error: Cannot redeclare the_post_thumbnail_caption() (previously declared in /home/ public_html/wp-includes/post-thumbnail-template.php:244) in /home/ public_html/wp-content/themes/wharton/framework/default.php on line 157

Continue reading “WordPress 4.6 Fatal error: Cannot redeclare the_post_thumbnail_caption()”