=== TearSnow Update Lock Cleaner ===
Contributors: TearSnow
Donate link: https://tearsnow.com/
Tags: TearSnow, Fanly, WordPress
Requires at least: 6.0
Tested up to: 7.0
Stable tag: trunk
Requires PHP: 7.2
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

TearSnow Update Lock Cleaner for WordPress plugin, designed to fix issues caused by update lockups.

== Description ==

TearSnow Update Lock Cleaner is a lightweight utility plugin developed by <a href="https://tearsnow.com/">TearSnow</a> in collaboration with <a href="https://zhangzifan.com/">Fanly</a> to resolve WordPress update lock issues.

It automatically removes core_updater.lock, auto_updater.lock, and related update transient data, restoring the normal WordPress update process. After execution, the plugin automatically exits without providing any admin UI, database changes, or frontend impact. It is designed for emergency recovery scenarios.

During WordPress updates, the system creates a temporary update lock in the database to prevent concurrent update operations and data corruption. This lock is typically a timestamp value.

- ✅ Under normal conditions: the lock is automatically removed after the update completes or expires within approximately 15 minutes.
- ❌ If an update fails or is interrupted: the lock may remain permanently, preventing further updates unless it is manually removed from the database.

When WordPress detects an active update lock, it blocks further updates and displays the message: "Another update is currently in progress."

= Core Features =

- Removes WordPress core_updater.lock update lock
- Removes auto_updater.lock automatic update lock
- Cleans update_core transient cache data
- One-click execution with no configuration required
- Automatically exits after execution (no admin UI)

= Use Cases =

- WordPress stuck on "Another update is currently in progress"
- Unable to update plugins or themes
- Core update is blocked due to a stuck lock
- Cannot restore update functionality via the dashboard

= How It Works =

WordPress creates update locks during update operations to prevent conflicts. These locks are normally released automatically after completion, but may remain in the database if an update fails or is interrupted.

TearSnow Update Lock Cleaner detects and removes the following items:

- core_updater.lock
- auto_updater.lock
- update_core transient cache

After cleanup, WordPress update functionality is restored to normal.

== Frequently Asked Questions ==

= How do I install this plugin? =

1. Upload the plugin to the `/wp-content/plugins/` directory
2. Activate the plugin to automatically run the cleanup process
3. The plugin will deactivate itself after execution

= Is this plugin safe? =

Yes. The plugin only removes WordPress update lock and transient cache data. It does not modify posts, pages, users, or plugin settings.

= Will this affect my website data? =

No. It only removes update-related locks and transient cache entries. No content or configuration data is affected.

== Screenshots ==

1. After activation, the plugin automatically runs the update lock cleanup process from the plugins screen
2. Once completed, a success message is displayed and the user can return to the WordPress update page

== Changelog ==

= 1.0.0 =
- Initial release
- Supports removal of core_updater.lock and auto_updater.lock
- Supports update_core transient cache cleanup
- Automatically executes cleanup on activation
- Displays completion status after execution

== Upgrade Notice ==

= 1.0.0 =
Initial release.