PluginProbe
SureForms – Contact Form Builder, AI Forms, Payment Form, Survey & Quiz / 2.12.8
SureForms – Contact Form Builder, AI Forms, Payment Form, Survey & Quiz v2.12.8
2.12.8 2.12.7 2.12.6 2.12.5 2.12.4 2.12.3 2.12.2 2.12.1 2.12.0 2.11.1 2.11.0 2.10.1 2.10.0 2.9.1 2.9.0 2.8.2 2.8.1 2.7.0 2.7.1 2.8.0 trunk 0.0.10 0.0.11 0.0.12 0.0.13 All 98 releases
← All changes | inc/export.php +9 -1 2.10.0 → 2.12.8 View file →
@@ -79,9 +79,17 @@
79 79 foreach ( $post_ids as $post_id ) {
80 80 $post_id = intval( $post_id );
81 81 $post = get_post( $post_id );
82 82 $post_meta = get_post_meta( $post_id );
83 - $posts[] = [
83 +
84 + // The view counter belongs to this site's traffic, not to the form. These
85 + // payloads feed shared starter templates, so shipping it would hand every
86 + // importer a stranger's numbers. The import side already refuses the key,
87 + // so this is about not exporting it in the first place.
88 + if ( is_array( $post_meta ) ) {
89 + unset( $post_meta[ \SRFM\Inc\Form_Views::META_KEY ] );
90 + }
91 + $posts[] = [
84 92 'post' => $post,
85 93 'post_meta' => $post_meta,
86 94 ];
87 95 }