Skip to content

Commit 78fc9ba

Browse files
authored
Merge branch 'develop' into fix_461
2 parents 15a1cd9 + 4dfac5d commit 78fc9ba

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

WordPressVIPMinimum/Sniffs/Files/IncludingFileSniff.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ class IncludingFileSniff extends AbstractFunctionRestrictionsSniff {
3131
'get_stylesheet_directory',
3232
'get_template_directory',
3333
'locate_template',
34+
'get_parent_theme_file_path',
3435
];
3536

3637
/**

WordPressVIPMinimum/Tests/Files/IncludingFileUnitTest.inc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ require dirname( __FILE__ ) . '/my_file.php' );
1212
require dirname( __FILE__, 2 ) . '/my_file.php' );
1313
require dirname( dirname( __FILE__ ) ) . '/my_file.php' );
1414
require dirname( dirname( __DIR__ ) ) . '/my_file.php' );
15+
require_once( get_parent_theme_file_path( '/my_file.php' ); );
1516

1617
// Warnings.
1718
include ( MY_CONSTANT . "my_file.php" ); // Custom constant.

WordPressVIPMinimum/Tests/Files/IncludingFileUnitTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@ class IncludingFileUnitTest extends AbstractSniffUnitTest {
2222
*/
2323
public function getErrorList() {
2424
return [
25-
23 => 1,
2625
24 => 1,
2726
25 => 1,
2827
26 => 1,
2928
27 => 1,
29+
28 => 1,
3030
];
3131
}
3232

@@ -37,10 +37,10 @@ public function getErrorList() {
3737
*/
3838
public function getWarningList() {
3939
return [
40-
17 => 1,
4140
18 => 1,
4241
19 => 1,
4342
20 => 1,
43+
21 => 1,
4444
];
4545
}
4646

0 commit comments

Comments
 (0)