mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-06-05 15:09:37 +09:00
Merge remote-tracking branch 'origin/master' into fix/form_columns_display
This commit is contained in:
@@ -616,10 +616,6 @@ if ( ! class_exists( 'um\admin\core\Admin_Builder' ) ) {
|
||||
|
||||
$output['error'] = null;
|
||||
|
||||
// var_dump( $_POST );
|
||||
// var_dump( UM()->admin()->sanitize_builder_field_meta( $_POST ) );
|
||||
// exit;
|
||||
|
||||
$array = array(
|
||||
'field_type' => sanitize_key( $_POST['_type'] ),
|
||||
'form_id' => absint( $_POST['post_id'] ),
|
||||
|
||||
@@ -69,11 +69,17 @@ if ( ! class_exists( 'um\admin\core\Admin_DragDrop' ) ) {
|
||||
|
||||
$row_id = str_replace( '_um_row_', '', $key );
|
||||
|
||||
if ( strstr( $_POST[ '_um_rowcols_' . $row_id . '_cols' ], ':' ) ) {
|
||||
$cols = sanitize_text_field( $_POST[ '_um_rowcols_' . $row_id . '_cols' ] );
|
||||
} else {
|
||||
$cols = absint( $_POST[ '_um_rowcols_' . $row_id . '_cols' ] );
|
||||
}
|
||||
|
||||
$row_array = array(
|
||||
'type' => 'row',
|
||||
'id' => sanitize_key( $value ),
|
||||
'sub_rows' => absint( $_POST[ '_um_rowsub_' . $row_id . '_rows' ] ),
|
||||
'cols' => absint( $_POST[ '_um_rowcols_' . $row_id . '_cols' ] ),
|
||||
'cols' => $cols,
|
||||
'origin' => sanitize_key( $_POST[ '_um_roworigin_' . $row_id . '_val' ] ),
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user