Skip to content

Release v2.1.3

Latest

Choose a tag to compare

@github-actions github-actions released this 27 Nov 00:20
d073eaf

Fixes

  • Stored Site Addresses in the Manifest: manifest.txt now records the addresses stored in the home and siteurl options (WP_HOME and WP_SITEURL when wp-config.php defines them) as home_url and site_url, as EngineScript's own exports do. Before, it recorded home_url() and site_url(), which take the scheme of the admin page (https on an HTTPS admin page even when the stored address is http, and http when WordPress does not detect HTTPS) and pass through plugin filters such as those of multilingual plugins. EngineScript's importer now reads the site address and table prefix from these lines and moves the database's URLs from the stored address.
  • Address Constant Warning Removed: The exporter page no longer warns when neither WP_HOME nor WP_SITEURL is defined, because EngineScript's importer reads the site address from manifest.txt. The warning about wp-config.php outside the WordPress directory stays.
  • Subfolder Sites Not Exported: A site whose Site Address or WordPress Address has a path, such as a site in /blog or WordPress in its own /wp folder, is no longer exported. EngineScript only hosts sites at the root of their domain and its importer stops on such archives, so the exporter page shows an error, with both addresses, in place of the export form, and an export request is refused with the same error.

Compatibility

  • Minimum WordPress 7.0: Raise the minimum WordPress version to 7.0, the version Jetpack requires.
  • Tested Up To in the Readme Only: The plugin header no longer declares "Tested up to"; readme.txt does. Plugin Check 2.2 refuses the field in the plugin header, because two copies can drift apart.
  • Minimum PHP 8.3: Raise the minimum PHP version from 8.2 to 8.3. PHP 8.2 reaches end of life on December 31, 2026, and EngineScript servers no longer support it. A site on PHP 8.2 keeps its current version of the plugin until it moves to PHP 8.3 or newer. The tests cover PHP 8.3 to 8.5.

Architecture

  • Longer Code Prefix: The plugin's PHP functions, constants and global variables now start with esse_ or ESSE_ in place of sse_ or SSE_, because WordPress asks for a prefix of at least four characters. ES_SITE_EXPORTER_VERSION is now ESSE_VERSION. Code that calls a plugin function directly, or defines one of the plugin's SSE_ constants in wp-config.php, has to use the new name. The names that sites and other code already depend on are unchanged: the sse_ filters, the SSE_WP_CLI_PATH constant, the stored option, the scheduled events, and the admin actions.
  • Earlier Export Directory: Cleanup no longer looks in the fixed-name export directory that versions before 2.1.1 used, and works only in this installation's own export directory. The plugin no longer removes anything from the earlier directory. If enginescript-site-exporter-exports still exists in the temporary directory after an update from 2.1.0 or earlier, delete it by hand.
  • Simpler File Validation: A download, a deletion, and the archive list now check each file name once instead of twice, and every containment check uses one path comparison. The checks that guard against a file being replaced during a download are unchanged, and so is what is accepted or refused. The archive file name pattern now ends in \z, like the directory pattern; the exact rebuild of the name already refused a trailing line break.
  • Core Admin Notices: The HTTPS warning and the importer warnings are printed with WordPress's wp_admin_notice(). The markup is unchanged.
  • Modern PHP: Code that PHP 8 offers a shorter form for uses it: match, str_ends_with(), arrow functions, and a first-class callable. Return tags that only repeated a native return type were removed.

Tooling

  • Translation Template: The template is now generated locally with composer make-pot and committed with each change, and the Update Translation File workflow was removed. The template names the GitHub issue tracker as its bug report address, in place of a WordPress.org support forum the plugin does not have, and its source references were refreshed.
  • Contributing Guide: Added CONTRIBUTING.md, matching the other EngineScript plugins: setup, checks, test layers, file layout, release files, and the translation template.
  • Rector: A new Rector job runs rector process --dry-run with rector.php and fails when PHP 8.3 or Rector's dead-code, code-quality, type-declaration, or early-return rules would change the code. rector.php skips the rules that conflict with WordPress, each with its reason; composer rector runs the same check, and composer check-all includes it.
  • Modern JavaScript and Browser Support: ESLint also applies eslint-plugin-unicorn rules for modern built-ins and patterns, and eslint-plugin-compat fails on a browser API that WordPress's supported browsers lack. Stylelint does the same for CSS with stylelint-no-unsupported-browser-features. Both read the browser list from @wordpress/browserslist-config.
  • WordPress CSS Standards: Stylelint checks the stylesheet against WordPress's CSS coding standards (@wordpress/stylelint-config) in place of stylelint-config-standard. The WordPress config needs Stylelint 17, so Stylelint stays on 17 until the config supports 18. The stylesheet was adjusted to match (font-weight: 700 in place of bold, and a blank line at the start of a media query) and looks the same.- Arrays: PHPCS now requires the short array syntax, the form all EngineScript plugins use.
  • Psalm 7: Static analysis runs on Psalm 7. It found six (string) casts of request values that is_string() had already checked, which are removed. The included files' direct-access guards carry a Psalm note, because Psalm 7.5 reads them as already decided by the main file's own check; they still stop a direct request. Psalm no longer checks the comments in the WordPress stubs, which Psalm 7 rejects in places. Behavior is unchanged.
  • npm Advisories: package.json overrides smol-toml, katex, and re2js (used by the Markdown linter) with releases that fix their advisories.
  • Workflow Names: The JavaScript test job is now "JavaScript Tests (Node 24)", the name it has in the other EngineScript plugins. Three issue templates that no workflow used were removed.

Installation

  1. Download the zip file
  2. Upload to your WordPress site through the Plugins > Add New > Upload menu
  3. Activate the plugin

Full Documentation