=== Remukan Bulk Edit ===
Contributors: remukan
Tags: woocommerce, bulk edit, product editor, stock manager, woocommerce bulk
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 1.8.8
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

High-performance, HPOS-compatible WooCommerce Bulk Product Editor with instant inline editing and safety Rollback system.

== DESCRIPTION ==

Managing thousands of WooCommerce products can be a challenging task. **Remukan Bulk Edit** is built for store owners and developers who need a streamlined, fast, and fail-safe bulk management tool.

Remukan Bulk Edit uses optimized REST API queries and clean background processing to ensure smooth server performance and minimize timeouts during large product updates.

### Key Features

* ** Excel-like Inline Editing:** Double-click any cell (Title, Price, Stock, SKU) and edit instantly without refreshing the page.
* **⏱ Time Machine (Rollback System):** Made a mistake? Revert any bulk edit operation or individual change with a single click.
* ** Variation Tree (Accordion Rows):** Easily view and edit variable products alongside their color, size, and custom variation attributes.
* ** Percentage & Fixed Price Adjustments:** Increase or decrease prices by % or fixed amounts accurately across hundreds of products.
* ** Inventory & Stock Management:** Toggle stock tracking on/off, set stock numbers, or add stock in bulk.
* ** HPOS Compatible:** Fully compliant with WooCommerce High-Performance Order Storage (HPOS).
* ** Fast Filters & Sorting:** Filter products by category, search by SKU/Title, or sort by Price, ID, and Date.

### Built for Safety & Speed
Remukan Bulk Edit automatically creates a snapshot before executing any bulk modifications. If something goes wrong, you can safely revert your store to its previous state.

== INSTALLATION ==

1. Log in to your WordPress admin panel.
2. Go to **Plugins > Add New**.
3. Search for **Remukan Bulk Edit** or upload the `remukan-bulk-edit.zip` file.
4. Click **Install Now** and activate the plugin.
5. Navigate to **WooCommerce > Toplu Düzenle** from your admin menu.

== FREQUENTLY ASKED QUESTIONS ==

= Will this plugin slow down my site? =
Remukan Bulk Edit utilizes lightweight REST API endpoints and server-friendly batch processing to ensure smooth performance.

= Does it support WooCommerce Variable Products? =
Yes, you can expand any variable product with a single click and edit child variations directly.

= What happens if I make a mistake while bulk editing? =
Simply click the **Geçmiş & Geri Al (Rollback)** button at the top right corner and click "↩ Geri Al" next to your recent action to restore the original data.

== SCREENSHOTS ==

1. Main product editing table with filters, search, and pagination.
2. Expandable variation tree for variable products.
3. One-click Rollback (Time Machine) history modal.

== CHANGELOG ==

= 1.8.8 =
* Compatibility: Added polyfill for FILTER_VALIDATE_BOOL to ensure full compatibility with legacy PHP 7.4 environments running modern WooCommerce versions.

= 1.8.7 =
* Core Update: Fully removed artificial history record limitations and cleaned up admin UI elements in accordance with WordPress.org Guideline 5. The plugin is now 100% restriction-free.

= 1.8.6 =
* Code Quality (Plugin Check): Resolved official WP Plugin Check tool notices. Added missing translator comments for placeholder strings to ensure perfect i18n compliance.
* Performance: Enforced footer loading and strict versioning for dynamically enqueued scripts.
* Production Hardening: Removed development-only debugging functions (error_log) from the rollback engine for a cleaner production environment.

= 1.8.5 =
* Localization (i18n) Polish: Eradicated residual hardcoded English strings from the JavaScript application (modal buttons and toast warnings). The entire frontend UI is now 100% translation-ready via the native WordPress localization engine.

= 1.8.4 =
* Bug Fix: Resolved a DOM Detachment issue where inline editing capabilities would disable after applying search filters or navigating pages. Hardened with Event Delegation.
* Core Validation: Added pre-flight database validation for inline SKU edits. The system now actively blocks duplicate SKUs before snapshot creation, avoiding fatal WooCommerce exceptions.
* UX Polish: Inline editing now natively catches and displays specific WooCommerce error messages (e.g., duplicate SKU warnings) directly via UI toasts without breaking the table structure.

= 1.8.3 =
* Architecture & Performance Update: Streamlined the plugin and optimized the rollback history engine for better database performance.
* Core Hardening: Added rigorous try-catch exception handling and strict type casting to the Rollback engine to prevent fatal errors on complex WooCommerce stores.
* UX Update: Improved admin UI button styles.
* Safety Enhancements: Introduced browser-native confirmation dialogues before executing bulk edits or rollbacks to prevent accidental data overwrites.
* Standards Compliance: Isolated global JS variables (escapeHTML) into the DOMContentLoaded scope to prevent third-party plugin collisions.
* Localization: Added missing translation functions for specific AJAX error messages.

