You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit e8356b8
Browse filesBrowse the repository at this point in the historyBrowse files
Preserve portable file references in editor cards [all]
Normalize scalar file values for card rendering without changing saved attributes. Keep fallback cards removable and sortable alongside media IDs, and cover single and repeater fields, save/reload, and media selection.
Refs #117
Copy file name to clipboardExpand all lines: docs/guides/field-patterns.md
+10Lines changed: 10 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -582,6 +582,16 @@ Control what the files field returns:
582
582
583
583
Use `"id"` when you need to call `wp_get_attachment_image()` yourself. Use `"url"` for simple background images. Use `"object"` (the default) for everything else.
584
584
585
+
With `"returnFormat": "id"`, an imported string reference such as `"buckshair-home"`
586
+
is passed through unchanged. The editor shows a fallback card without a thumbnail,
587
+
including in repeater rows. Opening or saving the page does not convert a scalar
588
+
reference into an array. Mixed lists of attachment IDs and string references also
589
+
work; only positive attachment IDs are looked up in the media library.
590
+
591
+
Blockstudio does not resolve custom string references to attachments. Resolve them
592
+
in your own render filter or template when using portable names across sites.
593
+
Choosing a replacement in the media library stores its attachment ID as usual.
Copy file name to clipboardExpand all lines: readme.txt
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -65,6 +65,7 @@ Download the latest release zip from [GitHub Releases](https://github.com/inline
65
65
* Fix: the Update URI header prevents unrelated WordPress.org plugins from being offered as Blockstudio updates (#113)
66
66
* Fix: repeater row preferences preserve other rows and tolerate unavailable or malformed browser storage
67
67
* Fix: links inside Blockstudio blocks no longer navigate away from the editor when clicked (#116)
68
+
* Fix: files fields accept scalar string references without crashing the editor and preserve fallback cards when removing or reordering values (#117)
68
69
69
70
= 7.7.1 =
70
71
* Fix: page sync skips post writes, update hooks, timestamps, and revisions when merged content and managed fields are unchanged (#104)
0 commit comments