Core media embeds have a error that shows on the page when the related media item has been deleted.
"The referenced media source is missing and needs to be re-embedded. "

This makes total sense. The average thing is that it shows for anonymous users, which it definitely shouldn't in my opinion. Lets fix that.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

DanielVeza created an issue. See original summary.

DanielVeza’s picture

Status: Active » Needs review
FileSize
1.48 KB

I've overridden the template, added some bootstrap classes (Creditted @gareth.poole for this) and added an authenticated user check.

This could be pushed further with a new permission, but I think that's not needed for the starter theme.

HeikeT’s picture

Tested on internal DEV and works fine! Ta!

HeikeT’s picture

Title: Hide missing media indicator for deleted embedded media » Hide missing media indicator for deleted embedded media in the WYSIWYG editor from the public.

DanielVeza’s picture

  • DanielVeza committed b2fe575 on 5.0.x
    Issue #3154718 by DanielVeza, HeikeT, gareth.poole: Hide missing media...
DanielVeza’s picture

Status: Needs review » Fixed

Committed, thanks!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.