Skip to content

Commit 1c31423

Browse files
committed
Coding Standards: Remove stale WPThemeReview annotations in Twenty Twenty-One
Remove three `WPThemeReview.CoreFunctionality.FileInclude.FileIncludeFound` annotations. The WPThemeReview standard is not installed in WordPress Core. I believe these annotations were carried over from the upstream Twenty Twenty-One repository when the theme was imported into Core in 4b90066.
1 parent a27a47f commit 1c31423

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/wp-content/themes/twentytwentyone/classes/class-twenty-twenty-one-customize.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ public function register( $wp_customize ) {
113113

114114
// Background color.
115115
// Include the custom control class.
116-
require_once get_theme_file_path( 'classes/class-twenty-twenty-one-customize-color-control.php' ); // phpcs:ignore WPThemeReview.CoreFunctionality.FileInclude.FileIncludeFound
116+
require_once get_theme_file_path( 'classes/class-twenty-twenty-one-customize-color-control.php' );
117117

118118
// Register the custom control.
119119
$wp_customize->register_control_type( 'Twenty_Twenty_One_Customize_Color_Control' );

src/wp-content/themes/twentytwentyone/classes/class-twenty-twenty-one-dark-mode.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ public function customizer_controls( $wp_customize ) {
137137
}
138138

139139
// Custom notice control.
140-
require_once get_theme_file_path( 'classes/class-twenty-twenty-one-customize-notice-control.php' ); // phpcs:ignore WPThemeReview.CoreFunctionality.FileInclude.FileIncludeFound
140+
require_once get_theme_file_path( 'classes/class-twenty-twenty-one-customize-notice-control.php' );
141141

142142
$wp_customize->add_setting(
143143
'respect_user_color_preference_notice',

src/wp-content/themes/twentytwentyone/inc/template-functions.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ function twenty_twenty_one_get_non_latin_css( $type = 'front-end' ) {
335335

336336
// Include file if function doesn't exist.
337337
if ( ! function_exists( 'twenty_twenty_one_generate_css' ) ) {
338-
require_once get_theme_file_path( 'inc/custom-css.php' ); // phpcs:ignore WPThemeReview.CoreFunctionality.FileInclude.FileIncludeFound
338+
require_once get_theme_file_path( 'inc/custom-css.php' );
339339
}
340340

341341
// Return the specified styles.

0 commit comments

Comments
 (0)