=== Rankshoot ===
Contributors: rankshoot
Tags: seo, content, arabic
Requires at least: 6.9.10
Tested up to: 7.1
Requires PHP: 8.1
Stable tag: 0.4.2
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Connects your site to Rankshoot, an external service, so articles you approve in Rankshoot are delivered as new posts, and — only if you allow it — approved updates are applied to existing posts.

== Description ==

This plugin sends data to and receives data from Rankshoot (https://rankshoot.com), an external service:

* The plugin makes a connection key on your site. You copy it into Rankshoot yourself; the plugin sends nothing until then.
* Once you have pasted the key in Rankshoot, Rankshoot can, with signed requests only: read site information (versions, theme, SEO and builder plugins),
  read your posts and pages (content and read-only SEO title/description), create new posts from articles you approved
  (with their approved meta title, meta description, focus keyword and address, and their approved featured image), and — only after you tick "Allow Rankshoot to update existing posts" — replace the content of an existing block-editor post
  with an update you approved, and undo such an update.

Updates to existing posts are off by default. When allowed, an update is applied only if the post is exactly as it was when the
update was prepared; the post's other fields, dates, meta and SEO settings are left alone; and the previous content is kept so the
update can be undone. The plugin never adds anything to your pages, never changes the SEO settings of existing posts, never deletes posts, never changes
pages or posts built with a page builder, and never uses the WordPress batch endpoint. A kill switch and a read-only mode in Settings → Rankshoot take effect immediately.
Featured images are added to the media library as the Rankshoot user you chose, and only if the file is exactly the approved image.
Uninstalling removes everything the plugin stored, including its signing secret (images and posts it created stay, like any other content).

== Changelog ==

= 0.4.2 =
* Rankshoot's answers are never cached: page caches (LiteSpeed Cache, CDNs, WP Rocket and others) are told not to keep them, so a cached copy can never be served to Rankshoot or to anyone else.

= 0.4.1 =
* A cleaner settings page: status, the key with a Copy button, and the user posts are created as.
* The "Rankshoot" Editor user is created automatically and selected; another Editor or Author can be chosen instead. Administrators cannot be used.
* The activity log is no longer shown on the page (it is still kept for support).

= 0.4.0 =
* Simpler connection: the plugin makes the connection key on your site. Copy it from Settings → Rankshoot, paste it in Rankshoot and press Connect. There is nothing to activate or check in WordPress; the page shows "Connected" once Rankshoot has reached your site.
* Choosing the user posts are created as: every user is listed (administrators cannot be chosen), and one click creates a dedicated "Rankshoot" Editor user.
* Safety switches, a new key and the activity log are under "Advanced".

= 0.3.0 =
* New posts get the approved meta title, meta description and focus keyword in Yoast SEO or Rank Math when one of them is active (otherwise the meta description goes into the excerpt as before), and the approved address (slug). These fields are part of the approval: they are written only if they match exactly what was approved.
* The approved featured image of a new post is added to the media library (with its alt text) and set as the post's featured image — only if the image is exactly the approved one.
* Requires WordPress 7.1.3, 7.0.7 or 6.9.10 or newer.

= 0.2.1 =
* Recent activity no longer shows a false "rejected_request / replay" after every request (WordPress checks access a second time to build its Allow header; that second check is no longer counted).

= 0.2.0 =
* Uninstalling also removes update records and kept previous versions.
* Updates to existing block-editor posts, off until the site owner allows them: applied only if the post is unchanged since the update was prepared, stored byte for byte as approved, and rolled back exactly while nobody has edited the post since. Pages, classic, footnote and page-builder posts are always handed over instead.

= 0.1.3 =
* A site that cannot reach Rankshoot during activation now gets a plain explanation; the technical reason is kept in Recent activity.

= 0.1.2 =
* Inventory can return specific posts by ID (read only), used to suggest links from your existing posts to new articles.

= 0.1.1 =
* Site map import: read-only canonical and noindex from Yoast / Rank Math, and the site-wide "discourage search engines" setting.

= 0.1.0 =
* First version: activation with site verification, signed requests, site info, inventory, create post, kill switch, read-only mode.
