The current file usage tracking for blocks only applies to the block_admin_configure form. It should also apply to the block_add_block_form form.
A check to ensure that the block body field exists before attempting to inspect it for file IDs should also be added. Only custom blocks have a body field.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | 3440404-2.patch | 8.71 KB | devin carlson |
| #2 | 3440404-2-tests-only.patch | 4.88 KB | devin carlson |
Comments
Comment #2
devin carlson commentedA patch to add file usage tracking to the block_add_block_form form and add a check for the body field before attempting to use it.
Comment #4
devin carlson commentedTested #2 and committed to Editor 7.x-1.x.