Skip to content

v3.1.2

Choose a tag to compare

@wpacademy wpacademy released this 08 Jul 17:30

A bug-fix patch for three community-reported issues. Thanks to @Mrshahidali420 for the detailed reports and fixes.

Fixed

  • MCP endpoint 404 with WooCommerce 10.5+ active (#64). WooCommerce 10.5+ bundles and autoloads the same MCP Adapter classes but only boots the adapter behind its own off-by-default "MCP Integration" flag. EMCP treated "classes loadable" as "adapter booted" and deferred, so mcp_adapter_init never fired and /wp-json/mcp/emcp-tools-server 404'd. EMCP now boots the already-loaded adapter itself (idempotent), so its endpoint no longer depends on an unrelated WooCommerce flag.
  • move-block could silently delete a block (#67). Moving a block inside a later container, or across levels, shifted the target path on removal — losing the block (or misplacing it) while reporting success. The index-shift compensation now covers every mode and depth, and a move into the block's own subtree is rejected as a no-op.
  • Filesystem writes didn't take effect under OPcache (#66). write-file / edit-file / delete-file didn't invalidate OPcache for PHP files, so on hosts with opcache.validate_timestamps=0 the old bytecode kept running. They now invalidate OPcache after each .php write.

Verified end-to-end locally (WordPress 6.9 / WooCommerce 10.9.4) with regression tests added for the move-block cases.


Free updates are distributed here on GitHub. Download emcp-tools-3.1.2.zip below.