Skip to content

Remove stray "AI" references from UI labels and buttons#320

Merged
dkotter merged 4 commits intoWordPress:developfrom
raftaar1191:fix/remove-ai-from-ui-labels
Mar 19, 2026
Merged

Remove stray "AI" references from UI labels and buttons#320
dkotter merged 4 commits intoWordPress:developfrom
raftaar1191:fix/remove-ai-from-ui-labels

Conversation

@raftaar1191
Copy link
Contributor

@raftaar1191 raftaar1191 commented Mar 18, 2026

What does this PR do?

Removes explicit "AI" text from user-facing labels, headings, and buttons across three areas of the plugin, per #310.

Changes

  • Media Library (attachment edit screen + media modal): "AI Alt Text" label → "Alt Text"
  • Post editor image block (inspector panel): "AI Alternative Text" heading → "Alternative Text"
  • Post editor summarization (sidebar + toolbar): "Generate AI Summary" / "Re-generate AI Summary""Generate Summary" / "Re-generate Summary"
  • E2E tests: updated toHaveText assertions and comments to match new button text

Proof:

Alt Text Generation:

image image

Content Summarization

image

Related issue

Fixes #310

Use of AI Tools

Used VS Code running Sonnet 4.6

Open WordPress Playground Preview

Removes explicit "AI" text from user-facing labels, headings, and
buttons across three areas of the plugin, per WordPress#310:

- Media Library: "AI Alt Text" meta box title and modal field label → "Alt Text"
- Post editor image block: "AI Alternative Text" heading → "Alternative Text"
- Post editor summarization buttons: "Generate AI Summary" /
  "Re-generate AI Summary" → "Generate Summary" / "Re-generate Summary"
- E2E test assertions updated to match new button text

Fixes WordPress#310
@github-actions
Copy link

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.

If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.

Co-authored-by: raftaar1191 <raftaar1191@git.wordpress.org>
Co-authored-by: jeffpaul <jeffpaul@git.wordpress.org>

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

@jeffpaul jeffpaul requested review from dkotter and jeffpaul March 18, 2026 21:15
@jeffpaul jeffpaul added this to the 0.6.0 milestone Mar 18, 2026
@codecov
Copy link

codecov bot commented Mar 18, 2026

Codecov Report

❌ Patch coverage is 0% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 57.05%. Comparing base (71f393a) to head (5950f5c).
⚠️ Report is 5 commits behind head on develop.

Files with missing lines Patch % Lines
...iments/Alt_Text_Generation/Alt_Text_Generation.php 0.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             develop     #320   +/-   ##
==========================================
  Coverage      57.05%   57.05%           
  Complexity       591      591           
==========================================
  Files             42       42           
  Lines           3083     3083           
==========================================
  Hits            1759     1759           
  Misses          1324     1324           
Flag Coverage Δ
unit 57.05% <0.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@jeffpaul
Copy link
Member

jeffpaul commented Mar 18, 2026

Post editor image block (inspector panel): "AI Alternative Text" heading → "Alternative Text"

In reviewing this, we can likely just remove this heading as the same one appears just above and should suffice for the alt text textarea and our (re)generate button:

Screenshot 2026-03-18 at 4 54 01 PM

Post editor summarization (sidebar + toolbar): "Generate AI Summary" / "Re-generate AI Summary" → "Generate Summary" / "Re-generate Summary"

Let's go ahead and also remove the ", generated by AI" bit of the helper text as well:

Screenshot 2026-03-18 at 4 55 20 PM

@raftaar1191
Copy link
Contributor Author

raftaar1191 commented Mar 19, 2026

@jeffpaul Updated the PR as per your latest comment

Proof:

Alt Text Generation:

image

Content Summarization

image

@dkotter dkotter merged commit 561768c into WordPress:develop Mar 19, 2026
18 of 19 checks passed
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.

Remove stray "AI" references from UI

3 participants