File tree Expand file tree Collapse file tree 1 file changed +10
-6
lines changed Expand file tree Collapse file tree 1 file changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -31,12 +31,7 @@ function __construct($parent){
31
31
$ options = get_option ( 'Redux_Framework ' );
32
32
33
33
if ( ! isset ( $ options ['allow_tracking ' ] ) && isset ( $ _GET ['page ' ] ) && $ _GET ['page ' ] == $ parent ->args ['page_slug ' ] ) {
34
- wp_enqueue_style ( 'wp-pointer ' );
35
- wp_enqueue_script ( 'jquery ' );
36
- wp_enqueue_script ( 'jquery-ui ' );
37
- wp_enqueue_script ( 'wp-pointer ' );
38
- wp_enqueue_script ( 'utils ' );
39
- add_action ( 'admin_print_footer_scripts ' , array ( $ this , 'tracking_request ' ) );
34
+ add_action ( 'admin_enqueue_scripts ' , array ( $ this , 'tracking ' ) );
40
35
}
41
36
42
37
if ($ options ['allow_tracking ' ] == true ) {
@@ -49,6 +44,15 @@ function __construct($parent){
49
44
}
50
45
51
46
47
+ function _enqueue () {
48
+ wp_enqueue_style ( 'wp-pointer ' );
49
+ wp_enqueue_script ( 'jquery ' );
50
+ wp_enqueue_script ( 'jquery-ui ' );
51
+ wp_enqueue_script ( 'wp-pointer ' );
52
+ wp_enqueue_script ( 'utils ' );
53
+ add_action ( 'admin_print_footer_scripts ' , array ( $ this , 'tracking_request ' ) );
54
+ }
55
+
52
56
/**
53
57
* Shows a popup that asks for permission to allow tracking.
54
58
*/
You can’t perform that action at this time.
0 commit comments