Patch Changes
-
#2897
f622a17Thanks @ascorbic! - Fixes the audit log never recording media uploads or the previous state of updated content. The plugin declared onlycontent:read, so EmDash skipped itscontent:beforeSaveandmedia:afterUploadhooks and logged[hooks] Plugin "audit-log" declares content:beforeSave hook without content:write capability — skippingon every boot.The manifest now also declares
content:writeandmedia:read. EmDash requirescontent:writefrom any plugin that registers acontent:beforeSavehook, because such a hook can rewrite the draft; the audit log returns the draft unchanged and only reads the stored item to record a before/after diff. Sites that installed the plugin from the marketplace are asked to approve the new capabilities when they update it. Recording the previous state of an update also needs an EmDash release that includes the item ID in thecontent:beforeSaveevent; on earlier EmDash releases the update entry is recorded without the previous state.