CYS - Remove usage of `prepare_item_for_response` function in `Images` endpoint (#50923)
* Remove usage of `prepare_item_for_response` function * Add changefile(s) from automation for the following project(s): woocommerce --------- Co-authored-by: github-actions <github-actions@github.com>
This commit is contained in:
parent
e6b1cac49c
commit
9e40710482
|
@ -0,0 +1,4 @@
|
|||
Significance: minor
|
||||
Type: fix
|
||||
|
||||
CYS - Remove usage of `prepare_item_for_response` function in `Images` endpoint.
|
|
@ -65,13 +65,10 @@ class Images extends AIEndpoint {
|
|||
|
||||
if ( $last_business_description === $business_description ) {
|
||||
return rest_ensure_response(
|
||||
$this->prepare_item_for_response(
|
||||
array(
|
||||
'ai_content_generated' => true,
|
||||
'images' => array(),
|
||||
),
|
||||
$request
|
||||
)
|
||||
array(
|
||||
'ai_content_generated' => true,
|
||||
'images' => array(),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue