Skip to content

Commit

Permalink
Fix linting errors and warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
jffng committed Dec 16, 2022
1 parent c88af8b commit cce171a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ public function get_theme_items( $request ) {
// This endpoint only supports the active or parent theme for now.
return new WP_Error(
sprintf( '%s', $request['template'] ),
__( 'Theme not found.' ),
__( 'Theme not found.', 'gutenberg' ),
array( 'status' => 404 )
);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ public static function get_style_variations() {
$variation_files = static::recursively_iterate_JSON( $base_directory );
if ( $template_directory !== $base_directory && is_dir( $template_directory ) ) {
$variation_files_parent = static::recursively_iterate_JSON( $template_directory );
// If the child and parent variation file basename are the same, only include the child theme's
// If the child and parent variation file basename are the same, only include the child theme's.
foreach ( $variation_files_parent as $parent_path => $parent ) {
foreach ( $variation_files as $child_path => $child ) {
if ( basename( $parent_path ) === basename( $child_path ) ) {
Expand Down

1 comment on commit cce171a

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Flaky tests detected.
Some tests passed with failed attempts. The failures may not be related to this commit but are still reported for visibility. See the documentation for more information.

🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/3715326871
📝 Reported issues:

Please sign in to comment.