Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Content Options: Always load Featured Images functionality if we are in the Customizer but not on the front end if all the options are ticked. #6463

Merged
merged 1 commit into from Feb 28, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions modules/theme-tools/content-options.php
Expand Up @@ -85,9 +85,9 @@ function jetpack_featured_images_get_settings() {
function jetpack_featured_images_should_load() {
$opts = jetpack_featured_images_get_settings();

// If the theme doesn't support archive, post and page or if all the options are ticked, don't continue.
// If the theme doesn't support archive, post and page or if all the options are ticked and we aren't in the customizer, don't continue.
if ( ( true !== $opts['archive'] && true !== $opts['post'] && true !== $opts['page'] )
|| ( 1 === $opts['archive-option'] && 1 === $opts['post-option'] && 1 === $opts['page-option'] ) ) {
|| ( 1 === $opts['archive-option'] && 1 === $opts['post-option'] && 1 === $opts['page-option'] && ! is_customize_preview() ) ) {
return false;
}

Expand Down