| @@ -150,8 +150,12 @@ | ||
| 150 | 150 | [ |
| 151 | 151 | 'url' => '*', |
| 152 | 152 | 'query_params' => ['page' => 'suretriggers'] |
| 153 | 153 | ], |
| 154 | + [ | |
| 155 | + 'url' => '*', | |
| 156 | + 'query_params' => ['tab' => 'plugin-information', 'TB_iframe' => 'true'] | |
| 157 | + ], | |
| 154 | 158 | // [ |
| 155 | 159 | // 'url' => '/wp-admin/post-new.php', |
| 156 | 160 | // 'post_type' => ['post', 'page'] |
| 157 | 161 | // ], |
| @@ -183,8 +187,14 @@ | ||
| 183 | 187 | * @return void |
| 184 | 188 | */ |
| 185 | 189 | public function load_template() |
| 186 | 190 | { |
| 191 | + // async-upload.php & friends fire admin_init but answer with a raw payload, | |
| 192 | + // so the frame markup would be read as part of the response. | |
| 193 | + if ( ! Utils::is_admin_page_request() ) { | |
| 194 | + return; | |
| 195 | + } | |
| 196 | + | |
| 187 | 197 | Utils::load_template('Templates.php'); |
| 188 | 198 | } |
| 189 | 199 | |
| 190 | 200 | public function capture_wp_menu($parent_file) |