Patch Changes
-
#3531
f6674faThanks @danielmlr! - Fixes recreating a deleted collection failing withCollection "…" already exists(COLLECTION_EXISTS) on sites with media usage tracking turned on, which new sites turn on automatically. Creating a collection through the admin, the API, MCP or a seed now finishes the deleted collection's media usage cleanup first, so sites already stuck in this state can recreate the collection after upgrading.Each create attempt does a bounded amount of that cleanup. If it can't finish, for example because the deleted collection referenced media from many entries, the error says the collection is being deleted, and the next attempt continues where the last one stopped. If the cleanup has failed, the error says so and includes the deleted collection's ID in
details.deletedCollectionId. Both errors keep theCOLLECTION_EXISTScode. Send that ID as{ "collectionId": "…" }toPOST /_emdash/api/admin/media-usage/collection-deletions/retry, which requires theschema:managepermission and, for API tokens, theadminscope, then create the collection again. -
#3537
02c2ad3Thanks @akapug! - Fixes the WordPress media URL rewrite matching a URL map key that carries a query string by its base URL. A key such as an attachment's?attachment_id=7shortlink also matched the home page, so the rewrite pointed links to the home page at that file. Such a key now matches that URL only, and inside a text field only where the URL ends with it. -
#3322
1cdca21Thanks @danielmlr! - FixesrouteCtx.uibeing undefined for the declared Block Kit pages and dashboard widgets of plugins registered inplugins: []. They now receive the administrator's locale, text direction, and surface, as sandboxed plugins do, so a plugin can localize its Block Kit text in both install modes. -
Updated dependencies [
c66b49b,9e297d6,a3609fb,618591e]:- @emdash-cms/admin@1.0.1-rc.1
- @emdash-cms/auth@1.0.1-rc.1
- @emdash-cms/blocks@1.0.1-rc.1
- @emdash-cms/gutenberg-to-portable-text@1.0.1-rc.1