=== LeExport ===
Contributors: laobuluo
Tags: export, seo, csv, links, sitemap
Requires at least: 5.8
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 0.2.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Export post/page data for SEO submission (CSV/TXT), with filters and split archives, plus batch dead-link detection.

== Description ==

LeExport helps you:

- Export published content data to CSV (ID, Title, URL, categories/tags and URLs, published date)
- Export a pure URL list (TXT / single-column CSV) for SEO submissions
- Filter exports by published date range, post ID range, and categories
- Split large exports into multiple files (ZIP) when row count exceeds a configurable limit (default 10000)
- Run dead-link detection in batches with progress (scan site permalinks or links inside content)
- Block unsafe scan targets (SSRF protection) with optional allow-private-network setting

== Installation ==

1. Upload the `leexport` folder to `/wp-content/plugins/`
2. Activate the plugin through the "Plugins" menu in WordPress
3. Go to "Settings → LeExport"

== Frequently Asked Questions ==

= Why is the admin UI still English in Chinese WP? =

Make sure `languages/leexport-zh_CN.mo` exists and your admin locale is `zh_CN`. WordPress loads `.mo` files (binary), not `.po`.

= Why does a large export download as a ZIP? =

When the number of rows exceeds "Rows per file" in export settings (default 10000), the plugin packages multiple CSV/TXT files into one ZIP. Set the value to 0 to always export a single file. PHP Zip extension (`php-zip`) is required for split exports.

= Do export filters apply to dead-link scans? =

Yes. Date, ID, and category filters use the same saved settings for exports and link scans.

== Changelog ==

= 0.2.0 =
* Added export filters: published date range, post ID range, and category selection.
* Added large-export split: auto ZIP when rows exceed limit; configurable rows per file (default 10000, 0 = single file).
* Improved link-scan security: block localhost/private/reserved URLs by default; optional allow-private-targets setting.
* Scan results show Blocked status; scan CSV export includes Status column.
* Content-link scan uses raw post content (avoids shortcode/render side effects).
* Fixed potential fatal error in unused dataset builder.
* Expanded Simplified Chinese translations; recompiled `leexport-zh_CN.mo`.

= 0.1.0 =
* Initial release.
