From a66033a00f357b6554d136aefad29833a8ec2a8e Mon Sep 17 00:00:00 2001 From: Darin Kotter Date: Mon, 12 Feb 2024 10:50:10 -0700 Subject: [PATCH] Ensure the stand-alone Generate Image page loads under the media grid mode --- includes/Classifai/Features/ImageGeneration.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/Classifai/Features/ImageGeneration.php b/includes/Classifai/Features/ImageGeneration.php index a55f39870..b617dc596 100644 --- a/includes/Classifai/Features/ImageGeneration.php +++ b/includes/Classifai/Features/ImageGeneration.php @@ -137,7 +137,7 @@ public function register_generate_media_page() { $number_of_images > 1 ? esc_html__( 'Generate Images', 'classifai' ) : esc_html__( 'Generate Image', 'classifai' ), $number_of_images > 1 ? esc_html__( 'Generate Images', 'classifai' ) : esc_html__( 'Generate Image', 'classifai' ), 'upload_files', - esc_url( admin_url( 'upload.php?action=classifai-generate-image' ) ), + esc_url( admin_url( 'upload.php?action=classifai-generate-image&mode=grid' ) ), '' ); }