ページ一覧のクイック編集を確定した時にエラーが出る問題を修正しました。
| ... | ... |
@@ -249,6 +249,21 @@ class Class_Rucy_Editer {
|
| 249 | 249 |
if ( !in_array( $_POST['post_type'], $accept_post_types ) ) {
|
| 250 | 250 |
return; |
| 251 | 251 |
} |
| 252 |
+ if ( |
|
| 253 |
+ !array_key_exists( 'rc_hour', $_POST ) |
|
| 254 |
+ && !array_key_exists( 'rc_minutes', $_POST ) |
|
| 255 |
+ && !array_key_exists( 'rc_month', $_POST ) |
|
| 256 |
+ && !array_key_exists( 'rc_day', $_POST ) |
|
| 257 |
+ && !array_key_exists( 'rc_year', $_POST ) |
|
| 258 |
+ && !array_key_exists( 'rc_rb_hour', $_POST ) |
|
| 259 |
+ && !array_key_exists( 'rc_rb_minutes', $_POST ) |
|
| 260 |
+ && !array_key_exists( 'rc_rb_month', $_POST ) |
|
| 261 |
+ && !array_key_exists( 'rc_rb_day', $_POST ) |
|
| 262 |
+ && !array_key_exists( 'rc_rb_year', $_POST ) |
|
| 263 |
+ ) {
|
|
| 264 |
+ return; |
|
| 265 |
+ } |
|
| 266 |
+ |
|
| 252 | 267 |
$post_meta_keys = $component->get_post_meta_keys(); |
| 253 | 268 |
$date = mktime( $_POST['rc_hour'], $_POST['rc_minutes'], 00, $_POST['rc_month'], $_POST['rc_day'], $_POST['rc_year'] ); |
| 254 | 269 |
if( $date ) {
|