Skip to content

Commit

Permalink
Fix for WP 4.7 is_page_template() bug with older themes
Browse files Browse the repository at this point in the history
  • Loading branch information
themeblvd committed Jan 10, 2017
1 parent 4064480 commit 73e1d2b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/legacy.php
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,7 @@ function themeblvd_builder_elements( $layout_id, $location ) {
function themeblvd_builder_legacy_config( $config ) {

// Layout setup, taking into account elements attached to post
if ( ( ! $config['builder'] || $config['builder'] == 'error' ) && is_page_template('template_builder.php') ) {
if ( ( ! $config['builder'] || $config['builder'] == 'error' ) && is_page_template( 'template_builder.php' ) && ! is_search() && ! is_archive() ) {

// Setup
$config['builder'] = true;
Expand Down

0 comments on commit 73e1d2b

Please sign in to comment.