-
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.
- Loading branch information
Showing
10 changed files
with
48 additions
and
44 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
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
7 changes: 7 additions & 0 deletions
7
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
// phpcs:set WPThemeReview.CoreFunctionality.PrefixAllGlobals prefixes[] my_theme | ||
<?php | ||
|
||
$my_theme_var = 123; // OK, prefixed. | ||
$var = 'Value'; // OK, template file. | ||
// phpcs:set WPThemeReview.CoreFunctionality.PrefixAllGlobals prefixes[] | ||
|
3 changes: 1 addition & 2 deletions
3
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,7 +1,6 @@ | ||
<!-- Annotation has to be on the second line as errors are thrown on line 1 and errors on annotation lines are ignored. --> | ||
// phpcs:set WPThemeReview.CoreFunctionality.PrefixAllGlobals prefixes[] my_theme | ||
<?php | ||
|
||
$my_theme_var = 123; // OK, prefixed. | ||
$var = 'Value'; // Error. | ||
$var = 'Value'; // Error. Not in a template file. | ||
// phpcs:set WPThemeReview.CoreFunctionality.PrefixAllGlobals prefixes[] |
5 changes: 2 additions & 3 deletions
5
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,7 +1,6 @@ | ||
<!-- Annotation has to be on the second line as errors are thrown on line 1 and errors on annotation lines are ignored. --> | ||
// phpcs:set WPThemeReview.CoreFunctionality.PrefixAllGlobals prefixes[] my_theme | ||
<?php | ||
|
||
$title = 'Value'; // OK, template file. | ||
$my_theme_var = 123; // OK, prefixed. | ||
$var = 'Value'; // Error. Not in a template file. | ||
// phpcs:set WPThemeReview.CoreFunctionality.PrefixAllGlobals prefixes[] | ||
|
1 change: 0 additions & 1 deletion
1
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
1 change: 0 additions & 1 deletion
1
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
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