mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-15 20:53:39 +09:00
- fixed builder PHP errors;
This commit is contained in:
@@ -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