Skip to content

Translate: Remove the unused ajax-fetch-openai-review.php endpoint - #752

Closed
ocean90 wants to merge 1 commit into
WordPress:trunkfrom
ocean90:remove-unused-openai-review-endpoint
Closed

Translate: Remove the unused ajax-fetch-openai-review.php endpoint#752
ocean90 wants to merge 1 commit into
WordPress:trunkfrom
ocean90:remove-unused-openai-review-endpoint

Conversation

@ocean90

@ocean90 ocean90 commented Jul 30, 2026

Copy link
Copy Markdown
Member

wporg-gp-translation-suggestions/ajax-fetch-openai-review.php is a standalone,
directly-requestable endpoint that is not referenced by any code.

It was added in 5e89dcf (2023-06-06) as a "slim admin-ajax" variant for
fetching a ChatGPT review and last touched in 221eb5c (2024-06-17), but nothing
ever wired to it:

The file has been unreferenced since it landed, so this removes dead code. No
functional change.

This standalone endpoint is not referenced by any code. The editor's OpenAI
auto-review was switched to a direct streaming request in gp-translation-helpers,
and OpenAI suggestions are served by the `-get-tm-openai-suggestions` route,
leaving this file as dead code.
@github-actions

Copy link
Copy Markdown

The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the props-bot label.

Core Committers: Use this line as a base for the props when committing in SVN:

Props ocean90.

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.

@bazza bazza closed this in 4c097f2 Jul 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant