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/duplicate-form.php +8 -0 2.12.2 → 2.12.8 View file →
@@ -122,8 +122,16 @@
122 122 if ( '_edit_lock' === $meta_key || '_edit_last' === $meta_key ) {
123 123 continue;
124 124 }
125 125
126 + // The view counter belongs to the form that earned it. Cloning it
127 + // would give the copy an impression count with no submissions behind
128 + // it — a permanent 0% conversion rate — and double-count those views
129 + // in the site-wide analytics total.
130 + if ( \SRFM\Inc\Form_Views::META_KEY === $meta_key ) {
131 + continue;
132 + }
133 +
126 134 // Handle unserialized metas (these are already arrays/objects).
127 135 // Note: get_post_meta() returns unslashed data, but add_post_meta()
128 136 // internally runs wp_unslash() on the value. Without re-slashing,
129 137 // backslashes are stripped — corrupting JSON-string metas (e.g.