Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Update the embed block to show no preview for smugmug embeds #12961
Fixes #11960 by adding smugmug.com to the array of domains that the "no-preview" screen is shown. Also adjusted the matching criteria to grab the base domain instead of just stripping "www." off of the host if found. This was necessary as smugmug embeds are in the format "username.smugmug.com"
How has this been tested?
Manually tested to verify that both individual photos and galleries display the no preview message using:
Types of changes
New feature (non-breaking change which adds functionality)
I am doing some general testing on GB version 5.0 RC-1.
"Sorry, this embedded content cannot be previewed in the editor."