新規のページ作成画面などで管理画面にエラーがでるようだったので、修正してみました。
Genki Katsutani authored on 2015/11/24 10:40:01... | ... |
@@ -245,6 +245,9 @@ class Class_Rucy_Editer { |
245 | 245 |
if( defined( 'DOING_AUTOSAVE' ) && DOING_AUTOSAVE ) { |
246 | 246 |
return; |
247 | 247 |
} |
248 |
+ if ( !isset( $_POST['post_type'] ) ) { |
|
249 |
+ return; |
|
250 |
+ } |
|
248 | 251 |
$accept_post_types = $component->get_support_post_type(); |
249 | 252 |
if ( !in_array( $_POST['post_type'], $accept_post_types ) ) { |
250 | 253 |
return; |