Skip to content

Commit

Permalink
Minor changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
smarteist committed Jan 5, 2021
1 parent 6351c74 commit ea13432
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "hexbit/sage-woocommerce",
"description": "Woocommerce support for sage 10",
"version": "1.0.0",
"version": "1.0.1",
"keywords": [
"hexbit",
"smarteist",
Expand Down
2 changes: 1 addition & 1 deletion src/Providers/WooCommerceServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public function boot()
// publishing command
$this->publishes([
dirname(__DIR__) . '/Publishes/app/woocommerce.php' => $this->app->path('woocommerce.php'),
dirname(__DIR__) . '/Publishes/resources/views' => $this->app->resourcePath('views'),
dirname(__DIR__) . '/Publishes/resources/views/woocommerce' => $this->app->resourcePath('views/woocommerce'),
], 'woocommerce');

}
Expand Down
3 changes: 1 addition & 2 deletions src/WooCommerce.php
Original file line number Diff line number Diff line change
Expand Up @@ -109,13 +109,12 @@ public function templateInclude(string $template)
*/
public function getTemplate(string $template, string $templateName, array $args)
{
$themeTemplate = $this->locateThemeTemplate($templateName);

// return theme filename for status screen
if (is_admin() &&
!wp_doing_ajax() &&
get_current_screen() &&
get_current_screen()->id === 'woocommerce_page_wc-status') {
$themeTemplate = $this->locateThemeTemplate($templateName);
return $themeTemplate ?: $template;
}

Expand Down

0 comments on commit ea13432

Please sign in to comment.