diff --git a/composer.json b/composer.json index f97b09b..a1200c1 100644 --- a/composer.json +++ b/composer.json @@ -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", diff --git a/composer.lock b/composer.lock index 1abe16c..56252a1 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "5d187efd7364db47641b7c2953ac3a5a", + "content-hash": "0a8cbd391fe9af059e24782cb0fe5551", "packages": [ { "name": "mustache/mustache", @@ -58,16 +58,16 @@ }, { "name": "newfold-labs/wp-module-ai", - "version": "1.1.0", + "version": "1.1.1", "source": { "type": "git", "url": "https://github.com/newfold-labs/wp-module-ai.git", - "reference": "0265f65aba98fb90ca71afe4e23b36f21c73b3c1" + "reference": "07609269d2ac113bc8276d3032c7fc4a7c072c18" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/newfold-labs/wp-module-ai/zipball/0265f65aba98fb90ca71afe4e23b36f21c73b3c1", - "reference": "0265f65aba98fb90ca71afe4e23b36f21c73b3c1", + "url": "https://api.github.com/repos/newfold-labs/wp-module-ai/zipball/07609269d2ac113bc8276d3032c7fc4a7c072c18", + "reference": "07609269d2ac113bc8276d3032c7fc4a7c072c18", "shasum": "" }, "require": { @@ -96,10 +96,10 @@ ], "description": "A module for providing artificial intelligence capabilities.", "support": { - "source": "https://github.com/newfold-labs/wp-module-ai/tree/1.1.0", + "source": "https://github.com/newfold-labs/wp-module-ai/tree/1.1.1", "issues": "https://github.com/newfold-labs/wp-module-ai/issues" }, - "time": "2024-02-01T10:19:14+00:00" + "time": "2024-02-01T14:30:52+00:00" }, { "name": "newfold-labs/wp-module-coming-soon", diff --git a/includes/Services/SiteGenService.php b/includes/Services/SiteGenService.php index 70d4477..fdc7f67 100644 --- a/includes/Services/SiteGenService.php +++ b/includes/Services/SiteGenService.php @@ -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 );