-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove the folder from the sniff, and update tests.
- Loading branch information
Showing
7 changed files
with
12 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 2 additions & 1 deletion
3
WPThemeReview/Tests/CoreFunctionality/ThemeTemplatesException/attachment.inc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
// phpcs:set WPThemeReview.CoreFunctionality.PrefixAllGlobals prefixes[] my_theme | ||
// phpcs:set WPThemeReview.CoreFunctionality.PrefixAllGlobals allowed_folders[] template-parts,templates,partials | ||
<?php | ||
|
||
$my_theme_var = 123; // OK, prefixed. | ||
$var = 'Value'; // OK, template file. | ||
// phpcs:set WPThemeReview.CoreFunctionality.PrefixAllGlobals prefixes[] | ||
|
||
// phpcs:set WPThemeReview.CoreFunctionality.PrefixAllGlobals allowed_folders[] |
2 changes: 2 additions & 0 deletions
2
WPThemeReview/Tests/CoreFunctionality/ThemeTemplatesException/footer_widgets.inc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
// phpcs:set WPThemeReview.CoreFunctionality.PrefixAllGlobals prefixes[] my_theme | ||
// phpcs:set WPThemeReview.CoreFunctionality.PrefixAllGlobals allowed_folders[] template-parts,templates,partials | ||
<?php | ||
|
||
$my_theme_var = 123; // OK, prefixed. | ||
$var = 'Value'; // Error. Not in a template file. | ||
// phpcs:set WPThemeReview.CoreFunctionality.PrefixAllGlobals prefixes[] | ||
// phpcs:set WPThemeReview.CoreFunctionality.PrefixAllGlobals allowed_folders[] |
2 changes: 2 additions & 0 deletions
2
WPThemeReview/Tests/CoreFunctionality/ThemeTemplatesException/header.inc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
// phpcs:set WPThemeReview.CoreFunctionality.PrefixAllGlobals prefixes[] my_theme | ||
// phpcs:set WPThemeReview.CoreFunctionality.PrefixAllGlobals allowed_folders[] template-parts,templates,partials | ||
<?php | ||
|
||
$my_theme_var = 123; // OK, prefixed. | ||
$var = 'Value'; // Error. Not in a template file. | ||
// phpcs:set WPThemeReview.CoreFunctionality.PrefixAllGlobals prefixes[] | ||
// phpcs:set WPThemeReview.CoreFunctionality.PrefixAllGlobals allowed_folders[] |
2 changes: 2 additions & 0 deletions
2
WPThemeReview/Tests/CoreFunctionality/ThemeTemplatesException/partials/post-edit.inc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
// phpcs:set WPThemeReview.CoreFunctionality.PrefixAllGlobals prefixes[] my_theme | ||
// phpcs:set WPThemeReview.CoreFunctionality.PrefixAllGlobals allowed_folders[] template-parts,templates,partials | ||
<?php | ||
|
||
$my_theme_var = 123; // OK, prefixed. | ||
$var = 'Value'; // OK, template file. | ||
// phpcs:set WPThemeReview.CoreFunctionality.PrefixAllGlobals prefixes[] | ||
// phpcs:set WPThemeReview.CoreFunctionality.PrefixAllGlobals allowed_folders[] |
2 changes: 2 additions & 0 deletions
2
WPThemeReview/Tests/CoreFunctionality/ThemeTemplatesException/social-share.inc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
// phpcs:set WPThemeReview.CoreFunctionality.PrefixAllGlobals prefixes[] my_theme | ||
// phpcs:set WPThemeReview.CoreFunctionality.PrefixAllGlobals allowed_folders[] template-parts,templates,partials | ||
<?php | ||
|
||
$my_theme_var = 123; // OK, prefixed. | ||
$var = 'Value'; // Error. Not in a template file. | ||
// phpcs:set WPThemeReview.CoreFunctionality.PrefixAllGlobals prefixes[] | ||
// phpcs:set WPThemeReview.CoreFunctionality.PrefixAllGlobals allowed_folders[] |