Skip to content

Commit

Permalink
#2873 added fallback for amp design selector
Browse files Browse the repository at this point in the history
  • Loading branch information
ajeetku committed Feb 8, 2019
1 parent 3328eb2 commit e48ed19
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion templates/design-manager.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,9 @@ function ampforwp_design_selector() {
return $redux_builder_amp['amp-design-selector'];
}
else {
return $redux_builder_amp['amp-design-selector'];
if(file_exists(WP_PLUGIN_DIR.'/'.$redux_builder_amp['amp-design-selector'].'/functions.php')){
return $redux_builder_amp['amp-design-selector'];
}else{ return 4; }
}
return 2;
}
Expand Down

0 comments on commit e48ed19

Please sign in to comment.