Skip to content

Commit 381326c

Browse files
committed
add JSON_PRETTY_PRINT in export
1 parent 0de0dfd commit 381326c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

admin/mf_posttype.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -885,7 +885,7 @@ public function export_post_type(){
885885

886886
header('Content-type: application/javascript');
887887
header('Content-Disposition: attachment; filename="'.$post_type.'.json"');
888-
print json_encode($data);
888+
print json_encode($data,JSON_PRETTY_PRINT);
889889
die;
890890
}
891891

0 commit comments

Comments
 (0)