@@ -235,4 +224,30 @@ class Tools extends Step {
return $available_plugins;
}
+
+ /**
+ * Outputs the telemetry checkbox.
+ *
+ * @since 3.1.1.3
+ * @return void
+ */
+ private function telemetry() {
+ if ( edd_is_pro() ) {
+ return;
+ }
+ ?>
+
+ 202301251,
- '202302131' => 202302131,
+ '202303220' => 202303220,
);
/**
@@ -103,8 +102,6 @@ final class Notifications extends Table {
'remote-id' => false,
);
- $columns = $this->get_db()->get_results( "SHOW FIELDS FROM {$this->table_name} WHERE Field = 'remote_id';" );
-
if ( false === $this->column_exists( 'source' ) ) {
$source = $this->get_db()->query(
"ALTER TABLE {$this->table_name} ADD COLUMN `source` varchar(20) NOT NULL DEFAULT 'api' AFTER `remote_id`;"
@@ -134,4 +131,16 @@ final class Notifications extends Table {
return true;
}
+
+ /**
+ * Runs another database upgrade for sites which got into a bit of a snarl with the database versions.
+ *
+ * @since 3.1.1.3
+ * @return bool
+ */
+ protected function __202303220() {
+ $this->__202301251();
+
+ return $this->__202302131();
+ }
}
diff --git a/wp-content/plugins/easy-digital-downloads/src/Telemetry/Licenses.php b/wp-content/plugins/easy-digital-downloads/src/Telemetry/Licenses.php
index 8f39a47d..1f72d555 100644
--- a/wp-content/plugins/easy-digital-downloads/src/Telemetry/Licenses.php
+++ b/wp-content/plugins/easy-digital-downloads/src/Telemetry/Licenses.php
@@ -36,6 +36,9 @@ class Licenses {
* @return array
*/
private function get_pro_license() {
+ if ( ! edd_is_pro() ) {
+ return false;
+ }
$pro_license = new License( 'pro' );
return array(
diff --git a/wp-content/plugins/easy-digital-downloads/src/Telemetry/Settings.php b/wp-content/plugins/easy-digital-downloads/src/Telemetry/Settings.php
index 1f97d679..33f425da 100644
--- a/wp-content/plugins/easy-digital-downloads/src/Telemetry/Settings.php
+++ b/wp-content/plugins/easy-digital-downloads/src/Telemetry/Settings.php
@@ -30,8 +30,15 @@ class Settings {
foreach ( $section_settings as $setting_key => $setting ) {
$value = $this->get_setting_value( $tab_key, $section_key, $setting_key );
// If the value is null, it's a skipped setting.
- if ( ! is_null( $value ) ) {
- $setting_id = isset( $setting['id'] ) ? $setting['id'] : sanitize_title( $setting['name'] );
+ if ( is_null( $value ) ) {
+ continue;
+ }
+ $setting_id = isset( $setting['id'] ) ? $setting['id'] : sanitize_title( $setting['name'] );
+ if ( is_array( $value ) ) {
+ foreach ( $value as $v ) {
+ $data[ "{$setting_id}_{$v}" ] = 1;
+ }
+ } else {
$data[ $setting_id ] = $value;
}
}
diff --git a/wp-content/plugins/easy-digital-downloads/vendor/composer/installed.php b/wp-content/plugins/easy-digital-downloads/vendor/composer/installed.php
index b7ae2086..6af9a80c 100644
--- a/wp-content/plugins/easy-digital-downloads/vendor/composer/installed.php
+++ b/wp-content/plugins/easy-digital-downloads/vendor/composer/installed.php
@@ -3,7 +3,7 @@
'name' => 'easydigitaldownloads/easy-digital-downloads',
'pretty_version' => 'dev-main',
'version' => 'dev-main',
- 'reference' => '6900e8959df5a7b66fb1c4c033324d2f92f4b97e',
+ 'reference' => 'f6cf8a083270771376ef6505d1fbab97d5c5ee8c',
'type' => 'wordpress-plugin',
'install_path' => __DIR__ . '/../../',
'aliases' => array(),
@@ -13,7 +13,7 @@
'easydigitaldownloads/easy-digital-downloads' => array(
'pretty_version' => 'dev-main',
'version' => 'dev-main',
- 'reference' => '6900e8959df5a7b66fb1c4c033324d2f92f4b97e',
+ 'reference' => 'f6cf8a083270771376ef6505d1fbab97d5c5ee8c',
'type' => 'wordpress-plugin',
'install_path' => __DIR__ . '/../../',
'aliases' => array(),