=== Vinny Connect ===
Contributors: pbpyrojust
Tags: seo, accessibility, alt text, meta description
Requires at least: 6.2
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 1.4.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Applies the fixes you approve in Vinny: titles, descriptions, alt text, social previews and structured data. Every change can be undone.

== Description ==

Vinny (https://vinny.justwhat.net) scans your site for accessibility, SEO and security problems. Its agent writes exact fixes for page titles, meta descriptions, image alt text, social previews, main headings, link labels and structured data. You review, edit and approve them in Vinny; this plugin applies the approved ones to WordPress, and undoes any of them when you ask. It doesn't scan your site itself: the scans happen in Vinny.

* Titles and descriptions go into Yoast SEO, Rank Math or SEOPress when one is active, otherwise into this plugin's own fields, which it outputs on the page.
* Alt text goes on the image in the Media Library and on the image tags in the page's content (WordPress keeps a revision).
* Social share titles and descriptions go into your SEO plugin's social fields, or this plugin outputs og: and twitter: tags itself.
* Structured data (schema.org JSON-LD for your business) is output on your home page, re-encoded so nothing in it can break the page.
* Main headings and link labels are fixed in the page content (WordPress keeps a revision) and, for icon-only menu links, through the menu's own attributes.
* Nothing changes until you approve it in Vinny.
* Dry run: before approving, Vinny can ask the site exactly which fields each change would touch, what they hold now and what they'll hold after. Nothing is written.
* Optional approval in WordPress: changes approved in Vinny wait under Settings → Vinny Connect, with a dry run of each, until an administrator approves or declines them there.
* Progress notices across wp-admin, a status panel, a Site Health check, and a log of everything it did (with an Errors view, CSV download and Clear).

== External services ==

This plugin connects to Vinny (https://vinny.justwhat.net), run by JustWhat. When you connect, and every 5 minutes after, it sends your site address, WordPress, PHP and plugin versions and which SEO plugin is active, and receives the changes you approved. It reports each result, with the value it replaced so the change can be undone. Twice a day at most it reads https://vinny.justwhat.net/downloads/vinny-connect.json to offer plugin updates. Vinny's servers also call this site's /wp-json/vinny-connect/v1/ endpoints to confirm the connection, to ask for an immediate sync and to ask for a dry run of changes (which writes nothing); all of them refuse anything not signed with your key. Terms: https://vinny.justwhat.net/legal/terms/ Privacy: https://vinny.justwhat.net/legal/privacy/

== Installation ==

1. Upload and activate the plugin.
2. In Vinny, open your site, then Vinny agent, and make a connect key.
3. Paste it under Settings → Vinny Connect and choose Connect.

== Changelog ==

= 1.4.0 =
* Dry run: Vinny can preview exactly what each change would do on your site before you approve it. Changes to the same page preview in order.
* Optional approval in WordPress, with a dry run of each waiting change; approve, approve all or decline. Undos wait too.
* Notices in wp-admin after changes are applied, when changes wait for approval and when Vinny can't be reached.
* Status panel, Site Health check, and a fuller log (200 entries, errors view, CSV download, clear).
* Results that couldn't be sent to Vinny are kept and sent with the next check.

= 1.3.0 =
* Main headings: a page with none gets its first sub-heading promoted; extra main headings in the content become sub-headings.
* Labels for links with no text (icon links): on the link in the page content, on Social Icon blocks and on icon-only menu items.
* Undo for content changes restores the page exactly, and refuses if the page was edited since.

= 1.2.0 =
* Updates itself: new versions from Vinny appear on the Plugins screen, with automatic updates if you switch them on.

= 1.1.0 =
* Social share previews (og:title, og:description) and home page structured data, both undoable.

= 1.0.0 =
* First release: titles, meta descriptions and image alt text, applied and undone.
