| @@ -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. |