Skip to content

Commit

Permalink
add comments
Browse files Browse the repository at this point in the history
  • Loading branch information
scruffian authored and draganescu committed Oct 3, 2023
1 parent 7c7fdfd commit 3521d12
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 3521d12

Please sign in to comment.