Repository navigation
Background queue, decorative detection, spending controls, content alt fill, output language - #2
Merged
Merged
Conversation
…t alt fill, and output language
- Fill empty alt attributes in post content from the Media Library at
render time (wp_content_img_tag, WP 6.0+); posts are not modified and
author-written alt text is never replaced.
- Generate alt text and titles in the site language, the attachment's
Polylang/WPML language, or a language chosen in Settings
(everyalt_output_locale filter).
- Background queue (post meta jobs, no custom table) worked by WP-Cron and
by any open EveryAlt page, under an atomic lock. Retries with backoff;
pauses without consuming retries when the key is missing or the spending
limit is reached. Uploads queue by default ("immediate" still available).
Bulk tabs gain "Generate for all".
- Decorative image detection: the model may answer DECORATIVE for clearly
decorative images; alt is left empty on purpose, flagged, excluded from
bulk, and shown in Review with "Describe anyway".
- Spending controls: per-month and per-model estimated spend on Logs,
optional monthly limit that pauses generation with an admin notice.
- build.sh: parse shields-escaped pre-release versions from the README badge.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
altattributes in post content are filled from the Media Library at render time (wp_content_img_tag, WP 6.0+). Posts aren't modified; author-written alt is never replaced. Setting: Existing posts (default on).everyalt_output_localefilter.DECORATIVEfor clearly decorative images; alt stays empty on purpose (WCAG), image is flagged, excluded from bulk, shown in Review with Describe anyway.build.shparses shields-escaped pre-release versions (e.g.1.1.0-beta.1).Testing
End-to-end in WordPress Playground (real WP, SQLite) with a stubbed AI provider:
Not yet tested: real provider responses; WP-Cron on a normal host.
Test plan
🤖 Generated with Claude Code