Skip to content

Commit

Permalink
Merge pull request #302 from newfold-labs/fix/defensive-checks-patterns
Browse files Browse the repository at this point in the history
Add Defensive checks in Patterns Data class
  • Loading branch information
mr-vara authored Sep 26, 2023
2 parents 6516fef + c0ebb54 commit bf853bb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions includes/Data/Patterns.php
Original file line number Diff line number Diff line change
Expand Up @@ -358,6 +358,7 @@ public static function get_theme_step_patterns_from_step( $step, $squash = false
}

$pattern_slugs = self::get_theme_step_patterns()[ $active_theme ][ $step ];
$block_patterns = $squash ? '' : array();

foreach ( array_keys( $pattern_slugs ) as $pattern_slug ) {
if ( true !== $pattern_slugs[ $pattern_slug ]['active'] ) {
Expand Down

0 comments on commit bf853bb

Please sign in to comment.