From a64bc08c50d799f2658c5f0e575e5a2312d4393d Mon Sep 17 00:00:00 2001 From: Vitalii Solovei Date: Wed, 10 Jun 2026 17:46:36 +0200 Subject: [PATCH] add media attachment rule for block references (WP-983) Co-Authored-By: Claude Sonnet 4.6 --- inc/config/media-attachment-rules.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/inc/config/media-attachment-rules.yml b/inc/config/media-attachment-rules.yml index 3af5b32d..baeb61d8 100644 --- a/inc/config/media-attachment-rules.yml +++ b/inc/config/media-attachment-rules.yml @@ -19,6 +19,7 @@ parameters: - "@wordpress.layout" - "@wordpress.style" - "@wordpress.width" + - "@wordpress.block.ref" services: acf.editor.mode: @@ -153,3 +154,10 @@ services: - "core/.+" - "width" - "copy" + + wordpress.block.ref: + class: Smartling\Helpers\GutenbergReplacementRule + arguments: + - "block" + - "ref" + - "related|attachment"