Skip to content

Commit

Permalink
[ #798] removed tracking
Browse files Browse the repository at this point in the history
  • Loading branch information
TeoAlex committed May 9, 2023
1 parent 870cc10 commit dd8c6e3
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 1,275 deletions.
17 changes: 0 additions & 17 deletions Modula.php
Expand Up @@ -56,23 +56,6 @@

define ( 'MODULA_LITE_TRANSLATE', dirname( plugin_basename( __FILE__ ) ) . '/languages' );

if( ! class_exists( 'Modula_Plugin_Usage_Tracker') ) {
require_once dirname( __FILE__ ) . '/includes/tracking/class-plugin-usage-tracker.php';
}
if( ! function_exists( 'modula_best_grid_gallery_start_plugin_tracking' ) ) {
function modula_best_grid_gallery_start_plugin_tracking() {
$wisdom = new Modula_Plugin_Usage_Tracker(
__FILE__,
'https://tracking.wp-modula.com/',
array(),
true,
true,
0
);
}
modula_best_grid_gallery_start_plugin_tracking();
}

/**
* The code that runs during plugin activation.
* This action is documented in includes/class-modula-activator.php
Expand Down
1 change: 1 addition & 0 deletions changelog.txt
@@ -1,6 +1,7 @@
= 2.7.5 - TBD =
Fixed: Lazy load not working properly ( [#688](https://github.com/WPChill/modula-lite/issues/688) ) ( [#37](https://github.com/WPChill/modula-lite/issues/37) )
Fixed: data-src attribute now contains the link to the original image instead of the scaled WP image. ( [#795](https://github.com/WPChill/modula-lite/issues/795) )
Changed: Removed tracking ( [#798](https://github.com/WPChill/modula-lite/issues/798) )

= 2.7.4 - 28.03.2023 =
Fixed: Undefined index if default value for gallery setting input fields not set ( [#788](https://github.com/WPChill/modula-lite/issues/788) )
Expand Down
9 changes: 2 additions & 7 deletions includes/admin/class-modula-debug.php
Expand Up @@ -94,15 +94,10 @@ public function modula_debug_information($info){
'value' => count( Modula_Helper::get_galleries() ) - 1,
'debug' => 'Total number of galleries: ' . ( count( Modula_Helper::get_galleries() ) - 1 )
),
'track_data' => array(
'label' => __( 'Track data', 'modula-best-grid-gallery' ),
'value' => ( $troubleshoot_opt && isset( $troubleshoot_opt[ 'track_data' ] ) && '1' == $troubleshoot_opt[ 'track_data' ] ) ? __( 'Enabled', 'modula-best-grid-gallery' ) : __( 'Disabled', 'modula-best-grid-gallery' ),
'debug' => ( $troubleshoot_opt && isset( $troubleshoot_opt[ 'track_data' ] ) && '1' == $troubleshoot_opt[ 'track_data' ] ) ? 'Track data enabled' : 'Track data disabled'
),
'enqueue_files' => array(
'label' => __( 'Enqueue Modula\'s assets everywhere', 'modula-best-grid-gallery' ),
'value' => ( $troubleshoot_opt && isset( $troubleshoot_opt[ 'enqueue_files' ] ) && '1' == $troubleshoot_opt[ 'track_data' ] ) ? __( 'Enabled', 'modula-best-grid-gallery' ) : __( 'Disabled', 'modula-best-grid-gallery' ),
'debug' => ( $troubleshoot_opt && isset( $troubleshoot_opt[ 'enqueue_files' ] ) && '1' == $troubleshoot_opt[ 'track_data' ] ) ? 'Enqueue files everywhere' : 'Enqueue files disabled'
'value' => ( $troubleshoot_opt && isset( $troubleshoot_opt[ 'enqueue_files' ] ) ) ? __( 'Enabled', 'modula-best-grid-gallery' ) : __( 'Disabled', 'modula-best-grid-gallery' ),
'debug' => ( $troubleshoot_opt && isset( $troubleshoot_opt[ 'enqueue_files' ] ) ) ? 'Enqueue files everywhere' : 'Enqueue files disabled'
),
'grid_type' => array(
'label' => __( 'General grid type enqueued', 'modula-best-grid-gallery' ),
Expand Down
7 changes: 0 additions & 7 deletions includes/admin/tabs/troubleshooting-options.php
Expand Up @@ -8,7 +8,6 @@
'lightboxes' => array(),
'lazy_load' => false,
'disable_edit' => false,
'track_data' => false,
'disable_srcset' => false
));

Expand All @@ -27,12 +26,6 @@
'type' => 'toggle',
'priority' => 10,
),
'track_data' => array(
'label' => esc_html__( 'Track Data', 'modula-best-grid-gallery' ),
'description' => esc_html__( 'We would like to track its usage on your site. We don\'t record any sensitive data, only information regarding the WordPress environment and Modula settings, which we will use to help us make improvements.', 'modula-best-grid-gallery' ),
'type' => 'toggle',
'priority' => 10,
),
'disable_srcset' => array(
'label' => esc_html__( 'Disable images srcset', 'modula-best-grid-gallery' ),
'description' => esc_html__( 'If you want to disable the srcset of the front-end images check this option.', 'modula-best-grid-gallery' ),
Expand Down

0 comments on commit dd8c6e3

Please sign in to comment.