Skip to content

Commit

Permalink
add comments
Browse files Browse the repository at this point in the history
  • Loading branch information
scruffian committed Sep 27, 2023
1 parent b9f8359 commit e52b906
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,11 @@ function injectThemeAttributeInBlockTemplateContent(
}

function preparePatterns( patterns, template, currentThemeStylesheet ) {
// This is duplicated.
// Filter out duplicates.
const filterOutDuplicatesByName = ( currentItem, index, items ) =>
index === items.findIndex( ( item ) => currentItem.name === item.name );

// Filter out core patterns.
const filterOutCorePatterns = ( pattern ) =>
! PATTERN_CORE_SOURCES.includes( pattern.source );

Expand Down

0 comments on commit e52b906

Please sign in to comment.