=== Permitly ===
Contributors: ostaraventures, freemius
Tags: photo consent, youth, media library, privacy, compliance
Requires at least: 6.2
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 0.7.24
License: GPLv2 or later

Photo consent for organizations that feature children: every photo is tied to the parents' choices, and anything without consent stays off your site.

== Description ==

Camps, schools' partners, youth sports, community centers, churches and nonprofits run on photos of the kids they serve. Using a child's image without a parent's consent is a lawsuit and a broken trust waiting to happen. Permitly keeps a record of every family's choices, ties them to every photo and video on your site, and hides anything that is not cleared, automatically.

Ready for California AB 2007 (Business and Professions Code Section 18985, in effect January 1, 2027): standalone consent, consent by type of use, revocation by email for up to a year after a child leaves, and no conditioning enrollment on consent.

* Consent registry: one minimal record per child, with a yes or no for website, social, email, print and video.
* Media tagging: source, identifiable minor, which children are in frame, program and location.
* Statuses: Cleared, Needs review, Blocked, Out of scope, Revoked.
* Enforcement: uncleared images are swapped for a placeholder on in-scope pages and left out of the media picker.
* Revocations: the website stops showing the child's images at once, and staff get a dated checklist for other channels.
* Whole-site picture: how many images are live across the site, how many are cleared and how many still need review.
* Wide scan: page and post content, featured images, galleries, CSS background images, images inserted by URL, page builders, widgets, menus, theme settings, block templates, synced patterns and common sliders.
* Safe whole-site switch: before enforcing everywhere, see exactly how many images would be hidden on how many pages, and confirm. While review is in progress you can choose to hide only confirmed problems.
* Nightly check with a circuit breaker and an audit log.

Safety: new installs start in watch-only mode, scoped to test pages. Permitly never deletes, moves or edits an image or a page, so pausing or deactivating it restores the site instantly. No facial recognition. Consent data stays in your own WordPress database.

Permitly Pro adds a standalone parent consent form in 18 languages, kept in step with your English by automatic translation, that fills the registry automatically, a printable paper form with a QR code, an evidence report for every child, a revocation checklist for every channel an image was used on, one shared registry across all your sites, review of embedded YouTube and Vimeo videos, roster import, registry and audit exports, and cleanup tools for large libraries: bulk tagging, page-by-page review, stock auto-sort, staff batches and progress by location. The free plugin is complete on its own and never limits or disables any of its features.

Licensing and optional usage data are handled by Freemius. Nothing is sent unless you opt in, and consent records are never sent anywhere.

== Installation ==

1. In WordPress, go to Plugins, Add New, search for "Permitly", then Install Now and Activate.
2. Open Permitly in the admin menu. The Dashboard shows a Finish setup card until your programs and locations are added.
3. In Settings, add your programs and locations, your organization name, the email parents write to for revocations, and the alert email.
4. Permitly starts in Watch-only mode on Test pages only, so nothing changes for visitors until you choose. Optional: Settings, Demo pages builds example photos (no real children) and private test pages to practice on.
5. Add your children's consent records in the Registry, tag your photos, then check the whole-site picture before you turn on enforcement everywhere.

== Frequently Asked Questions ==

= Will Permitly delete or change my photos? =

No. Permitly never deletes, moves or edits an image, a post or a page. Uncleared images are swapped for a placeholder when the page is shown. Pause the plugin or deactivate it and your site is exactly as it was.

= Does it use facial recognition? =

No. Staff tag which children are in each photo. Permitly does not recognize faces or identify anyone.

= Where is consent data stored? =

In your own WordPress database. Consent records are never sent anywhere.

= Is the free version limited? =

No. The free plugin is complete on its own and never limits or disables its features. Permitly Pro adds the parent consent form, roster import, exports and the other tools listed above.

= Is this legal advice? =

No. Permitly helps you keep and enforce consent records. Check your obligations with your own counsel.

== External services ==

Permitly Pro's automatic translation uses the Ostara translation service (translate.ostaraventures.co), run by Ostara Ventures LLC, which translates with Anthropic's Claude. It is used only when you change the English wording of your consent form or turn on a new form language, and only on Pro sites. What is sent: the English lines that changed, the language code, and this site's license install ID with a signature. No family, child or consent information is ever sent. You can turn automatic updates off on the Form languages screen. The service keeps a copy of each translated line so the same text is never translated twice, and a monthly usage count per site. Anthropic privacy policy: https://www.anthropic.com/legal/privacy.

