Cherry pick 50923 into release/9.3 (#51035)
* 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> * Prep for cherry pick 50923 --------- Co-authored-by: Alba Rincón <albarin@users.noreply.github.com> Co-authored-by: github-actions <github-actions@github.com> Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
This commit is contained in:
parent
fe8bd470e4
commit
e158aada73
|
@ -171,6 +171,7 @@ WooCommerce comes with some sample data you can use to see how products look; im
|
|||
|
||||
= 9.3.0 2024-XX-XX =
|
||||
|
||||
* Fix - CYS - Remove usage of `prepare_item_for_response` function in `Images` endpoint. [#50923](https://github.com/woocommerce/woocommerce/pull/50923)
|
||||
* Fix - Add ability for a screen reader to announce the current tab on a single product page. [#50373](https://github.com/woocommerce/woocommerce/pull/50373)
|
||||
* Fix - Add a label to the product pagination for the woocommerce pagination [#49924](https://github.com/woocommerce/woocommerce/pull/49924)
|
||||
* Fix - Add aria-current to the current link in My Account side nav [#49800](https://github.com/woocommerce/woocommerce/pull/49800)
|
||||
|
|
|
@ -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