Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix CI linting issues #2041

Merged
merged 1 commit into from
Sep 8, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion inc/nux/class-storefront-nux-starter-content.php
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,9 @@ public function starter_content() {
$starter_content['posts'] = array_merge( $starter_content['posts'], $starter_content_wc_pages );
}

// Register support for starter content.
/**
* Register support for starter content.
*/
add_theme_support( 'starter-content', apply_filters( 'storefront_starter_content', $starter_content ) );
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -758,7 +758,9 @@ function storefront_single_product_pagination() {
return;
}

// Show only products in the same category?
/**
* Show only products in the same category?
*/
$in_same_term = apply_filters( 'storefront_single_product_pagination_same_category', true );
$excluded_terms = apply_filters( 'storefront_single_product_pagination_excluded_terms', '' );
$taxonomy = apply_filters( 'storefront_single_product_pagination_taxonomy', 'product_cat' );
Expand Down
8 changes: 8 additions & 0 deletions phpcs.xml
Original file line number Diff line number Diff line change
Expand Up @@ -57,4 +57,12 @@
<rule ref="Generic.Arrays.DisallowShortArraySyntax.Found">
<exclude-pattern>src/*</exclude-pattern>
</rule>

<rule ref="WooCommerce.Commenting.CommentHooks.MissingHookComment">
<exclude-pattern>*</exclude-pattern>
</rule>

<rule ref="WooCommerce.Commenting.CommentHooks.MissingSinceComment">
<exclude-pattern>*</exclude-pattern>
</rule>
</ruleset>