3
3
* Plugin Name: DustPress Debugger
4
4
* Plugin URI: https://github.com/devgeniem/dustpress-debugger
5
5
* Description: Provides handy ajaxified debugger tool for DustPress based themes.
6
- * Version: 1.1.3
6
+ * Version: 1.1.4
7
7
* Author: Geniem Oy / Miika Arponen & Ville Siltala
8
8
* Author URI: http://www.geniem.com
9
9
*/
@@ -51,9 +51,6 @@ public static function init() {
51
51
52
52
// Register DustPress core helper hooks
53
53
add_filter ( 'dustpress/menu/data ' , array ( __CLASS__ , "gather_menu_helper_data " ) );
54
-
55
- // Register DustPress comments helper data
56
- add_filter ( 'dustpress/comments/data ' , array ( __CLASS__ , "gather_comments_helper_data " ) );
57
54
}
58
55
}
59
56
@@ -134,12 +131,6 @@ public static function gather_menu_helper_data( $data ) {
134
131
return $ data ;
135
132
}
136
133
137
- public static function gather_comments_helper_data ( $ data ) {
138
- self ::set_debugger_data ( 'Comments ' , $ data );
139
-
140
- return $ data ;
141
- }
142
-
143
134
/**
144
135
* Gathers debug data from other sources than DustPress core.
145
136
*/
@@ -149,20 +140,16 @@ public static function set_debugger_data( $key, $data ) {
149
140
} else {
150
141
$ debug_data_block_name = dustpress ()->get_setting ( "debug_data_block_name " );
151
142
152
- $ model_data = [];
153
-
154
- if ( ! isset ( $ model_data [ $ debug_data_block_name ] ) ) {
155
- $ model_data [ $ debug_data_block_name ] = [];
143
+ if ( ! isset ( self ::$ data [ $ debug_data_block_name ] ) ) {
144
+ self ::$ data [ $ debug_data_block_name ] = [];
156
145
}
157
146
158
- if ( ! isset ( $ model_data [ $ debug_data_block_name ][ $ key ] ) ) {
159
- $ model_data [ $ debug_data_block_name ][ $ key ] = [];
147
+ if ( ! isset ( self :: $ data [ $ debug_data_block_name ][ $ key ] ) ) {
148
+ self :: $ data [ $ debug_data_block_name ][ $ key ] = [];
160
149
}
161
150
162
- $ model_data [ $ debug_data_block_name ][ $ key ][] = $ data ;
151
+ self :: $ data [ $ debug_data_block_name ][ $ key ][] = $ data ;
163
152
}
164
-
165
- self ::$ data = array_merge ( self ::$ data , $ model_data );
166
153
}
167
154
}
168
155
0 commit comments