Changelog — JPKCom Harden & Trim

Version history of the JPKCom Harden & Trim WordPress plugin.

Version history of jpkcom-harden-trim (opens in a new tab). Entries are taken verbatim from the project's README. A hands-on guide with tips is available in the project guide.

1.2.0

  • Added: WP-CLI command wp harden-trim with status, get, set, reset, presets, preset, export and import. It uses the same validation, presets and import/export as the settings page, and refuses (writing nothing) a value it cannot store as given: an invalid value, a setting locked by a constant, a role that does not exist. --dry-run everywhere it writes
  • Added: a read-only Abilities API ability, jpkcom-harden-trim/get-status, for MCP and AI clients: what every setting does on this site and why, including a switch that is on but does nothing (kill switch, a core constant, a block theme) and a value that comes from a constant or a filter instead of the settings page. Administrators only (manage_options); JPKCOM_HARDEN_TRIM_ABILITIES set to false removes it
  • Changed: nothing for existing sites. No setting, default or feature behaves differently

1.1.3

  • Added: updates for inactive JPKCom plugins. WordPress never runs the code of a deactivated plugin, so its own updater never ran and it was never offered an update. Every JPKCom plugin now ships updater 1.5.0; one copy answers for all installed JPKCom plugins, active or not, with the update row, the icon and "View details". The SHA-256 check applies to an inactive plugin exactly as to an active one. On multisite, at least one JPKCom plugin must be network-active or active on the main site
  • Security: the stored list of plugin updates no longer contains JPKCom download URLs; they are added back only while a JPKCom updater is loaded, so a request without one cannot install an unverified package. The checksum check now also verifies a package another plugin supplied instead of accepting it, and recognises every GitHub address of a release file
  • Changed: plugins installed as a Git (or other version-control) checkout or in a renamed folder are told about a new release but never updated automatically, because an update would delete the checkout or the renamed folder. Update information is fetched only for users who can update plugins, in WordPress's update cron and in WP-CLI, never for anonymous visitors

1.1.2

  • Added: a plugin icon. The update manifest now points WordPress to the JPKCom logo, so the Updates screen (Dashboard → Updates) shows it next to this plugin instead of the generic pattern wordpress.org generates from the slug

1.1.1

  • Changed: the German translations call the defaults "Standardwerte"; "Voreinstellungen" now only means the presets, so the settings page no longer uses one word for both

1.1.0

  • Changed: XML-RPC is blocked on every site right after this update, because the new "Disable XML-RPC" switch is on by default and the stored settings of an earlier version do not contain it. Jetpack, the WordPress mobile apps and incoming pingbacks stop working until you untick the switch in Settings → Harden & Trim or set define( 'JPKCOM_HARDEN_TRIM_XMLRPC', false ); in wp-config.php. Every preset keeps it on, so applying a preset also switches it on again
  • Added: "Disable XML-RPC" switch, mirroring JPKCom Disable XML-RPC 1.0.10: xmlrpc.php answers 403 with an XML-RPC fault, the endpoint is no longer advertised, trackbacks are refused
  • Added: "Disable comments" switch (off by default, never part of a preset), mirroring JPKCom Disable Comments 1.0.11: comments and pings closed on every post type, existing comments hidden, every post reports zero comments (no comment links or counts in /feed/ and the Atom feed, no "N comments" in themes), comment screens and feeds removed. The REST comment routes answer every request that is not a block editor Notes request with the rest_no_route 404 a missing route gives (OPTIONS too, which a missing route answers with an empty 200); a note's route whose id parameter names a different comment is not a Notes request. Notes keep working, and WordPress' own permission checks decide who may read or write them. Because the routes stay registered for Notes, the REST index at /wp-json/ lists them. The query-string comment feeds (?feed=comments-rss2, ?p=123&feed=rss2) answer 404 directly instead of redirecting to a pretty URL that would 404 as well; this is deliberate
  • Added: a hint on the settings page while the matching standalone plugin is active
  • Added: German translations of the new texts (de_DE, de_DE_formal)

1.0.1

  • Changed: the updater keeps its manifest cache, its failure marker and its fetch lock in site transients. On multisite the network now fetches the manifest once instead of once per site; on a single site nothing changes
  • Changed: uninstalling also removes the updater's network-wide cache entries, and still the per-site ones 1.0.0 wrote

1.0.0

  • Added: Initial release.
  • Added: performance switches (emoji, self pingbacks, asset versions, post embeds, comment reply, dashicons, block library CSS, global styles, heartbeat, revisions, autosave interval)
  • Added: <head> cleanup, privacy and security switches with harmless defaults
  • Added: role exemption (off by default), presets, JSON import/export, wp-config.php constants and a kill switch
  • Added: German translations (de_DE, de_DE_formal)