File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -86,7 +86,7 @@ public function add_googleanalytics_configs($event)
8686 $ display_vars = $ event ['display_vars ' ];
8787
8888 // Define the new config vars
89- $ my_config_vars = array (
89+ $ ga_config_vars = array (
9090 'googleanalytics_id ' => array (
9191 'lang ' => 'GOOGLEANALYTICS_ID ' ,
9292 'validate ' => 'googleanayltics_id ' ,
@@ -95,14 +95,14 @@ public function add_googleanalytics_configs($event)
9595 ),
9696 );
9797
98- // Insert the config vars after...
98+ // Insert the config vars after override_user_style
9999 $ insert_after = 'override_user_style ' ;
100100
101101 // Rebuild new config var array
102102 $ position = array_search ($ insert_after , array_keys ($ display_vars ['vars ' ])) + 1 ;
103103 $ display_vars ['vars ' ] = array_merge (
104104 array_slice ($ display_vars ['vars ' ], 0 , $ position ),
105- $ my_config_vars ,
105+ $ ga_config_vars ,
106106 array_slice ($ display_vars ['vars ' ], $ position )
107107 );
108108
You can’t perform that action at this time.
0 commit comments