= 1.8.2 =
* Architecture Update: Unlocked advanced filtering for all users.
* Standards Compliance: Refactored global variables, functions, and database structure to strictly adhere to WordPress naming conventions and avoid collisions (Prefix updated).
* Security & JS Fixes: Removed inline JavaScript tags and refactored script enqueuing via native wp_add_inline_script methods.
* Directory Guidelines: Adjusted description texts and updated all informational links to comply with the WordPress.org plugin directory standards.

= 1.8.1 =
* Security & Standards Compliance: Resolved all strict validation notices flagged by the WordPress Plugin Check tool (escaped inline JavaScript nonces, unslashed request variables, and sanitized version outputs).
* Internationalization (i18n): Added official translator comments to all localized strings containing placeholders for seamless translate.wordpress.org support.
* Database Hardening: Fully prepared dynamic database queries and enforced strict parameter types across history rollback operations.
* Architecture Modernization: Removed deprecated `load_plugin_textdomain` calls and cleaned up domain path headers in compliance with modern WordPress Core standards.
* Directory Guidelines: Refined external upgrade links to route to the informational landing page.

= 1.8.0 =
* Architecture Update: Introduced Database Garbage Collector to prevent database bloat and ensure lightning-fast server performance.
* Rollback Engine Hardened: The Time Machine core can now natively detect and safely restore complex custom meta and ACF data.
* UI Polish: Completely overhauled the History & Rollback UI. Raw database slugs are now dynamically parsed into beautiful, human-readable labels.
* PHP 8.1+ Security: Enhanced strict null-pointer checks on history parsing and string operations to prevent fatal errors on modern servers.
* Compliance & Links: Updated premium upgrade links to direct users to the official plugin landing page, fully complying with WordPress.org directory guidelines.

= 1.7.0 =
* Core Optimization: Introduced an aggressive Cache-Busting architecture. Completely bypassed LiteSpeed and Object Cache layers on REST API endpoints. Your bulk edits (prices, stock) now reflect instantly on the table—no manual page refreshes needed!
* Pricing Engine Fix: Resolved a critical logic flaw where updating regular prices wouldn't clear active `sale_price` values. Bulk price increases/decreases now accurately override any existing discounts.
* PHP 8.1+ Compatibility: Hardened the REST API controllers against strict null-pointer deprecation errors. The plugin is now fully bulletproof on the latest PHP versions.
* Security Enhancement: Added strict capability checks (`manage_woocommerce`) to AJAX endpoints to prevent unauthorized requests by lower-tier users.

= 1.6.4 =
* Security: Added strict XSS sanitization (`escapeHTML`) to frontend product names to comply with WordPress.org security guidelines.
* Cleanup: Added `uninstall.php` to properly drop custom database tables (`rbe_history`, `rbe_history_items`) upon complete plugin deletion.
* Core: Removed remote API calls for promotional banners to strictly adhere to WordPress Plugin Guidelines (No Phoning Home).
* The website address has been updated.

= 1.6.3 =
* Minor stability and review standard updates.

= 1.6.1 =
* Fixed a logic bug where the Pro upsell banner would incorrectly display for active Pro users.
* Improved internationalization (i18n): History logs are now saved as raw slugs and translated dynamically based on the user's current WordPress language.
* Forced cache busting to ensure the latest JavaScript and translation assets load correctly.

= 1.6.0 =
* Added visual Progress Bar for bulk operations to provide sleek, real-time feedback during large updates.

= 1.5.0 =
* MAJOR UPDATE: Introduced "Anti-504" chunking architecture. Bulk edits now process in asynchronous batches (50 items/request) with a live progress bar.
* Added Advanced Meta Query filtering: Instantly filter products by Min/Max Price and Min/Max Stock levels.
* Added Psychological Pricing strategy: New bulk action to round prices to specific decimals (e.g., .99 or .90).
* Rollback System hardened: Snapshots now securely capture and restore `sale_price` and WooCommerce `stock_status`.

= 1.4.1 =
* Removed external third-party checkout scripts to comply with WordPress.org guidelines.
* Updated upgrade links to direct users to the official landing page securely.

= 1.3.1 =
* Added instant Rollback (Time Machine) state management.
* Improved AJAX notice dismissal for review requests.
* Fixed double calculation bugs on bulk percentage price increases.

= 1.2.0 =
* Introduced Database Rollback snapshots.
* Added server-side pagination, search, category filters, and sorting.

= 1.1.0 =
* Added variable product accordion sub-rows.
* Added Bulk Action Toolbar for percentage/fixed price and stock operations.

= 1.0.0 =
* Initial release. HPOS compatibility and inline editing REST API added.