File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -288,20 +288,20 @@ public static function get_fields() {
288
288
array_push ( $ fields ['advanced ' ]['fields ' ], $ akismet_tracking );
289
289
}
290
290
291
- // Sort option fields in each tab by title ASC
292
- foreach ( $ fields as $ tab => $ options ) {
293
- $ titles = wp_list_pluck ( $ fields [ $ tab ]['fields ' ], 'title ' );
294
-
295
- array_multisort ( $ titles , SORT_ASC , $ fields [ $ tab ]['fields ' ] );
296
- }
297
-
298
291
/**
299
292
* Filter allows for modification of options fields
300
293
*
301
294
* @return array Array of option fields
302
295
*/
303
296
self ::$ fields = apply_filters ( 'wp_stream_settings_option_fields ' , $ fields );
304
297
298
+ // Sort option fields in each tab by title ASC
299
+ foreach ( self ::$ fields as $ tab => $ options ) {
300
+ $ titles = wp_list_pluck ( self ::$ fields [ $ tab ]['fields ' ], 'title ' );
301
+
302
+ array_multisort ( $ titles , SORT_ASC , self ::$ fields [ $ tab ]['fields ' ] );
303
+ }
304
+
305
305
return self ::$ fields ;
306
306
}
307
307
You can’t perform that action at this time.
0 commit comments