Skip to content

Commit 0f4d7f7

Browse files
committed
passing locale for regenerate homepage
1 parent 53b0728 commit 0f4d7f7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

includes/RestApi/SiteGenController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ public function regenerate_homepage( \WP_REST_Request $request ) {
290290
if ( $is_favorite ) {
291291
$result = SiteGenService::regenerate_favorite_homepage( $slug, $color_palette );
292292
} else {
293-
$result = SiteGenService::regenerate_homepage( $site_description, $content_style, $target_audience );
293+
$result = SiteGenService::regenerate_homepage( $site_description, $content_style, $target_audience, $locale );
294294
}
295295

296296
if ( null === $result ) {

0 commit comments

Comments
 (0)