=== Jeet Sanwal ALT Context Helper ===
Contributors: jeetsanwal
Tags: alt text, accessibility, images, editorial
Requires at least: 6.5
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 1.0.5
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Review saved images in context, distinguish missing and intentionally empty ALT, and change one occurrence with a preview.

== Description ==

The same photograph can need different alternative text on two pages. A decorative image may need an intentionally empty ALT instead. Editing the Media Library ALT does not reliably update existing saved occurrences.

Jeet Sanwal ALT Context Helper adds Tools > ALT Context Helper. Choose a post or page and review its saved images alongside nearby text and captions. Missing ALT, empty ALT and existing text are separate review states. The tool does not declare every empty ALT an error.

For a supported occurrence, choose descriptive text or intentionally empty text. Preview the current and proposed values, then confirm that single change. Media Library metadata and other occurrences are not updated by this plugin. WordPress's normal content-save hooks and sanitization still run.

Features:

* Browse posts and pages in batches of 20 candidates, with a literal text filter applied only to editable content in the current batch.
* Review 25 image occurrences per page with nearby saved text and captions.
* Deliberate per-occurrence corrections, with preview before saving.
* Preserve existing block delimiters, JSON attributes, and unrelated markup during the proposed edit.
* Warn about images inside links, where an accessible link name still matters.
* Check administrator and edit-post permissions, a POST nonce, content version and another editor's post lock.
* Use normal WordPress saving and enabled revisions.
* With optional installation reports off, no frontend assets, ads, telemetry, account or remote scanning service.

Supported editing in version 1.0:

* Ordinary core Image blocks, including modern galleries whose children are Image blocks.
* Supported core wrappers: Group, Columns, Column, Gallery and Details.
* Classic saved HTML, Classic blocks and Custom HTML blocks.

Conservative limits:

* Saved post_content only; posts and pages only. It does not render blocks, shortcodes, content filters or builder output while reviewing.
* Custom/dynamic block images, Cover/Media & Text images, legacy gallery markup, bound ALT and separately saved decorative settings are read-only. Change those in their original editor.
* Synced patterns, templates, CSS background images, featured images and images generated by themes/plugins are outside the review. Builder metadata is not read or changed.
* Shortcode-like content makes occurrences read-only, because generated output may differ.
* The tool checks up to 1 MB and the first 1,000 saved images per post. An incomplete review or unusual block syntax disables edits. A 20,000-token / 100-block-depth guard bounds parsing work.
* Nearby text is an excerpt, not a rendered page or a complete accessible-name calculation. A person must decide whether ALT is appropriate.
* Automatic thumbnails load only same-origin raster image URLs under the site's uploads URL, without a query string. External/CDN images remain listed as text, with no automatic preview.
* Save-version checks reject an already-saved change; a small race with another WordPress save outside the plugin can still exist. Avoid editing the same post in two places simultaneously. Plugin writes themselves are serialized.

No accessibility score, WCAG certification, image recognition or blanket Media Library ALT replacement is provided. Review the page and its editor after saving.

== Installation ==

1. Upload the jeet-alt-context-helper folder to wp-content/plugins, or install its ZIP through Plugins > Add New > Upload Plugin.
2. Activate Jeet Sanwal ALT Context Helper.
3. Open Tools > ALT Context Helper as an administrator.
4. Choose a post or page, review an occurrence, preview a change and confirm it.
5. Check the page preview and block editor after saving. Revisions are available when enabled for that content type.

== Frequently Asked Questions ==

= Does it fill every missing ALT automatically? =

No. Context and purpose matter. You deliberately choose descriptive text or intentionally empty text for one saved occurrence.

= Is every empty ALT a problem? =

No. Empty ALT can be correct for decorative or redundant images. Linked images also need an understandable accessible link name. The screen helps a person review this; it does not infer intent.

= Does it update Media Library ALT or all uses of a photo? =

No. Only the selected saved occurrence is changed by the plugin. Other plugins and normal WordPress save hooks may apply their usual processing.

= Will it fix Elementor, Cover blocks or theme-generated images? =

