=== Alexibility Fixes ===
Contributors: alexibility
Tags: accessibility, wcag, ada, alt text, a11y
Requires at least: 6.2
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 0.5.1
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Applies accessibility fixes prepared and approved by Alexibility, with a preview and one-click rollback.

== Description ==

Alexibility scans your site and a specialist reviews every fix. The fixes reach your site in one of two ways:

* You approve the Alexibility workbench's access on WordPress's own "Authorize application" screen, and the
  workbench sends the approved fixes, previews them and applies them for you. You can revoke its access any
  time under Users → Profile → Application Passwords.
* Or you receive a fixes.json file, upload it under Tools → Accessibility Fixes, review what will change, and
  press Apply.

Fixes saved into your site (they stay even if you remove the plugin):

* Image descriptions (alt text) in the media library and in existing pages, posts and block templates.
* Names for icon-only links and buttons and unlabeled form fields in saved content.

Theme-level fixes applied while pages are displayed (no JavaScript, no toolbar):

* Page language, a "Skip to content" link, visible keyboard focus and readable text contrast.
* Alt text and names for images and controls your theme outputs.
* Markup the Alexibility scanner tested in your pages: old align attributes, tabs marked as buttons, and a second
  banner landmark inside the content.

Accessible copies of your PDFs (tagged, titled, with a language and descriptions) replace the originals at the same
addresses, so every link keeps working. A file is replaced only if it is still exactly the one Alexibility checked,
the original is kept in a backup folder in uploads, and Tools → Accessibility Fixes puts the originals back with one
click.

Every content change is logged with its previous value and WordPress keeps a revision, so a run can be rolled
back. A page someone edited after the fix is never overwritten.

When the fixes change (applied, rolled back, switched on or off), the plugin asks the page cache to start over, so
visitors get the new pages: Nginx Helper, LiteSpeed Cache, WP Rocket, W3 Total Cache, WP Super Cache, WP Fastest
Cache, Cache Enabler, Breeze, Hummingbird, SiteGround Speed Optimizer, Pantheon, SpinupWP and WP Engine. Another
cache can hook into the alexibility_fixes_purge_cache action.

If you turn it on under Tools → Accessibility Fixes, the plugin shows a small "Accessibility by Alexibility" badge at
the bottom of each page, linking to your accessibility statement. It is off until you do. The plugin makes no outside
connections: the workbench calls the site, never the other way round.

== Changelog ==

= 0.5.1 =
* Adds the fixes' CSS and the badge's CSS through WordPress's style functions instead of printing style tags.
* Uses the plugin's full prefix for its constants, temporary notices, error codes and CSS classes. To change the badge's brand in wp-config.php, define ALEXIBILITY_FIXES_BRAND_NAME and ALEXIBILITY_FIXES_BRAND_URL.

= 0.5.0 =
* Replaces PDFs with the accessible copies Alexibility made, at the same addresses, from the workbench (media library items and files in the uploads folder). A file someone changed since the audit is left alone. The originals are kept in a backup folder and can be put back from Tools → Accessibility Fixes or the workbench.

= 0.4.1 =
* Purges the page cache after the fixes change, so visitors don't keep getting pages from before an apply.
* Adds a short stamp of the current fixes to each page (a meta tag), so the workbench can tell when a cache still serves an older page.

= 0.4.0 =
* Markup repairs the Alexibility scanner tried in the page and kept because the failure cleared and nothing moved: removes old align attributes (or moves them to CSS as text-align), marks tabs that say they are buttons as tabs, and removes a second banner landmark inside the content. Only the align and role attributes can be changed, and only from the value the scan found.

= 0.3.0 =
* Hides icons that only repeat their link's or button's name from screen readers (aria-hidden).
* Fills an empty alt on an image that is a link's only content, when the fix gives it text.
* Layout repairs the Alexibility scanner checked in the page: more room around small controls, a box for links with no size of their own, and a background colour behind text on photos. Only spacing, display and background-colour values are accepted.

= 0.2.2 =
* Clearer names for the plugin's functions and a simpler database query, after a Plugin Check review. No change in behavior.

= 0.2.1 =
* The footer badge is off until the site turns it on.

= 0.2.0 =
* REST routes for the Alexibility workbench (status, preview, apply, rollback), for administrators only.

= 0.1.0 =
* First release.
