Thread Starter
nodots
(@nodots)
Thanks a lot! Looks like a good comprehensive example.
Thread Starter
nodots
(@nodots)
Found the bug. From line 566 onwards:
if( isset( $wp_query->query_vars['preview'] ) && $wp_query->query_vars['preview'])
$is_preview = 'true';
else
$is_preview = 'false';
Remove the single quotes around the values in the $is_preview assignment, i.e. making it a bool instead of a string.
Thread Starter
nodots
(@nodots)
Same problem on default theme.