Permitly Pro's optional people check uses the same Ostara service and Anthropic's Claude. It runs only after an administrator turns it on in Settings and agrees to it. What is sent: a downsized copy (768 pixels or smaller) of each image that is live on your website and still needs an answer, plus this site's license install ID with a signature. The AI answers only whether the image shows any person; it does not identify anyone or estimate age. The service keeps no images, only a one-way fingerprint of each file with its answer, and a monthly usage count per site. You can turn it off at any time in Settings.

Not legal advice.

Terms: by downloading, installing, buying or using Permitly you agree to the Permitly Terms of Service and License at https://ostaraventures.co/permitly/terms/. The plugin code is licensed under the GPL (GPLv2 or later), and nothing in the terms limits your rights under the GPL. User manual: https://ostaraventures.co/permitly/manual/.

== Screenshots ==

1. The dashboard: how many live images are cleared, waiting for review or blocked, and what to do next.
2. Review images: every image on the site that may show people and still needs an answer, most-used first.
3. The registry: one record per child with the uses their parents agreed to, and revoke in one click.
4. Settings: start in Watch-only, try it on test pages, then enforce across the whole site.
5. What visitors see: a cleared photo stays, and a photo without consent is swapped for a placeholder.

== Changelog ==

= 0.7.24 =
* Readme: a Screenshots section for the WordPress.org listing. No code changes.

= 0.7.23 =
* Every line of the parent form and its emails is now translated in all 17 built-in languages: the renewal reminder and renewal form, the reference photo section, its private link page and email, and the event check-in box and attendance email. Before, these showed in English to parents who chose another language.

= 0.7.22 =
* Packaging only: the free download's folder is now permitly. No code changes.

= 0.7.21 =
* The plugin's folder, main file and text domain are now permitly, matching its name. Settings and consent records carry over unchanged.
* Admin screens moved to admin.php?page=permitly; links saved with the old addresses still open the right screen.
* If a copy from before the rename is still active, this copy waits and says so, so the two never clash.

= 0.7.20 =
* Ready for the WordPress.org directory: passes the Plugin Check code scan with no errors or warnings, a shorter summary, and new Installation and FAQ sections.
* The image refresh query passes its video wildcard as a parameter.

= 0.7.19 =
* Reference photos: on phones and tablets the form now has a "Take a photo" button that opens the camera straight away, with "Choose a photo" beside it for the photo library. On a computer it shows "Choose a photo". The preview also offers "Take a photo" again.
* Reference photos: after a photo is chosen, the pick buttons now hide as intended.

