Skip to content

Commit

Permalink
Merge pull request #40 from newfold-labs/release/1.0.0
Browse files Browse the repository at this point in the history
Bump AI and handle generatedImages in homepage response
  • Loading branch information
arunshenoy99 authored Feb 1, 2024
2 parents 31c4a51 + b27b01a commit 9b97cc7
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 9 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"require": {
"newfold-labs/wp-module-installer": "^1.1",
"newfold-labs/wp-module-patterns": "^0.1.13",
"newfold-labs/wp-module-ai": "^1.1.0",
"newfold-labs/wp-module-ai": "^1.1.1",
"wp-forge/wp-upgrade-handler": "^1.0",
"mustache/mustache": "^2.14",
"newfold-labs/wp-module-data": "^2.4.18",
Expand Down
14 changes: 7 additions & 7 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion includes/Services/SiteGenService.php
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,9 @@ public static function process_homepages_response(
$version_number = $last_version_number + 1;

foreach ( $homepages as $slug => $data ) {

if ( ! preg_match( '/homepage(\d+)$/', $slug ) ) {
continue;
}
// Select a random palette and check against the parent's palette.
$palette_index = array_rand( $color_palettes );
$selected_palette = self::transform_palette( $color_palettes[ $palette_index ], $palette_index );
Expand Down

0 comments on commit 9b97cc7

Please sign in to comment.