PluginProbe
Visualizer – Tables & Charts Manager with Built-in AI Generator / 3.10.7
Visualizer – Tables & Charts Manager with Built-in AI Generator v3.10.7
4.0.8 4.0.7 4.0.6 4.0.5 4.0.4 4.0.3 3.0.5 3.0.6 3.0.7 3.0.8 3.0.9 3.1.0 3.1.1 3.1.2 3.1.3 3.10.0 3.10.1 3.10.10 3.10.11 3.10.12 3.10.13 3.10.14 3.10.15 3.10.2 3.10.3 All 149 releases
← All changes | vendor/codeinwp/themeisle-sdk/src/Modules/Logger.php +21 -15 3.10.153.10.7 View file →
@@ -125,9 +125,9 @@
125 125 * @return array All notifications.
126 126 */
127 127 public function add_notification( $all_notifications ) {
128 128
129 - $message = apply_filters( $this->product->get_key() . '_logger_heading', Loader::$labels['logger']['notice'] );
129 + $message = apply_filters( $this->product->get_key() . '_logger_heading', 'Do you enjoy <b>{product}</b>? Become a contributor by opting in to our anonymous data tracking. We guarantee no sensitive data is collected.' );
130 130
131 131 $message = str_replace(
132 132 array( '{product}' ),
133 133 $this->product->get_friendly_name(),
@@ -132,10 +132,10 @@
132 132 array( '{product}' ),
133 133 $this->product->get_friendly_name(),
134 134 $message
135 135 );
136 - $button_submit = apply_filters( $this->product->get_key() . '_logger_button_submit', Loader::$labels['logger']['cta_y'] );
137 - $button_cancel = apply_filters( $this->product->get_key() . '_logger_button_cancel', Loader::$labels['logger']['cta_n'] );
136 + $button_submit = apply_filters( $this->product->get_key() . '_logger_button_submit', 'Sure, I would love to help.' );
137 + $button_cancel = apply_filters( $this->product->get_key() . '_logger_button_cancel', 'No, thanks.' );
138 138
139 139 $all_notifications[] = [
140 140 'id' => $this->product->get_key() . '_logger_flag',
141 141 'message' => $message,
@@ -250,21 +250,27 @@
250 250 if ( 0 === count( $products_with_telemetry ) ) {
251 251 return;
252 252 }
253 253
254 + global $themeisle_sdk_max_path;
255 + $asset_file = require $themeisle_sdk_max_path . '/assets/js/build/tracking/tracking.asset.php';
254 256
255 - $tracking_handler = apply_filters( 'themeisle_sdk_dependency_script_handler', 'tracking' );
256 - if ( ! empty( $tracking_handler ) ) {
257 - do_action( 'themeisle_sdk_dependency_enqueue_script', 'tracking' );
258 - wp_localize_script(
259 - $tracking_handler,
260 - 'tiTelemetry',
261 - array(
262 - 'products' => $products_with_telemetry,
263 - 'endpoint' => self::TELEMETRY_ENDPOINT,
264 - )
265 - );
266 - }
257 + wp_enqueue_script(
258 + 'themeisle_sdk_telemetry_script',
259 + $this->get_sdk_uri() . 'assets/js/build/tracking/tracking.js',
260 + $asset_file['dependencies'],
261 + $asset_file['version'],
262 + true
263 + );
264 +
265 + wp_localize_script(
266 + 'themeisle_sdk_telemetry_script',
267 + 'tiTelemetry',
268 + array(
269 + 'products' => $products_with_telemetry,
270 + 'endpoint' => self::TELEMETRY_ENDPOINT,
271 + )
272 + );
267 273 } catch ( \Exception $e ) {
268 274 if ( defined( 'WP_DEBUG' ) && WP_DEBUG && defined( 'WP_DEBUG_LOG' ) && WP_DEBUG_LOG ) {
269 275 error_log( $e->getMessage() ); // phpcs:ignore
270 276 }