=== Outdated Template Updater for WooCommerce === Contributors: dzzstudio Tags: woocommerce, updater, templates, theme, maintenance Requires at least: 6.5 Tested up to: 7.1 Requires PHP: 7.4 Stable tag: 1.1.0 License: GPLv2 or later License URI: https://www.gnu.org/licenses/gpl-2.0.html See what WooCommerce has changed in the templates your theme overrides, then update their @version numbers once they are reviewed. == Description == WooCommerce warns you when template overrides in your theme are outdated. This plugin helps you deal with those warnings properly. **Template Comparison** Scan your active theme to see what each template override really matches. The scan compares each file with older WooCommerce releases, so it also finds files where the version number says current but the content is older. For each template you can see, side by side: * What WooCommerce has changed since the version in your file. * What WooCommerce has changed since the release your file most closely matches. * How your template differs from the current WooCommerce template. Hooks, nonces and form fields that have changed are flagged for review. The scan is read-only and does not change any files. **Update Version Numbers** Once you have reviewed a template, one click updates its @version number to match WooCommerce and clears the outdated warning. This only changes the version number. It does not copy template changes from WooCommerce, such as bug fixes, new hooks or security fixes. Use the Template Comparison first, and apply any changes you need to your template yourself. Only the active theme is changed. If a child theme is active, parent theme files are left alone. == Installation == 1. Upload the plugin folder to the `/wp-content/plugins/` directory, or install it from the Plugins screen. 2. Activate the plugin through the Plugins menu in WordPress. 3. Go to **WooCommerce → Outdated Template Updater**. 4. Click **Scan Templates** to review your template overrides. 5. Once a template is reviewed, click **Update Version Numbers** to clear the outdated warnings. == Frequently Asked Questions == = Does this update my templates to the latest WooCommerce code? = No. It only changes the @version number. Use the Template Comparison to see what WooCommerce has changed, then update your template yourself. = Why does the scan say "Version number hides changes"? = The version number in your file is newer than the WooCommerce release its content matches. This usually means the number was updated without the template changes being copied across. = What does "Low confidence" mean? = The template is heavily customised, so the closest match is less certain. Use the side-by-side comparison to check it. = Why is the first scan slow? = Older WooCommerce templates are downloaded from WordPress.org the first time. Results are cached, so later scans are much faster. = Who can use the plugin? = Only administrators. == External services == The Template Comparison scan needs older WooCommerce templates, which are not stored on your site. It only connects when an administrator runs a scan or opens a comparison. * WordPress.org Plugin API (api.wordpress.org) provides the list of WooCommerce releases. * WordPress.org Plugin Directory (plugins.svn.wordpress.org) provides the older WooCommerce template files. Requests contain the WooCommerce release and template name. Your theme files, site address and customer data are not sent. See the [WordPress.org privacy policy](https://wordpress.org/about/privacy/). == Changelog == = 1.1.0 = * [Security] Only administrators can update templates, and every request is now checked with a nonce. Please update. * [Security] Results no longer show full server paths. * [Add] Template Comparison scan, showing the WooCommerce release each override really matches. * [Add] Side-by-side view of what WooCommerce has changed, with hooks, nonces and form fields flagged for review. * [Fix] Fatal error in the admin area when WooCommerce is not active. * [Fix] The update button no longer gets stuck when a theme has no template overrides. * [Fix] Files that cannot be saved are now reported, not shown as updated. * [Fix] Only the @version tag in the file header is changed. * [Fix] The WooCommerce outdated templates warning now clears straight after an update. * [Update] Template detection now matches WooCommerce, including custom template paths. * [Update] Only the active theme is changed, never a parent theme. * [Update] The button is renamed Update Version Numbers, and the page explains that only version numbers change. * [Update] Files are now saved with the WordPress filesystem API. * [Update] Scripts load only on the plugin page. * [Update] Declared compatibility with WooCommerce High-Performance Order Storage. * [Update] Requires WordPress 6.5 and PHP 7.4. Tested with WordPress 7.1 and WooCommerce 11.2. = 1.0.7 = * [Update] Tested and confirmed compatible with WordPress 7.0. = 1.0.6 = * [Update] Tested with WordPress 6.9. * [Update] Renamed the WooCommerce menu item to Outdated Template Updater. = 1.0.5 = * [Update] Update to `readme.txt` file. = 1.0.4 = * [Update] Improved `readme.txt` with clearer instructions. = 1.0.3 = * [Update] First SVN. = 1.0.2 = * [Fix] Plugin reviewed and verified for WordPress.org release. = 1.0.1 = * [Update] Excluded hidden files and folders from zipping. = 1.0.0 = * Initial public release. == Upgrade Notice == = 1.1.0 = Security update: only administrators can now update templates. Adds a read-only Template Comparison scan.