Skip to content

Commit

Permalink
Followup 7693ed6: minor code style changes
Browse files Browse the repository at this point in the history
  • Loading branch information
oxyc committed Jan 24, 2021
1 parent b9e5cd0 commit c6b0f7e
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions src/WooCommerce.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,14 +70,16 @@ public function template(string $template): string
$themeTemplate = $this->locateThemeTemplate($template);
if (!$themeTemplate) {
return $template;
}else{
// return theme filename for status screen
if (is_admin() &&
!wp_doing_ajax() &&
get_current_screen() &&
'woocommerce_page_wc-status' === get_current_screen()->id ) {
return $themeTemplate;
}
}

// Return filename for status screen
if (
is_admin() &&
!wp_doing_ajax() &&
get_current_screen() &&
get_current_screen()->id === 'woocommerce_page_wc-status'
) {
return $themeTemplate;
}

// Include directly unless it's a blade file.
Expand Down

0 comments on commit c6b0f7e

Please sign in to comment.