Skip to content

Commit 7fa0abf

Browse files
committed
oembed: Allow rich media and let them have WP blogs
1 parent 20a505b commit 7fa0abf

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

plugins/links/oembed-rich.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@ export default {
66
return;
77
}
88

9+
// Some oembed rich publishers have WordPress /blogs. Allow rich media and ignore WP blogs.
10+
var isWordpress = /wp\-embedded\-content/.test(oembed.html);
11+
if (isWordpress) {
12+
return;
13+
}
14+
915
var rels = [CONFIG.R.oembed];
1016

1117
if (whitelistRecord.isAllowed('oembed.rich', "reader")) {

0 commit comments

Comments
 (0)