No. Builder metadata, generated images, custom/dynamic blocks and additional ALT settings must be reviewed in their original editor. The screen reports saved IMG tags only, and unsupported block shapes are read-only.

= Where is information sent? =

With optional installation reports off, the plugin has no remote service or telemetry and does not make HTTP scan requests. Its admin screen can display ordinary same-origin uploaded raster thumbnails using the browser. It does not automatically load external image sources.

= Who can use it? =

Administrators with manage_options and permission to edit the selected post. It uses the site's existing permissions; it does not grant new capabilities.

= What happens when I delete the plugin? =

Saved ALT changes remain in post content. The plugin creates no permanent report database. Temporary per-post save locks normally disappear immediately and expire for reuse after two minutes if an interrupted save leaves one behind. Deleting the plugin removes interrupted-save locks for the current site.

= How do updates work? =

This is a self-hosted ZIP release. Download an update from jeetsanwal.in and replace the installed plugin through WordPress. No automatic updater or license key is included.

== Updating an existing installation ==

Download this plugin's individual ZIP from https://jeetsanwal.in/tools/jeet-alt-context-helper . Make a normal site backup and try the update on staging first. In WordPress, use Plugins > Add New > Upload Plugin and choose Replace current with uploaded when WordPress detects the existing installation. Keep the same plugin folder; do not uninstall/delete the plugin as an update step. Confirm the displayed version is 1.0.5, then reopen the plugin's normal screen and check one representative workflow described above. Clear relevant page caches if public output remains stale.

Updates are installed manually; a matching Update URI prevents unrelated directory plugins from replacing this package, but does not provide an update service. If replacement fails, check hosting upload limits and write permissions before retrying. To roll back, replace the plugin files with your saved previous ZIP; file replacement alone does not restore database records or deleted files. Use your site backup when data restoration is needed. Read this plugin's retention notes before deliberately uninstalling it.

Author and support: Jeet Sanwal — https://jeetsanwal.in/contact

== Optional installation reports ==

Installation reports are optional and OFF by default. Installing, activating, or using this product does not submit a report. Administrators can choose consent separately for each product under Settings > Jeet Sanwal Reports. All product features remain available with reporting off.

After explicit consent, the client sends the website URL, a random installation ID, product/WordPress/PHP versions, reported state, and an observed activation timestamp when available to https://jeetsanwal.in/api/v1/plugin-reports. While that product is active and consent remains enabled, a daily WordPress cron check-in can update its last-known status. WP-Cron depends on site traffic and hosting; it is not a continuous monitor.

Pause stops future reports without deleting records already shared. Forget requests deletion of the remote installation entry and history, retrying deletion if delivery fails. Records automatically expire after 90 days without a check-in. The plugin does not send page content, files, database exports, administrator email addresses, or raw IP addresses. Server rate limiting keeps a keyed IP hash for up to 24 hours; ordinary hosting access logs are governed separately by the privacy policy.

Review the fields and consent before enabling reporting. Read https://jeetsanwal.in/privacy for the reporting endpoint, retention, and deletion details. Reporting does not authorize remote control, automatic updates, or access to the website.

== Changelog ==

= 1.0.5 =
* Updated the product display name to Jeet Sanwal ALT Context Helper and retained the Jeet Sanwal author website.
* Added voluntary installation/status reports with per-product consent OFF by default, pause/forget controls, and documented fields and retention.
* Preserved existing identifiers, stored data, permissions, and earlier release history.


= 1.0.4 =
* Added a complete US English installation and update guide; kept documented permissions, limits and manual rollback steps.


= 1.0.3 =
* Clarified the manual replacement, verification and rollback workflow, with direct author support details.
* Rechecked package metadata, source/archive consistency and existing isolated regressions.


= 1.0.2 =
* Filter saved content only after individual edit access is confirmed; use bounded candidate batches without global search counts.

= 1.0.1 =
* Make simultaneous save-lock claims atomic and release only the exact lock owned by that request.

= 1.0.0 =
* Initial release: contextual saved-image review, deliberate occurrence changes, preview, permissions and save-version checks.
