@@ -283,6 +283,12 @@ function ppom_admin_save_form_meta() {
283
283
$ aviary_api_key = 'NA ' ;
284
284
$ show_cart_thumb = 'NA ' ;
285
285
286
+ if ( is_string ( $ _REQUEST ['ppom ' ] ) ) {
287
+ $ ppom_encoded = $ _REQUEST ['ppom ' ];
288
+ parse_str ( $ ppom_encoded , $ ppom_decoded );
289
+ $ _REQUEST ['ppom ' ] = $ ppom_decoded ['ppom ' ];
290
+ }
291
+
286
292
$ ppom_meta = ( isset ($ _REQUEST ['ppom_meta ' ]) ? $ _REQUEST ['ppom_meta ' ] : isset ($ _REQUEST ['ppom ' ]) ) ? $ _REQUEST ['ppom ' ] : '' ;
287
293
288
294
if ( empty ( $ ppom_meta ) ) {
@@ -356,6 +362,11 @@ function( $pm ) {
356
362
357
363
358
364
$ ppom_id = $ wpdb ->insert_id ;
365
+ if ( is_string ( $ ppom ) ) {
366
+ $ ppom_encoded = $ ppom ;
367
+ parse_str ( $ ppom_encoded , $ ppom_decoded );
368
+ $ ppom = $ ppom_decoded ['ppom ' ];
369
+ }
359
370
360
371
$ product_meta = apply_filters ( 'ppom_meta_data_saving ' , (array ) $ ppom , $ ppom_id );
361
372
$ product_meta = ppom_sanitize_array_data ( $ product_meta );
@@ -450,6 +461,12 @@ function ppom_admin_update_form_meta() {
450
461
}
451
462
global $ wpdb ;
452
463
464
+ if ( is_string ( $ _REQUEST ['ppom ' ] ) ) {
465
+ $ ppom_encoded = $ _REQUEST ['ppom ' ];
466
+ parse_str ( $ ppom_encoded , $ ppom_decoded );
467
+ $ _REQUEST ['ppom ' ] = $ ppom_decoded ['ppom ' ];
468
+ }
469
+
453
470
$ ppom_meta = isset ( $ _REQUEST ['ppom_meta ' ] ) ? $ _REQUEST ['ppom_meta ' ] : $ _REQUEST ['ppom ' ];
454
471
$ product_meta = apply_filters ( 'ppom_meta_data_saving ' , (array ) $ ppom_meta , $ productmeta_id );
455
472
$ product_meta = ppom_sanitize_array_data ( $ product_meta );
0 commit comments