@@ -60,10 +60,6 @@ public function run() {
6060 $ this ->upgrade_to_126 ();
6161 }
6262
63- if ( version_compare ( $ plausible_analytics_version , '1.3.1 ' , '< ' ) ) {
64- $ this ->upgrade_to_131 ();
65- }
66-
6763 if ( version_compare ( $ plausible_analytics_version , '1.3.2 ' , '< ' ) ) {
6864 $ this ->upgrade_to_132 ();
6965 }
@@ -116,9 +112,6 @@ public function upgrade_to_125() {
116112 unset( $ new_settings [ 'is_custom_domain ' ] );
117113 }
118114
119- // Enable Outbound links by default.
120- $ new_settings [ 'enhanced_measurements ' ] = [ 'outbound-links ' ];
121-
122115 if ( ! empty ( $ old_settings [ 'track_administrator ' ] ) && $ old_settings [ 'track_administrator ' ] === 'true ' ) {
123116 $ new_settings [ 'tracked_user_roles ' ] = [ 'administrator ' ];
124117 }
@@ -148,25 +141,6 @@ public function upgrade_to_126() {
148141 update_option ( 'plausible_analytics_version ' , '1.2.6 ' );
149142 }
150143
151- /**
152- * Upgrade to 1.3.1
153- * - Enables 404 pages tracking by default.
154- *
155- * @return void
156- * @codeCoverageIgnore
157- */
158- public function upgrade_to_131 () {
159- $ settings = Helpers::get_settings ();
160-
161- if ( ! in_array ( '404 ' , $ settings [ 'enhanced_measurements ' ], true ) ) {
162- array_unshift ( $ settings [ 'enhanced_measurements ' ], '404 ' );
163- }
164-
165- update_option ( 'plausible_analytics_settings ' , $ settings );
166-
167- update_option ( 'plausible_analytics_version ' , '1.3.1 ' );
168- }
169-
170144 /**
171145 * Upgrade to 1.3.2
172146 * - Updates the Proxy Resource, Cache URL to be protocol relative.
0 commit comments