Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
A duplicate of the issue at: https://drupal.org/node/1984424.
This patch is for the 7.x-2.0-unstable version.
Comment | File | Size | Author |
---|---|---|---|
#5 | media-disable-filter-caching-2017761-5.patch | 641 bytes | Rob C |
#2 | 2017761-disable-filter-caching-2.patch | 417 bytes | thamba |
#1 | 1984424-disable-filter-caching-2.patch | 417 bytes | thamba |
Comments
Comment #1
thamba CreditAttribution: thamba commentedPatch for the 7.x-2.0-unstable version.
Comment #2
thamba CreditAttribution: thamba commentedRenaming the patch file to match the issue.
Comment #3
thamba CreditAttribution: thamba commentedA quick note to anyone trying this patch out:
You need to turn off the "Convert media tags to markup" filter in each of your textformats under admin/config/content/formats. Then turn it on again and save.
I did not get the patch working for a long time with or without cache enabled until I did the following above. This could save time for anyone out there trying to solve this issue.
Comment #4
Rob C CreditAttribution: Rob C commentedUpdating issue status. (this is still an issue, install 2.x, add media to some wysiwyg-enabled body field, visit as anonymous, presto, issue).
Comment #5
Rob C CreditAttribution: Rob C commentedRerolling patch for media 2.x changes.
Comment #6
justindodge CreditAttribution: justindodge commentedJust re-saving the text format pages (in my case admin/config/content/formats/filtered_html and admin/config/content/formats/full_html) was sufficient to get the changes in this patch to take effect - it's not necessary to disable/re-enable any of the filters as suggested in #3.
It would probably be nice if this patch included an update hook which calls
filter_formats_reset()
which resets the text format caches on your behalf so that this step isn't needed.The patch did resolve my particular issue, which was anonymous users seeing the contextual links for the file entity appear in plain text above media embedded in WYSIWYG.
Edit - Apparently
filter_formats_reset()
doesn't do the trick. It sure seemed like it would.Comment #7
Dave ReidI'm leaning more and more towards implementing this. But maybe for only new users. It would be nice if this could be configurable.
Comment #8
Dave ReidComment #9
joseph.olstadthe related duplicate issue was closed fixed , as for making it optional, leaning on 'outdated' its not going to make it for 2.0, if you want this put a patch and it'll be considered for a post 2.0 release.
removing tag '7.x-2.0 release blocker'