= 0.7.18 =
* Events: "Print QR sign" makes a print-ready Letter sign for each event: your logo (the site's Custom Logo, or your organization name), the event name and date, "Scan to sign or confirm photo consent.", the languages the form offers (each written in its own language), a large QR code (error correction level Q, full quiet zone) and the link in plain text. It opens the print dialog by itself. Developers can set the logo and colors with the cg_qr_sign_logo, cg_qr_sign_color and cg_qr_sign_accent filters; a QR color too light to scan falls back to the default and is logged once (qr_sign_color_low_contrast).
* Events: the QR codes on an event page no longer overlap the text and buttons beside them, on a computer or a phone.
* Live roster: "1 child with consent on the roster" for one child.

= 0.7.17 =
* Linking two records (merge) saves the combined choices first. If that save fails, nothing changes: no photo or history moves, no record is deleted, staff see "The records could not be merged. Nothing was changed. Please try again." and it is logged (merge_failed).
* A revocation that a merge records now opens checklist items for the photos that moved over with it.
* Staff actions never show success when nothing was saved: editing or adding a record, "Looks right", "Different child", recording a revocation or a withdrawal of some uses, and updates in a roster import each say it could not be saved, and log save_failed with the database message only.

= 0.7.16 =
* A form the database cannot save is never shown as a success. On the consent form, a renewal, a confirmation from email and the event check-in, the form comes back in the parent's language with every answer and "Something went wrong saving your form. Please send it again." Nothing else happens: no history, no email. It is logged (form_save_failed), and staff get one alert per hour. The message is in all 17 form languages.
* After an update, every request brings the database tables up to date before saving, even while another request runs the one-time upgrade. A save that fails is retried once after the tables are brought up to date.
* The upgrade lock is taken with a single database insert, so only one request can hold it, and a stale cached value can never block it.

= 0.7.15 =
* "Remove all" on a main site with connected sites keeps every marked record for a one-by-one check, since a connected site may have tagged it in photos. A marked record whose parent has a confirmation link waiting is kept too, and shows "Confirmation link waiting" in "Needs a check".
* "Remove all" deletes a record only while it is still marked, and checks all listed records in a few queries (1,200 records in under 3 seconds).
* Works with a persistent object cache (Redis): sending held emails no longer grows the cached list of missing options, and "Remove all" never reloads all options.
* The database upgrade runs under a short lock, so simultaneous first requests after an update run it once. Held emails from 0.7.13 get their record in their name.
* Held emails are sent at least once (never lost); the wording now says so. "Discard all" lists emails being sent right now.
* The Dashboard image check continues filling free places from where it stopped.

= 0.7.14 =
* Held emails survive a timeout or crash: each is claimed before sending and deleted only once sent. One whose sending was cut off returns to the list after 10 minutes. Never lost, and sent at least once: a request that dies right after sending, or a mail plugin that delivers but reports a failure, can send one email twice.
* A record's held emails are found by the record number in their name, so deleting or merging a record discards them on every database.
* "Remove all that can go" works during a live attack and at volume: it deletes the records it listed that may still go, checking each again just before, and reports any it skipped. Forms that arrive after the screen opened wait for the next pass. At most 500 per screen. A child added to an event roster by staff counts as a real family.
* A photo waiting on a held or unclicked confirmation is never cleaned up while the confirmation can still be used.
* "Discard all" discards only the held emails its confirmation screen counted.
* A marked record gets no renewal reminder until "Looks right", but still appears in the "Photo consent ran out" staff email. "Needs a check" says "Renewal reminder paused until Looks right".
* The trap field has no id, so event pages with both forms stay valid. A clean check-in restores a "Check" roster row; a marked one never changes an existing row.
* The Dashboard image list counts every image exactly and stores a short key per image (under 1 MB for 50,000 images). Free places are filled at once.
* Upgrade from earlier 0.7 builds: forms saved as "unconfirmed" count, earlier "Check this" marks are cleared, and held confirmation emails from before 0.7.13 are discarded.

= 0.7.13 =
* Only the hidden trap field marks a form "Check this". The fill timer is gone: renewals, autofill and a form sent again after a missing field are fast for real parents. The trap field cannot be filled by autofill or password managers (off screen, hidden from screen readers, skipped by Tab, autocomplete off, and a name no browser fills).
* A link from the parent's inbox proves a person: confirming a change or renewing from the reminder never marks a record and clears any mark, and the parent gets their copy as usual.
* "Remove all that can go" deletes only the records listed on its confirmation screen, and changes nothing if the list changed after the screen opened. A marked record with photo tags, a reference photo, a parent confirmation or renewal, or "Looks right" in its history is never removed in bulk; the screen lists those as kept for a one-by-one check.
* Held emails: each is taken off the list before it is sent and put back if sending fails ("N could not be sent and are still held"). A held confirmation email gets a new 7-day link when it is sent. The list pages 200 at a time and sends in batches. Administrators can discard all held emails after a confirmation showing the count. Deleting or merging a record discards its held emails. Uninstall removes the held emails, form counters and flood notes.
* Marked records get no renewal reminder, and the "renewed with fewer uses" staff alert pauses during a flood like the other alerts.
* A kept photo on a re-shown form can be used once, and never for a second record.
* The "Needs a check" list shows when a marked form said no to every use or needs matching. A marked attendance check-in shows "Check" on the event roster. The flood email says per-form staff alerts are paused for the hour and points to the Registry.
* The re-shown form's notes and "Your photo is kept" are translated into all 17 form languages.
* The Dashboard image list counts every image beyond its cap exactly, while storing addresses only for those ready to be listed.

= 0.7.12 =
* The consent and attendance forms never refuse, delay or drop a form. Every form with the required fields is saved and counts at once.
* A form that may be automated (the hidden trap field filled, or sent in under 3 seconds) is saved like any other and marked "Check this: may be automated". It sends no emails. In the Registry: a "Needs a check" filter, a "Looks right" button that clears the mark and emails the parent their copy, and a way to remove all marked records after a confirmation screen. Marked children stay selectable when tagging, with "Check" in their label.
* An unusual number of forms in one hour (setting, default 200) is still all saved and counts; emails to parents for the rest of the hour wait in the Registry ("Send held emails"), and staff get one email.
* When a required field is missing, the form shows which one, in the parent's language, with every other answer (and a chosen photo) kept.
* Removed: the per-address limits on both forms, the busy message, the signed start time, and the trusted-proxy settings and notice.
* Sites that ran 0.7.10: forms saved as waiting for the parent now count as the parent's choices.
* A confirmation link for a record staff merged or deleted meanwhile now says the link has expired.
* The Dashboard image list counts exactly at its 500-entry cap, and freed places are filled at once.

= 0.7.11 =
* A new child's consent form counts at once again (as before 0.7.10), so staff can tag event photos right away. Changes to a child already on file still wait for the parent's email confirmation.
* Tagging lists name each child fully: initials, program and location, registration ID, and the parent's name (Registry staff only), so a stray record is easy to tell apart.
* The consent form's bot check never drops a real parent for something they cannot control (a page cached before the upgrade, or no JavaScript). Every turned-away form is logged with the reason.
* The per-visitor limit on the consent form is 60 an hour by default and is a setting (families at a sign-up table share one Wi-Fi address). It is logged when reached, and parents see "We are getting a lot of forms right now. Please wait a few minutes and send it again."
* The visitor's address: CF-Connecting-IP is believed only from Cloudflare; on Pantheon, define( 'CG_TRUSTED_PROXIES', 'pantheon' ); uses the address Pantheon's edge added. Administrators see a one-time notice when the site is behind a proxy nobody trusts.
* The image list on the Dashboard is time-boxed, so Run check now finishes quickly; pages it does not reach are continued by the next check.
* Fixed: on a new site, a later change of the reference photo folder was not noticed (an empty first value was read as no value).

= 0.7.10 =
* "Websites listed on the form" and "Form version" now save from the Settings screen, so raising the form version after a wording change makes "Ask families to sign again" take effect.
* The Yes and No answers on the consent form are easier to tap on a phone (each at least 44 by 72 pixels).
* A parent never gets a second attendance confirmation, and one whose email was not sent at the end of their request is sent by the daily run.
* When the photo folder changes, the earlier folder is put on the cleanup list before anything else, so it is never missed.
* If a replaced photo's old record cannot be put back, the new photo stays and the earlier file stays tracked for deletion; the log says exactly what happened.
* The evidence report, paper consent form and form languages screens have a browser tab title.
* "Kids identifiable: tag them" opens the photo at "Who is in frame?" with the keyboard focus there.
* New Dashboard card: images on your pages that are not in your Media Library (theme images, images from other sites, addresses a CDN rewrote), found by the nightly check and Run check now. Mark each "Not a person" or "Reviewed". They are never hidden.

= 0.7.9 =
* When a parent replaces their child's photo and it cannot be saved, they now see "We could not update the photo just now" instead of "Saved", and the old photo stays. A photo sent with the consent form that cannot be saved is logged for staff.
* A replacement photo's record is written first; the old photo is let go of only after that, and put back if it cannot be.
* The failure messages on the parent's photo page are styled and readable on a phone.
* When the photo folder changes, only one request handles it, even if several arrive at once.
* Clearer wording in the log when a retired folder's pending deletions are dropped.

= 0.7.8 =
* A photo is never let go of until its pending deletion is safely written: if the pending list cannot be written (for example, a lock left by a request that died), the record is kept and the daily run retries. The same holds when a photo is replaced, two records are merged, or an upload is not kept.
* Forms return to the right page on sites installed in a subdirectory.
* The database version only moves to 3 once the new remove_req column exists; until then the change is retried hourly, and nobody is told a photo is "no longer used" when it could not be marked.
* Removals from the consent form, revocations and ended consent are hidden at once and retried until done, like staff and parent removals.
* Retiring a folder takes it off the list only after the pending list is updated, and clears entries left with only retired or gone folders.
* The missing-folder notice is refreshed as soon as the photo folder changes.

= 0.7.7 =
* Changing the photo folder, in Settings, through CG_PRIVATE_DIR or a new default, keeps the earlier folder on the cleanup list while it may still hold photos, including photos only waiting to be deleted. Each pending deletion also remembers every folder it could be in, and only clears when the file was found and deleted, or every one of those folders was looked into and it was not there.
* A removal asked for by staff ("Delete photo") or a parent ("Remove") that cannot finish right away is marked on the record: the photo is no longer shown or used, the daily run retries it, and staff and parents are told the truth ("we will finish removing it shortly").
* The notice shows full server paths only to administrators; other Registry staff see the counts.
* The count of photos in a folder that cannot be found is worked out in the daily run, not on every screen. An administrator can retire a folder that has been missing for at least 7 days, with a clear warning and a log entry.
* The pending-deletes list is changed under a lock, so a deletion deferred by one request is never lost to another.
* Uninstall logs any photos and folders it could not handle.

= 0.7.6 =
* A photo folder counts as gone only after it has been missing continuously for over an hour: missing at two or more checks at least an hour apart (looks within a few minutes count as one), with no sighting in between and no gap over 26 hours. Any sighting ends the streak, whether in the daily run, a photo lookup or the Settings page, and an old note expires instead of counting.
* Records are never dropped because a folder is missing. Photos in a missing folder stay on their records and are shown to administrators. A revoke for such a photo lets the record go but keeps the deletion pending, so the photo is deleted if the folder comes back. A missing folder stays on the cleanup list however long it is gone, and a folder that vanished while photos are on record is not silently recreated empty.
* Photos that cannot be deleted from a read-only folder are logged once per folder (not per photo per day) and listed in the notice, and the old copy of a photo already in the new folder is removed as soon as the old folder can be written.
* The early finish of the attendance response stops safely at an output buffer it cannot remove, and the email still goes out.

= 0.7.5 =
* A folder found open stays treated as open until a check finds it blocked, even if settings are saved while the site cannot test itself or another check is running. Each folder found open is remembered on its own, so switching folders cannot wipe it.
* Any check that finds the folder open clears the administrator's confirmation, and a folder found open cannot be confirmed.
* Any change of photo folder (Settings, CG_PRIVATE_DIR or a new default) clears the confirmation on the next request, so going back to an earlier folder needs a fresh confirmation.
* Attendance emails: the response is now really finished before the email is sent (fastcgi_finish_request or litespeed_finish_request, and on other servers a complete, flushed redirect), so a match answers as fast as a non-match even with a slow mail server.
* A photo folder is treated as gone only if it is still missing at a check at least an hour after it was first missed. During a brief outage, revokes keep the record (logged as not deleted yet) and the daily run finishes them.
* Choosing a new folder while the old one cannot be reached or written keeps every record. The old folder stays on a cleanup list: its photos are moved into the new folder or deleted when consent ends, and the folder is removed once empty.
* When reference photos are being refused (folder open, untested or unconfirmed), a notice says so on every Permitly screen, with a link to fix it.

= 0.7.4 =
* The front-end Swap photo button and stand-ins are back to everyone who can upload media (Authors included). Staff of every level need to see photos that are not cleared, and swap in cleared ones, to make those calls. Child data (names, IDs, consent, reference photos, rosters) stays limited to Registry staff.

= 0.7.3 =
* Reference photos are saved only to a folder confirmed private: outside the web, or checked and found blocked. If the folder is open, untested, or the site cannot test itself, the photo is refused and the consent still goes through. A failed re-check never clears an "open" result.
* Sites that cannot test themselves (loopback blocked, password-protected staging) get an administrator-only confirmation in Settings: "My host has confirmed this folder cannot be opened from the web." The card shows who confirmed and when, it can be withdrawn, and it is cleared if the folder changes. It never overrides a check that found the folder open.
* The folder check no longer runs while a parent submits the form. It runs on the Settings card, on settings save and in the daily run, one check at a time.
* Deleting free and Pro together now cleans up: the last copy on disk always removes the photos.
* After a host move, photos in a folder that no longer exists are taken off their records (and logged), and an administrator can choose a new folder when the old one is missing or cannot be written.
* Attendance confirmation emails go out at the end of the request, after the response, without waiting for WP-Cron. A scheduled fallback 10 minutes later covers a failed send, and its handler lives in the free core so a lapsed license cannot lose it. Matches and non-matches still get identical responses.
* Staff "Delete photo" shows whether the delete really worked.
* Replaced or merged photos that cannot be deleted stay on a pending list the daily run retries.
* Locks can only be released by the request that holds them.
* A folder above WordPress that sits inside another public folder (for example a cPanel addon domain inside the main domain's public_html) is no longer trusted as outside the web.
* Cleanup bulk tagging and auto-sort, People quick sort, Registry quick tag, stand-ins, and the hidden-quote note now need the same capability as the Registry.

= 0.7.2 =
* Photos saved by 0.7.0 that cannot be moved yet stay tracked under their old names, so revoke, delete, the daily run and uninstall still delete them. The move is retried (hourly on page loads, and in every daily run), only one request moves at a time, and the upgrade only completes when every photo has moved. A file that cannot be deleted keeps its record and is logged as not deleted yet, instead of "deleted".
* Once the photo folder is found open to the web, new reference photos stay refused until a fresh check says otherwise. The result no longer expires after an hour. A site that was never checked runs the check before saving its first photo.
* The photo folder is only chosen during a normal web request, never during WP-CLI or a system cron, and a folder only counts as outside the web when the web server's document root is known. This protects layouts like Bedrock, where the WordPress folder sits inside the web root.
* The renewal page and the email confirmation page get the same no-store headers and DONOTCACHEPAGE as the photo link, from the free core.
* "Who is in frame?" on the media screen is limited to staff who can open the Registry. Authors see only how many children are tagged and cannot change tags.
* Uninstall always deletes reference photos, and deletes events and rosters only with "Delete all consent data", as the Settings text now says. Nothing is removed when another copy of Permitly (free or Pro) is still installed.
* The folder check only trusts a 404 when its test file was actually written, and leftover test files are cleaned up on the next check and on uninstall.
* "Already on file": the confirmation email is sent right after the response, so a match takes no longer to answer than a non-match.
* Pantheon: the default folder is wp-content/uploads/private/cg-refphotos on every environment, so one protected_web_paths entry (/wp-content/uploads/private) covers Dev, Test and Live. For a folder chosen in Settings, the message says to set CG_PRIVATE_DIR to a fixed folder.

= 0.7.1 =
* Reference photos are deleted on revoke, delete and expiry even when the Pro license has lapsed, and uninstall removes them, their folder and the event tables without the Pro module.
* The plugin only ever deletes files it created: photos now live in their own cg-refphotos subfolder under owned file names (cgr-...). Other files, and any .htaccess the plugin did not write, are left alone. Photos saved by 0.7.0 are moved over once, automatically.
* The private folder check now tests any folder inside the website (not only uploads), resolves symlinks, and reports "could not test" (with the folder path and the rule to add) for password-locked or firewalled sites instead of a false "Protected". New reference photos are not saved while the folder is open to the web; the consent itself always goes through.
* On Pantheon, the default folder is a plugin-owned subfolder of wp-content/uploads/private, and the open-folder message gives the exact protected_web_paths entry for pantheon.yml.
* Reference photos, the Events page, the live roster and the roster actions now need the same capability as the Registry (edit_others_posts). Authors can no longer see them.
* The parent's private photo link page is never cached (no-store headers, DONOTCACHEPAGE).
* Photo processing: dimensions are checked before decoding, so an oversized image is refused cleanly; camera orientations 5 and 7 are now upright; every saved photo is checked for leftover metadata and refused if any remains (including on hosts that use Imagick).
* "Already on file" gives the same answer whether or not a family was found ("If we found ... we have emailed you"). The hourly limit is unchanged.

= 0.7.0 =
* Event photos (Pro, off until you turn it on in Settings). Create an event with its own QR code to the consent form. New families sign there; families already on file just confirm their child is attending. Either way the child joins the event's roster.
* Photos are sorted into events by the time they were taken, grouped into bursts, and tagged from one screen: pick children, pick photos or whole bursts, tag. The event's children are listed first everywhere you tag.
* A live roster for photographers: a phone-friendly list of the children attending with what each family said yes to. Staff must be logged in.
* Optional reference photos (Pro, off until you turn it on). Parents can add one photo of their child on the consent form so staff can tell children apart while tagging. It is resized and stripped of metadata, kept in a private folder on your site (never the Media Library, never sent anywhere), shown only to staff who tag images with every view recorded, and deleted when consent is declined, revoked or ends, when the record is deleted, after an optional retention period, or whenever the parent removes it from their private link. No facial recognition.
* Fixes: saving Settings, the Review images layout on small screens, and renewal reminders are only marked sent when the email was actually sent.

= 0.6.6 =
* Safer shared registry. A site that follows a main site's registry and can't sync for 2 days warns staff by email and on screen. After 7 days, photos of children from the shared registry are hidden until syncing works again, so a revocation on the main site is never missed. This works even if Pro has stopped on the site.
* If the Pro license expires, Permitly now says so plainly: a notice lists what is paused, with a Renew button, and staff get one email. Records and protection are unchanged.
* While the online form is unavailable, parents see how to give, renew or change consent by email instead of a dead end.

= 0.6.5 =
* Consent renewal (Pro). When consent has an end date, Permitly emails each parent before it runs out with a personal link to the consent form, their choices already filled in. Saving it renews consent for the same child, so every photo already tagged with them stays linked and cleared, with nothing to re-tag.
* A last reminder goes out 7 days before the end date, and staff get one email listing any consent that ran out without a renewal.
* The Registry shows when each consent ends and when the last reminder went out.

= 0.6.4 =
* New Get help screen: a link to the user manual, a one-click support report (versions, theme, plugins and Permitly settings only, never names, photos or consent records) and ways to contact support. We aim to reply within 2 business days.
* Contact support from inside WordPress through the Contact Us page.

= 0.6.3 =
* Consent Guard is now Permitly. Same plugin, same settings and records; only the name and logo change.
* New logo: a Polaroid with a check, shown beside the wordmark and in the admin menu.
* The parent consent form shortcode is now [permitly_form]. The old [consent_guard_form] keeps working.
* Updated Terms of Service and License; administrators are asked to review them once.

= 0.6.2 =
* People check: error messages no longer repeat "Your images stay in review."

= 0.6.1 =
* The wordmark is now fully blue.

= 0.6.0 =
* Review images now opens on Needs a decision: only images on your website that still need an answer. Images not used on any page, and graphics, sit in their own groups.
* Graphics are sorted automatically: SVG and icon files, very small images, and PNG, GIF or WebP files named like logos or icons. Photos are never sorted by name. Anything sorted automatically can be put back with one click.
* Pro: the people check (optional, AI) sorts out live images that show no person at all, so staff only review images with people. It never estimates age or identifies anyone. Spot-check and Put back are built in.
* Pro: Quick sort shows images with people one at a time, with No people, Adults only, Has kids and Skip buttons, keyboard keys and undo.
* Updated Terms of Service; administrators are asked to agree again.

= 0.5.6 =
* Pro plans now include a number of children in the consent registry: Starter up to 50, Organization up to 300, Association no limit. The Dashboard and Registry show where you stand.
* Over the limit, nothing changes for 14 days. After that, Pro staff tools pause until you upgrade. Hiding photos, the parent form, revocations, the evidence report and every export always keep working.
* The wordmark accent is now blue.

= 0.5.5 =
* Links to the Permitly Terms of Service and License and the user manual on every Permitly screen. Administrators are asked once to agree to the terms; the agreement is recorded in the Activity log.
* Uninstall with "Delete all consent data" now also removes the Parents only page setting.

= 0.5.4 =
* Refreshed wordmark colors.

= 0.5.3 =
* Pro: automatic translation. When you change your English wording, only the lines that changed are translated into every language on your form, with progress on screen. Translated lines are marked "Updated by AI" until a fluent speaker reviews them.
* Turning on a new language fills in any lines that do not match your English yet.
* Lines whose English goes back to the built-in wording go back to the built-in translation with no translation call.
* Built-in monthly limits for every site, shown on the Form languages screen. If a limit is reached or the service is unavailable, the form keeps working with its current wording and the lines stay flagged.
* Turn automatic updates off at any time and update languages with one click instead.

= 0.5.2 =
* Pro: edit the English wording of the consent form, emails and paper form on the Form languages screen, so it matches what your counsel wants. Your wording is kept through plugin updates and can be restored to the built-in wording at any time.
* When the English changes, every translation reviewed before the change is flagged "English changed since review", and reviewers see your current English next to each line.

= 0.5.1 =
* Pro: the consent form now comes in 18 languages: English, Spanish, Chinese (Simplified and Traditional), Vietnamese, Tagalog, Korean, Arabic, Farsi, Russian, Ukrainian, Armenian, Somali, Hmong, Khmer, Haitian Creole, Portuguese and French. Arabic and Farsi read right to left.
* Pro: new Form languages screen. Choose which languages your form offers, review each translation line by line next to the English, fix any wording, and mark it reviewed. Your wording is kept through plugin updates.
* Families pick their language from a list at the top of the form; their emails and the paper form follow. The exact wording in their language is stored with their consent.
* Shortcode option lang="vi" (or any language code) opens the form in that language.

= 0.5.0 =
* Pro: Evidence report. One printable page per child (or save it as a PDF): what the parent agreed to and when, the exact form wording they saw, every change, each tagged photo with when it stopped showing, and the revocation checklist.
* Pro: Spanish consent form. Families switch between English and Español on the form, and their confirmation and receipt emails come in the same language.
* Pro: Printable paper consent form in English or Spanish, with the same wording as the online form and a QR code that opens it on a phone.
* Pro: Share one registry across sites. One site keeps the registry and the parent form; branch or camp sites follow it, sync every hour and update right away when consent changes. Parent names and emails stay on the main site.
* Pro: Embedded videos. Review the YouTube and Vimeo videos on your pages and hide any that show a child without consent.
* Videos in the Media Library are tracked and hidden like photos.
* New [cg_quote child="R-1001"] shortcode: a child's quote, name or story shows only while that child has consent.
* Log a revocation from an email: find the child, record what the parent asked for and the day the email arrived.
* Revocation window: record when a child left the program; the Registry shows until when the family can revoke.
* Parents only pages: photos are not hidden on password-protected or private pages marked Parents only.
* New setting: whether photos of children no one can identify count as Cleared (your counsel's call).
* Changing consent rules in Settings rechecks every photo right away.

= 0.4.2 =
* Whole-site protection now covers every page visitors can reach: the blog index, archives, categories, search results, shop pages, RSS feeds and "load more" content.
* Hidden images are left out of the WordPress REST API, oEmbed cards and Yoast and Rank Math image sitemaps, so they stop appearing in search engines.
* Page caches and CDNs are purged when an image's status changes (WP Rocket, LiteSpeed, W3 Total Cache, WP Super Cache, WP Fastest Cache, SiteGround, Breeze, Nginx Helper, WP Engine, Kinsta, Cloudflare plugin).
* Images served from a CDN, Jetpack or a WebP converter are recognized.
* Hidden photos no longer reveal anything in the page code: status, titles and captions next to them are removed for visitors.
* Children tagged on a photo always decide its status, even if the photo is later tagged as stock or not identifiable.
* New: choose how long consent lasts (until revoked, the program year, or a number of months) and ask families to sign again when the form wording changes.
* Parent form: changes to a child already on file apply only after the parent confirms from their email. Forms that match a roster record go to a new Needs matching list for staff. A "no to everything" that cannot be matched alerts staff right away.
* Parents get an emailed copy of their choices. Every record keeps a full consent history, including the exact form wording the parent saw.
* Taking back consent (Declined after Active, or removing every use) is recorded as a revocation. Removing some uses opens a checklist for those channels.
* Undoing a revocation needs an administrator and a reason. A new revocation gets a new date and reopens its checklist.
* Editing a record only changes the fields you edit, so parent details and form versions are never wiped.
* Registry: delete and merge records, paging for large registries, and an optional retention period.
* Circuit breaker compares against last night and no longer turns the site off: Revoked and Blocked images stay hidden while a large change is held for review.
* Replacing an image's file starts its review over. Deleting an image or page cleans up its links.
* Faster on large libraries: status checks and page scans run in batches, and image lookups are cached.
* Exports are for administrators only, stream in batches with no size limit, and protect against spreadsheet formulas.
* Make permanent keeps block formatting intact.
* Uninstall cleans up fully, including multisite and the demo. Settings has a Remove the demo button.
* Note: Permitly controls what your pages show. A direct link to an image file in your uploads folder still opens that file.

= 0.4.1 =
* New installs start with empty Programs and Locations instead of sample names, so no real photo gets tagged with a placeholder.
* New: a Finish setup card on the Dashboard until your programs and locations are added, with one button straight to the right place in Settings.
* Menus with nothing in them now say so ("No programs yet") and link to Settings. Administrators also get Edit programs and Edit locations shortcuts in the bulk action menu.
* The parent consent form hides the Program field until you have added programs.
* Sites still using the old untouched sample lists are cleared automatically.

= 0.4.0 =
* Pro: Swap photo. On any hidden photo, pick a Cleared photo from the media library to show in its place, on every page that uses the original or on one page only. Best matches (same program, same location, same shape) come first, and only Cleared photos can be chosen.
* Pro: stand-ins are safe by design. The page and the original file are not changed, a stand-in shows only while it is itself Cleared, and the original returns by itself once its consent clears.
* Pro: Make permanent writes the new photo into one page for good, after saving a revision so it can be undone.
* Pro: Swap photo and Remove on every card in Review images.
* New: choose your own placeholder image (for example your logo) in Settings, instead of the gray box.

= 0.3.7 =
* Plugin and author links now point to ostaraventures.co.

= 0.3.6 =
* Publisher is now Ostara Ventures LLC. Plugin and author links point to the Permitly page.

= 0.3.5 =
* Pro: when a parent fills in the consent form again (same registration ID and email), their child's existing record is updated, so every photo already tagged to that child follows the new choices right away.
* Pro: a parent who switches every answer to No after saying Yes is recorded as a revocation, with the checklist and alert email.
* Pro: a form that reuses a registration ID with a different parent email is saved separately and flagged in the activity log, so no one can change another family's choices.
* Pro: roster imports update children already on file (matched by registration ID) instead of adding duplicates. An import never undoes a revocation unless the file says so.
* Fix: roster files without a Status column now import correctly.

= 0.3.4 =
* The Pro tag stays beside the wordmark on phones.
* Centered selection checkboxes on Review images.

= 0.3.3 =
* Demo builder now uses realistic AI-generated example photos (no real children).

= 0.3.2 =
* New look: crisp white screens with one clear job per color. Status colors are tuned for contrast and mean only their status.
* Neutral gray placeholder for hidden images, so it fits any site.
* Small wording fixes.

= 0.3.0 =
* Whole-site picture on the Dashboard.
* Wider scan: CSS background images, images inserted by URL, lightbox links, widgets, menus, theme settings, block templates, synced patterns and sliders.
* Enforcement also swaps background images and linked images, not just image tags.
* Safe whole-site switch with a confirmation screen, and an option to hide only confirmed problems while review is in progress.

= 0.2.0 =
* The parent consent form, revocation checklist, roster import and exports move to Permitly Pro.
* Everything in this plugin is free with no limits.

= 0.1.1 =
* Demo builder: mock photos, fake consent records and password-protected test pages, from Settings.

= 0.1.0 =
* First working build.
