| 开发者 | themepure |
|---|---|
| 更新时间 | 2026年9月23日 21:57 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
pure_demo_importer_register action — see "Registering demos" below.
pure-demo-importer folder to /wp-content/plugins/.functions.php (or a core plugin's bootstrap), hook the pure_demo_importer_register action and call ThemePure_Demo_Importer::register() with your config. See the "Registering demos" section for a full example.Either your theme/core plugin hasn't called ThemePure_Demo_Importer::register(), or it called it with an empty demos array. See the "Registering demos" section above for the correct hook + call pattern. If you want to populate demos via filter only (no register() array), use the {theme_slug}_demo_importer_demos filter described above.
No. The reset always preserves Pure Demo Importer itself — deactivating the plugin running the reset would terminate the request mid-flight. Use the themepure_di_reset_preserve_plugins filter to preserve additional plugins.
Yes. Pure Demo Importer vendors the full WordPress Importer plugin internally at vendor/wordpress-importer/. There is no runtime dependency on the upstream plugin being installed.
wp-content/uploads/themepure-di-logs-{random}/import.log — rotated at ~2 MB. Disable with add_filter( 'themepure_di_logging_enabled', '__return_false' );.
.sql dump verbatim, which is an arbitrary-SQL path and has no place in a WordPress.org release. Normal WXR / widgets / customizer importing is unchanged.svg / svgz or forcing a MIME type from the filename. SVG in demo content is now refused during import unless a proven sanitizer library (enshrined/svg-sanitize, as bundled by Safe SVG) is installed.LIBXML_NONET, no entity substitution, DOCTYPE refused, document size capped, libxml error state always restored. The deprecated libxml entity-loader toggle is gone.WP_Import::import() can no longer read arbitrary fields from the original request. $_POST is replaced with a minimal allowlisted array for the duration of the call and restored in a finally block, along with filters, deferred counting, cache invalidation and output buffers.web.config and an index.php stub, instead of Apache-2.2-only .htaccess syntax that could 500 a directory on Apache 2.4.set_time_limit() and memory_limit ini_set() calls. Imports rely on bounded AJAX chunks; memory headroom is requested once via WordPress's own wp_raise_memory_limit( 'admin' ).tools/build-sql-pack.php developer script from the distributed package.