Skip to content

Commit

Permalink
fix: alt text generated twice unnecessarily
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaucau committed Jan 24, 2024
1 parent 474cb50 commit f5659c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/Api.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public function generate_alt_text( WP_REST_Request $request ): WP_REST_Response|
return new WP_REST_Response(
[
'img_id' => $attachment_id,
'alt' => AltGenerator::generate_alt_text( $attachment_id ),
'alt' => $alt_text,
]
);
}
Expand Down

0 comments on commit f5659c2

Please sign in to comment.