humanmade / protected-embeds

A drop-in replacement for WordPress.com protected embeds
11 stars 4 forks source link

wp_die() gets called on post page and admin post edit.php page #15

Open vishaldodiya opened 6 years ago

vishaldodiya commented 6 years ago

https://github.com/humanmade/protected-embeds/blob/master/protected-embeds.php#L170

At this line $wp->query_vars['protected-iframe'] won't be defined on edit.php page or any post request page. It is throwing wp_die() on those pages. I know it is used for redirect rule and iframe loading support but parse_request gets called on all page having post.